suneditor 2.43.11 → 2.43.12

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.43.11",
3
+ "version": "2.43.12",
4
4
  "description": "Pure JavaScript based WYSIWYG web editor",
5
5
  "author": "JiHong.Lee",
6
6
  "license": "MIT",
package/src/lib/core.js CHANGED
@@ -5102,11 +5102,11 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
5102
5102
  .replace(this.editorTagsBlacklistRegExp, '');
5103
5103
  },
5104
5104
 
5105
- _cleanStyle: function (m, v, tagName) {
5105
+ _cleanStyle: function (m, v, name) {
5106
5106
  const sv = m.match(/style\s*=\s*(?:"|')[^"']*(?:"|')/);
5107
5107
  if (sv) {
5108
5108
  if (!v) v = [];
5109
- const style = sv[0].replace(/"/g, '').match(this._cleanStyleRegExp[tagName]);
5109
+ const style = sv[0].replace(/"/g, '').match(this._cleanStyleRegExp[name]);
5110
5110
  if (style) {
5111
5111
  const allowedStyle = [];
5112
5112
  for (let i = 0, len = style.length, r; i < len; i++) {
@@ -5845,7 +5845,6 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
5845
5845
  }
5846
5846
 
5847
5847
  this._initWysiwygArea(reload, _initHTML);
5848
- this.setDir(options.rtl ? 'rtl' : 'ltr');
5849
5848
  },
5850
5849
 
5851
5850
  /**
@@ -6325,8 +6324,6 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
6325
6324
 
6326
6325
  if (!command && !display) return;
6327
6326
  if (target.disabled) return;
6328
- if (!core.isReadOnly && !core.hasFocus) core.nativeFocus();
6329
- if (!core.isReadOnly && !core._variable.isCodeView) core._editorRange();
6330
6327
 
6331
6328
  core.actionCall(command, display, target);
6332
6329
  },