mirror of
https://github.com/directus/directus.git
synced 2026-01-26 16:48:21 -05:00
Display fullscreen rich text input below dialog instead of exiting fullscreen (#12045)
Co-authored-by: ian <licitdev@gmail.com>
This commit is contained in:
@@ -180,6 +180,10 @@ body.dark .tox .tox-toolbar__overflow {
|
||||
z-index: 510;
|
||||
}
|
||||
|
||||
.tox.tox-tinymce.tox-fullscreen {
|
||||
z-index: 490;
|
||||
}
|
||||
|
||||
.tox .tox-dialog {
|
||||
color: var(--foreground-normal);
|
||||
background-color: var(--background-page);
|
||||
|
||||
@@ -36,10 +36,6 @@ export default function useImage(editor: Ref<any>, imageToken: Ref<string | unde
|
||||
icon: 'image',
|
||||
tooltip: i18n.global.t('wysiwyg_options.image'),
|
||||
onAction: (buttonApi: any) => {
|
||||
if (editor.value.plugins.fullscreen.isFullscreen()) {
|
||||
editor.value.execCommand('mceFullScreen');
|
||||
}
|
||||
|
||||
imageDrawerOpen.value = true;
|
||||
|
||||
if (buttonApi.isActive()) {
|
||||
|
||||
@@ -45,10 +45,6 @@ export default function useMedia(editor: Ref<any>, imageToken: Ref<string | unde
|
||||
icon: 'embed',
|
||||
tooltip: i18n.global.t('wysiwyg_options.media'),
|
||||
onAction: (buttonApi: any) => {
|
||||
if (editor.value.plugins.fullscreen.isFullscreen()) {
|
||||
editor.value.execCommand('mceFullScreen');
|
||||
}
|
||||
|
||||
mediaDrawerOpen.value = true;
|
||||
|
||||
if (buttonApi.isActive()) {
|
||||
|
||||
@@ -23,10 +23,6 @@ export default function useSourceCode(editor: Ref<any>): UsableSourceCode {
|
||||
icon: 'sourcecode',
|
||||
tooltip: i18n.global.t('wysiwyg_options.source_code'),
|
||||
onAction: () => {
|
||||
if (editor.value.plugins.fullscreen.isFullscreen()) {
|
||||
editor.value.execCommand('mceFullScreen');
|
||||
}
|
||||
|
||||
codeDrawerOpen.value = true;
|
||||
code.value = editor.value.getContent();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user