suneditor 2.45.0 → 2.45.1
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/README.md +2 -1
- package/dist/suneditor.min.js +2 -2
- package/package.json +2 -2
- package/src/lib/core.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suneditor",
|
|
3
|
-
"version": "2.45.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.45.1",
|
|
4
|
+
"description": "Vanilla javascript based WYSIWYG web editor, with no dependencies",
|
|
5
5
|
"author": "JiHong.Lee",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "src/suneditor.js",
|
package/src/lib/core.js
CHANGED
|
@@ -6073,7 +6073,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
|
|
|
6073
6073
|
* @private
|
|
6074
6074
|
*/
|
|
6075
6075
|
_initWysiwygArea: function (reload, _initHTML) {
|
|
6076
|
-
context.element.wysiwyg.innerHTML = reload ? _initHTML : this.convertContentsForEditor((typeof _initHTML === 'string' ? _initHTML :
|
|
6076
|
+
context.element.wysiwyg.innerHTML = reload ? _initHTML : this.convertContentsForEditor((typeof _initHTML === 'string' ? _initHTML : /^TEXTAREA$/i.test(context.element.originElement.nodeName) ? context.element.originElement.value : context.element.originElement.innerHTML) || '');
|
|
6077
6077
|
},
|
|
6078
6078
|
|
|
6079
6079
|
/**
|