suneditor 2.43.12 → 2.43.13

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.12",
3
+ "version": "2.43.13",
4
4
  "description": "Pure JavaScript based WYSIWYG web editor",
5
5
  "author": "JiHong.Lee",
6
6
  "license": "MIT",
package/src/lib/core.js CHANGED
@@ -5123,10 +5123,10 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
5123
5123
  if (!options.plugins.fontSize) continue;
5124
5124
  break;
5125
5125
  case 'color':
5126
- if (!options.plugins.fontColor || /rgba\(([0-9]+\s*,\s*){3}0\)/i.test(c)) continue;
5126
+ if (!options.plugins.fontColor || /rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i.test(c)) continue;
5127
5127
  break;
5128
5128
  case 'backgroundColor':
5129
- if (!options.plugins.hiliteColor || /rgba\(([0-9]+\s*,\s*){3}0\)/i.test(c)) continue;
5129
+ if (!options.plugins.hiliteColor || /rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i.test(c)) continue;
5130
5130
  break;
5131
5131
  }
5132
5132
 
@@ -127,7 +127,7 @@ export default {
127
127
  contextAnchor.newWindowCheck.checked = this.options.linkTargetNewWindow;
128
128
  } else if (contextAnchor.linkAnchor) {
129
129
  this.context.dialog.updateModal = true;
130
- const href = this.options.linkNoPrefix ? contextAnchor.linkAnchor.href.replace(contextAnchor.linkAnchor.origin + '/', '') : contextAnchor.linkAnchor.href;
130
+ const href = contextAnchor.linkAnchor.getAttribute('href');
131
131
  contextAnchor.linkValue = contextAnchor.preview.textContent = contextAnchor.urlInput.value = anchorPlugin.selfPathBookmark.call(this, href) ? href.substr(href.lastIndexOf('#')) : href;
132
132
  contextAnchor.anchorText.value = contextAnchor.linkAnchor.textContent || contextAnchor.linkAnchor.getAttribute('alt');
133
133
  contextAnchor.newWindowCheck.checked = (/_blank/i.test(contextAnchor.linkAnchor.target) ? true : false);