opentiny 6.9.5 → 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/models/dom/model.min.js +1 -1
- package/package.json +1 -1
- package/plugins/accordion/plugin.min.js +1 -1
- package/plugins/anchor/plugin.min.js +1 -1
- package/plugins/autolink/plugin.min.js +1 -1
- package/plugins/autoresize/plugin.min.js +1 -1
- package/plugins/autosave/plugin.min.js +1 -1
- package/plugins/charmap/plugin.min.js +1 -1
- package/plugins/codesample/plugin.min.js +1 -1
- package/plugins/directionality/plugin.min.js +1 -1
- package/plugins/emoticons/plugin.min.js +1 -1
- package/plugins/fullscreen/plugin.min.js +1 -1
- package/plugins/help/plugin.min.js +1 -1
- package/plugins/image/plugin.min.js +1 -1
- package/plugins/importcss/plugin.min.js +1 -1
- package/plugins/link/plugin.min.js +1 -1
- package/plugins/lists/plugin.min.js +1 -1
- package/plugins/quickbars/plugin.min.js +1 -1
- package/plugins/save/plugin.min.js +1 -1
- package/plugins/searchreplace/plugin.min.js +1 -1
- package/plugins/table/plugin.min.js +1 -1
- package/plugins/visualblocks/plugin.min.js +1 -1
- package/plugins/visualchars/plugin.min.js +1 -1
- package/plugins/wordcount/plugin.min.js +1 -1
- package/themes/silver/theme.min.js +1 -1
- package/tinymce.js +6 -5
- package/tinymce.min.js +1 -1
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
|
};
|
|
@@ -25915,12 +25919,9 @@
|
|
|
25915
25919
|
return tag + '>';
|
|
25916
25920
|
};
|
|
25917
25921
|
const toBlockElements = (text, rootTag, rootAttrs) => {
|
|
25918
|
-
const
|
|
25922
|
+
const paragraphs = text.split(/\n/);
|
|
25919
25923
|
const tagOpen = openContainer(rootTag, rootAttrs);
|
|
25920
25924
|
const tagClose = '</' + rootTag + '>';
|
|
25921
|
-
const paragraphs = map$3(blocks, p => {
|
|
25922
|
-
return p.split(/\n/).join('<br />');
|
|
25923
|
-
});
|
|
25924
25925
|
const stitch = p => {
|
|
25925
25926
|
return tagOpen + p + tagClose;
|
|
25926
25927
|
};
|