From 3483c7ba560d5ea05ee3181ca932131126509ccb Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Tue, 7 Feb 2023 16:00:14 +0400 Subject: [PATCH] fixed tinymce stylings for all elements inside editing mode --- app/javascript/packs/tiny_mce.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/packs/tiny_mce.js b/app/javascript/packs/tiny_mce.js index 642d0d54d..22647f842 100644 --- a/app/javascript/packs/tiny_mce.js +++ b/app/javascript/packs/tiny_mce.js @@ -37,8 +37,9 @@ import 'raw-loader'; import contentCss from '!!raw-loader!tinymce/skins/content/default/content.min.css'; import contentUiCss from '!!raw-loader!tinymce/skins/ui/tinymce-5/content.min.css'; -const contentPStyle = `p { margin: 0; padding: 0; font-family: 'Lato' }`; -const contentStyle = [contentCss, contentUiCss, contentPStyle].map((s) => s.toString()).join('\n'); +const contentPStyle = `p { margin: 0; padding: 0;}`; +const contentBodyStyle = `body { font-family: Lato, "Open Sans", Arial, Helvetica, sans-serif }`; +const contentStyle = [contentCss, contentUiCss, contentBodyStyle, contentPStyle].map((s) => s.toString()).join('\n'); window.TinyMCE = (() => { function initHighlightjs() {