diff --git a/projects/editor/src/app/text-editor/rich-text-editor.component.ts b/projects/editor/src/app/text-editor/rich-text-editor.component.ts index d5d59cd05593d8e512d240abd16fd3a8103fb79e..d9af04653c6c1d2101cc47085a6bab2b6510d066 100644 --- a/projects/editor/src/app/text-editor/rich-text-editor.component.ts +++ b/projects/editor/src/app/text-editor/rich-text-editor.component.ts @@ -125,9 +125,15 @@ export class RichTextEditorComponent implements AfterViewInit { if (listType === 'bulletList') { this.bulletListStyle = style; this.editor.commands.setBulletListStyle(style); + if (!this.editor.isActive('bulletList')) { + this.toggleBulletList(); + } } else { this.orderedListStyle = style; this.editor.commands.setOrderedListStyle(style); + if (!this.editor.isActive('orderedList')) { + this.togleOrderedList(); + } } }