diff --git a/html-editor-lib.pl b/html-editor-lib.pl index 1b4e4b4fd..94c85cf5d 100644 --- a/html-editor-lib.pl +++ b/html-editor-lib.pl @@ -245,6 +245,11 @@ $navigation_type ||= 'reload'; my $html_editor_init_script = < + function fn_${module_name}_quote_mail_iframe_loaded() { + const editor = fn_${module_name}_html_editor_init.editor; + editor.root.innerHTML = "\\n" + editor.root.innerHTML; + fn_${module_name}_quote_mail_iframe_loaded = null; + } function fn_${module_name}_html_editor_init() { const targ = document.querySelector('[$target_attr$target_type"$target_name"]'), qs = Quill.import('attributors/style/size'), @@ -277,6 +282,8 @@ my $html_editor_init_script = theme: 'snow' }); + fn_${module_name}_html_editor_init.editor = editor; + // Google Mail like key bind for creating numbered list (Ctrl+Shift+7) editor.keyboard.addBinding({ key: '7', diff --git a/mailboxes/folders-lib.pl b/mailboxes/folders-lib.pl index 1e59c8e6a..aebf0e754 100755 --- a/mailboxes/folders-lib.pl +++ b/mailboxes/folders-lib.pl @@ -3091,6 +3091,9 @@ my $iframe_body = <