diff --git a/app/src/interfaces/input-rich-text-html/get-editor-styles.ts b/app/src/interfaces/input-rich-text-html/get-editor-styles.ts index 7fb056a0b8..9cda29e6f9 100644 --- a/app/src/interfaces/input-rich-text-html/get-editor-styles.ts +++ b/app/src/interfaces/input-rich-text-html/get-editor-styles.ts @@ -39,6 +39,9 @@ body.mce-content-readonly { color: ${cssVar('--foreground-subdued')}; background-color: ${cssVar('--background-subdued')}; } +.mce-offscreen-selection { + display: none; +} h1, h2, h3, h4, h5, h6 { font-family: ${cssVar(`--family-${font}`)}, serif; color: ${cssVar('--foreground-normal-alt')}; @@ -135,12 +138,15 @@ blockquote { margin-left: 0px; } video, -iframe, img { max-width: 100%; border-radius: ${cssVar('--border-radius')}; height: auto; } +iframe { + max-width: 100%; + border-radius: ${cssVar('--border-radius')}; +} hr { background-color: ${cssVar('--border-normal')}; height: 1px; diff --git a/app/src/interfaces/input-rich-text-html/input-rich-text-html.vue b/app/src/interfaces/input-rich-text-html/input-rich-text-html.vue index 40a52a1a16..74acb24c9f 100644 --- a/app/src/interfaces/input-rich-text-html/input-rich-text-html.vue +++ b/app/src/interfaces/input-rich-text-html/input-rich-text-html.vue @@ -6,7 +6,6 @@ :init="editorOptions" :disabled="disabled" model-events="change keydown blur focus paste ExecCommand SetContent" - @dirty="setDirty" @focusin="setFocus(true)" @focusout="setFocus(false)" /> @@ -60,7 +59,7 @@ @@ -117,9 +116,14 @@