Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Jun 19, 2023
2 parents e2d00e5 + 4772550 commit 9799bc7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SunEditor
Pure javscript based WYSIWYG web editor, with no dependencies
Vanilla javascript based WYSIWYG web editor, with no dependencies.
SunEditor supports IE11 and all modern browsers with no dependencies and polyfill.

#### Demo : <a href="http://suneditor.com" target="_blank">suneditor.com</a>

Expand Down
4 changes: 2 additions & 2 deletions dist/suneditor.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "suneditor",
"version": "2.45.0",
"description": "Pure JavaScript based WYSIWYG web editor",
"version": "2.45.1",
"description": "Vanilla javascript based WYSIWYG web editor, with no dependencies",
"author": "JiHong.Lee",
"license": "MIT",
"main": "src/suneditor.js",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -6073,7 +6073,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
* @private
*/
_initWysiwygArea: function (reload, _initHTML) {
context.element.wysiwyg.innerHTML = reload ? _initHTML : this.convertContentsForEditor((typeof _initHTML === 'string' ? _initHTML : /TEXTAREA/i.test(context.element.originElement) ? context.element.originElement.value : context.element.originElement.innerHTML) || '');
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) || '');
},

/**
Expand Down

0 comments on commit 9799bc7

Please sign in to comment.