Skip to content

Commit

Permalink
2.43.13
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 authored Jun 24, 2022
2 parents db5a74c + 99753f0 commit efa72ca
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/suneditor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "suneditor",
"version": "2.43.12",
"version": "2.43.13",
"description": "Pure JavaScript based WYSIWYG web editor",
"author": "JiHong.Lee",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -5123,10 +5123,10 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
if (!options.plugins.fontSize) continue;
break;
case 'color':
if (!options.plugins.fontColor || /rgba\(([0-9]+\s*,\s*){3}0\)/i.test(c)) continue;
if (!options.plugins.fontColor || /rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i.test(c)) continue;
break;
case 'backgroundColor':
if (!options.plugins.hiliteColor || /rgba\(([0-9]+\s*,\s*){3}0\)/i.test(c)) continue;
if (!options.plugins.hiliteColor || /rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i.test(c)) continue;
break;
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/modules/_anchor.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default {
contextAnchor.newWindowCheck.checked = this.options.linkTargetNewWindow;
} else if (contextAnchor.linkAnchor) {
this.context.dialog.updateModal = true;
const href = this.options.linkNoPrefix ? contextAnchor.linkAnchor.href.replace(contextAnchor.linkAnchor.origin + '/', '') : contextAnchor.linkAnchor.href;
const href = contextAnchor.linkAnchor.getAttribute('href');
contextAnchor.linkValue = contextAnchor.preview.textContent = contextAnchor.urlInput.value = anchorPlugin.selfPathBookmark.call(this, href) ? href.substr(href.lastIndexOf('#')) : href;
contextAnchor.anchorText.value = contextAnchor.linkAnchor.textContent || contextAnchor.linkAnchor.getAttribute('alt');
contextAnchor.newWindowCheck.checked = (/_blank/i.test(contextAnchor.linkAnchor.target) ? true : false);
Expand Down
1 change: 1 addition & 0 deletions test/dev/suneditor_build_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ s1.onKeyDown = function (e, core) {
let ss = window.ss = suneditor.create(document.getElementById('editor1'), {
rtl: true,
value: `<p style="text-align: right">Hello</p>`,
// linkNoPrefix: true,
// value: `<p style="text-align: center; color: red;" onerror="a">center</p>`,
// mode: "inline",
// value: `Let $\Omega$ be the underlying randomness space. In this case, the variables $X^-$ and $X^+$ collapse to $U$. To see why, pick an arbitrary $\omega \in \Omega$:
Expand Down

0 comments on commit efa72ca

Please sign in to comment.