|
|
@@ -604,7 +604,7 @@ export default {
|
|
|
if (!editor) return;
|
|
|
const header = editor.editorContainer?.querySelector('.tox-editor-header');
|
|
|
if (header) {
|
|
|
- header.style.display = !isTitle ? '' : 'none';
|
|
|
+ header.style.display = isTitle ? 'none' : '';
|
|
|
if (isTitle && !isInit) {
|
|
|
const body = editor.getBody();
|
|
|
if (!body) return;
|
|
|
@@ -613,6 +613,8 @@ export default {
|
|
|
if (this.processHtmlString && typeof this.processHtmlString === 'function') {
|
|
|
this.processHtmlString(pElements, {}, true);
|
|
|
}
|
|
|
+ editor.fire('change');
|
|
|
+ editor.nodeChanged();
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -1230,7 +1232,7 @@ export default {
|
|
|
{
|
|
|
acceptNode: (node) => (node.textContent.trim() ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT),
|
|
|
},
|
|
|
- false
|
|
|
+ false,
|
|
|
);
|
|
|
return walker.nextNode();
|
|
|
},
|