From 180ca8c37836c4aec4d86518a5193aa5eeaa0f65 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Mon, 27 May 2024 21:04:33 +0300 Subject: [PATCH] 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). --- .../library/rich-text-editor/rich-text-editor.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dmp-frontend/src/app/library/rich-text-editor/rich-text-editor.component.ts b/dmp-frontend/src/app/library/rich-text-editor/rich-text-editor.component.ts index 54f5702eb..2fd69db81 100644 --- a/dmp-frontend/src/app/library/rich-text-editor/rich-text-editor.component.ts +++ b/dmp-frontend/src/app/library/rich-text-editor/rich-text-editor.component.ts @@ -48,7 +48,7 @@ export class RichTextEditorComponent { { name: 'H4 header', class: '', tag: 'h4' }, { name: 'H5 header', class: '', tag: 'h5'}, { name: 'H6 header', class: '', tag: 'h6'}, - { name: 'Highlight', class: 'highlight', tag: ''} + { name: 'Highlight', class: '', tag: 'mark'} ], toolbarHiddenButtons: [ [ @@ -63,6 +63,10 @@ export class RichTextEditorComponent { 'insertVideo', // 'removeFormat', 'toggleEditorMode' + ], + [ + 'indent', + 'outdent' ] ] };