section_text button and section_textarea more menu

This commit is contained in:
2022-07-06 14:20:19 +02:00
parent 4d262ace68
commit 0c25909b49
4 changed files with 45 additions and 11 deletions

View File

@@ -61,6 +61,18 @@ export default {
vtinymce: tinymceConfig,
}
},
watch: {
modalBox: function() {
if (this.modalBox) {
document.addEventListener('focusin', (e) => {
if (e.target.closest(".tox-tinymce-aux, .moxman-window, .tam-assetmanager-root") !== null) {
e.stopImmediatePropagation();
}
});
}
console.log('focus');
},
},
computed: {
ctext: function () {
return this.value.text?this.value.text.replace(/<(?:.|\n)*?>/gm, ''):'';