Skip to content
Snippets Groups Projects
Commit 284b1886 authored by rhenck's avatar rhenck
Browse files

[editor] TextEditor: Change list button behaviour to toggle list

(when not set)
parent 5bdfdd30
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment