rich-text-editor.component.ts: Hide 'indent' and 'outdent' from toolbar (cannot set it properly in export) | Changed "Hightlight" option of customClasses, from class: 'highlight' to tag: 'mark' (in order to also work in export).

This commit is contained in:
Konstantina Galouni 2024-05-27 21:04:33 +03:00
parent d9fc4e49e8
commit 180ca8c378
1 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,7 @@ export class RichTextEditorComponent {
{ name: 'H4 header', class: '', tag: 'h4' }, { name: 'H4 header', class: '', tag: 'h4' },
{ name: 'H5 header', class: '', tag: 'h5'}, { name: 'H5 header', class: '', tag: 'h5'},
{ name: 'H6 header', class: '', tag: 'h6'}, { name: 'H6 header', class: '', tag: 'h6'},
{ name: 'Highlight', class: 'highlight', tag: ''} { name: 'Highlight', class: '', tag: 'mark'}
], ],
toolbarHiddenButtons: [ toolbarHiddenButtons: [
[ [
@ -63,6 +63,10 @@ export class RichTextEditorComponent {
'insertVideo', 'insertVideo',
// 'removeFormat', // 'removeFormat',
'toggleEditorMode' 'toggleEditorMode'
],
[
'indent',
'outdent'
] ]
] ]
}; };