opentiny 6.9.6 → 6.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tinymce.js +5 -1
- package/tinymce.min.js +1 -1
package/package.json
CHANGED
package/tinymce.js
CHANGED
|
@@ -21399,7 +21399,11 @@
|
|
|
21399
21399
|
};
|
|
21400
21400
|
const emptyEditor = editor => {
|
|
21401
21401
|
return Optional.some(() => {
|
|
21402
|
-
editor.
|
|
21402
|
+
if (editor.hasEditableRoot()) {
|
|
21403
|
+
editor.setContent('');
|
|
21404
|
+
} else {
|
|
21405
|
+
editor.setContent(`<div class=${ editor.getParam('editable_class') }>${ editor.getParam('placeholder') }</div>`);
|
|
21406
|
+
}
|
|
21403
21407
|
editor.selection.setCursorLocation();
|
|
21404
21408
|
});
|
|
21405
21409
|
};
|