From e0c81658ec09c87a4c6a7dc44acf562f836021af Mon Sep 17 00:00:00 2001 From: wuyiping0628 <1106773985@qq.com> Date: Wed, 13 May 2026 01:54:25 -0700 Subject: [PATCH] feat: solve the problem of numbers changing after li tag indentation --- packages/fluent-editor/src/assets/editor.scss | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/packages/fluent-editor/src/assets/editor.scss b/packages/fluent-editor/src/assets/editor.scss index c1ee0179..f9967ece 100644 --- a/packages/fluent-editor/src/assets/editor.scss +++ b/packages/fluent-editor/src/assets/editor.scss @@ -125,6 +125,10 @@ content: counter(list-1, lower-alpha) '. '; } + li.ql-indent-1 .ql-ui:before { + content: counter(list-1, decimal) '. ' !important; + } + li.ordered.ql-indent-1 { counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9; } @@ -137,6 +141,10 @@ content: counter(list-2, lower-roman) '. '; } + li.ql-indent-2 .ql-ui:before { + content: counter(list-2, decimal) '. ' !important; + } + li.ordered.ql-indent-2 { counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9; } @@ -149,6 +157,10 @@ content: counter(list-3, decimal) '. '; } + li.ql-indent-3 .ql-ui:before { + content: counter(list-3, decimal) '. ' !important; + } + li.ordered.ql-indent-3 { counter-reset: list-4 list-5 list-6 list-7 list-8 list-9; } @@ -161,6 +173,10 @@ content: counter(list-4, lower-alpha) '. '; } + li.ql-indent-4 .ql-ui:before { + content: counter(list-4, decimal) '. ' !important; + } + li.ordered.ql-indent-4 { counter-reset: list-5 list-6 list-7 list-8 list-9; } @@ -173,6 +189,10 @@ content: counter(list-5, lower-roman) '. '; } + li.ql-indent-5 .ql-ui:before { + content: counter(list-5, decimal) '. ' !important; + } + li.ordered.ql-indent-5 { counter-reset: list-6 list-7 list-8 list-9; } @@ -185,6 +205,10 @@ content: counter(list-6, decimal) '. '; } + li.ql-indent-6 .ql-ui:before { + content: counter(list-6, decimal) '. ' !important; + } + li.ordered.ql-indent-6 { counter-reset: list-7 list-8 list-9; } @@ -197,6 +221,10 @@ content: counter(list-7, lower-alpha) '. '; } + li.ql-indent-7 .ql-ui:before { + content: counter(list-7, decimal) '. ' !important; + } + li.ordered.ql-indent-7 { counter-reset: list-8 list-9; } @@ -209,6 +237,10 @@ content: counter(list-8, lower-roman) '. '; } + li.ql-indent-8 .ql-ui:before { + content: counter(list-8, decimal) '. ' !important; + } + li.ordered.ql-indent-8 { counter-reset: list-9; } @@ -221,6 +253,10 @@ content: counter(list-9, decimal) '. '; } + li.ql-indent-9 .ql-ui:before { + content: counter(list-9, decimal) '. ' !important; + } + li.ql-direction-rtl { &::before, &.checked > .ql-ui,