diff --git a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.html b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.html index 8e9682b3fd..1fa478d718 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.html @@ -213,7 +213,7 @@
{{ preview.processedTemplates.EMAIL.subject }}
-
+
diff --git a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.scss b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.scss index e91221d760..3dd5040587 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.scss +++ b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.scss @@ -179,14 +179,6 @@ letter-spacing: 0.25px; } - .html-content { - margin-top: 12px; - font-weight: 400; - font-size: 14px; - line-height: 20px; - overflow-x: auto; - } - &.mini { font-size: 12px; line-height: 1.25; @@ -233,15 +225,6 @@ } } - .preview-group { - .notification-content { - .html-content, - .html-content * { - all: revert; - } - } - } - .delivery-methods-container { .delivery-method-container { &.interact * { diff --git a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.componet.ts b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.componet.ts index 7060baf5cc..c3e6262634 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.componet.ts +++ b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.componet.ts @@ -77,6 +77,30 @@ export class SentNotificationDialogComponent extends showRefresh = false; + tinyMceOptions: Record = { + base_url: '/assets/tinymce', + suffix: '.min', + plugins: ['autoresize'], + menubar: false, + toolbar: false, + statusbar: false, + resize: false, + readonly: true, + height: 400, + autofocus: false, + branding: false, + promotion: false, + setup: (ed) => { + ed.on('PreInit', () => { + const document = $(ed.iframeElement.contentDocument); + const body = $('#tinymce', document); + body.attr({contenteditable: false}); + body.css('pointerEvents', 'none'); + body.css('userSelect', 'none'); + }) + } + }; + private authUser: AuthUser = getCurrentAuthUser(this.store); private allowNotificationDeliveryMethods: Array;