suneditor 2.44.4 → 2.44.5

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": "suneditor",
3
- "version": "2.44.4",
3
+ "version": "2.44.5",
4
4
  "description": "Pure JavaScript based WYSIWYG web editor",
5
5
  "author": "JiHong.Lee",
6
6
  "license": "MIT",
package/src/lib/core.js CHANGED
@@ -1150,7 +1150,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
1150
1150
  */
1151
1151
  getSelection: function () {
1152
1152
  const selection = this._shadowRoot && this._shadowRoot.getSelection ? this._shadowRoot.getSelection() : this._ww.getSelection();
1153
- if (!context.element.wysiwyg.contains(selection.focusNode)) {
1153
+ if (!this._variable._range && !context.element.wysiwyg.contains(selection.focusNode)) {
1154
1154
  selection.removeAllRanges();
1155
1155
  selection.addRange(this._createDefaultRange());
1156
1156
  }