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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opentiny",
3
- "version": "6.9.6",
3
+ "version": "6.9.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mild-blue/opentiny"
package/tinymce.js CHANGED
@@ -21399,7 +21399,11 @@
21399
21399
  };
21400
21400
  const emptyEditor = editor => {
21401
21401
  return Optional.some(() => {
21402
- editor.setContent('');
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
  };