mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
add eventListener to prevent bootstrap dialog from blocking focusin in tinymce linking popup
This commit is contained in:
@@ -68,7 +68,16 @@ export default {
|
|||||||
target: this.$refs.editor.$refs.input, //Important: not selector: to enable multiple import of component
|
target: this.$refs.editor.$refs.input, //Important: not selector: to enable multiple import of component
|
||||||
//height: 800,
|
//height: 800,
|
||||||
//plugins: ['lists'],
|
//plugins: ['lists'],
|
||||||
toolbar: 'styleselect | bold italic underline | alignleft aligncenter alignright alignjustify',
|
toolbar: 'styleselect | bold italic underline | alignleft aligncenter alignright alignjustify | link',
|
||||||
|
plugins: 'link linktitle',
|
||||||
|
link_context_toolbar: true,
|
||||||
|
automatic_uploads: true,
|
||||||
|
default_link_target: "_blank",
|
||||||
|
link_title: true,
|
||||||
|
target_list: [
|
||||||
|
{ title: 'New tab', value: '_blank' },
|
||||||
|
{ title: 'Same tab', value: '_self' }
|
||||||
|
],
|
||||||
style_formats: [
|
style_formats: [
|
||||||
{title: 'Blocks', block: 'div'},
|
{title: 'Blocks', block: 'div'},
|
||||||
{title: 'Paragraph', block: 'p'},
|
{title: 'Paragraph', block: 'p'},
|
||||||
@@ -88,7 +97,15 @@ export default {
|
|||||||
const newContent = editor.getContent();
|
const newContent = editor.getContent();
|
||||||
vm.formData.body = newContent;
|
vm.formData.body = newContent;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Prevent Bootstrap dialog from blocking focusin
|
||||||
|
document.addEventListener('focusin', (e) => {
|
||||||
|
if (e.target.closest(".tox-tinymce-aux, .moxman-window, .tam-assetmanager-root") !== null) {
|
||||||
|
e.stopImmediatePropagation();
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
updateText(value) {
|
updateText(value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user