Skip to content

Commit

Permalink
hotfix: 2.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Oct 10, 2019
1 parent 1a19b14 commit 501b3c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/suneditor.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2433,7 +2433,7 @@ export default function (context, pluginCallButtons, plugins, lang, _options) {
this._placeholder = context.element.placeholder;

/** Excute history function, check components */
this.resourcesStateChange();
this._resourcesStateChange();
this._checkComponents();
this.history = _history(this, event._onChange_historyStack);
}.bind(this));
Expand Down Expand Up @@ -2974,7 +2974,7 @@ export default function (context, pluginCallButtons, plugins, lang, _options) {
const ctrl = e.ctrlKey || e.metaKey;
const alt = e.altKey;

if (!event._directionKeyKeyCode.test(keyCode)) _w.setTimeout(core.resourcesStateChange);
if (!event._directionKeyKeyCode.test(keyCode)) _w.setTimeout(core._resourcesStateChange);

if (core._isBalloon) {
event._hideToolbar();
Expand Down Expand Up @@ -3406,7 +3406,7 @@ export default function (context, pluginCallButtons, plugins, lang, _options) {

onCut_wysiwyg: function () {
_w.setTimeout(function () {
core.resourcesStateChange();
core._resourcesStateChange();
core._charCount(0, false);
// history stack
core.history.push();
Expand Down
4 changes: 2 additions & 2 deletions src/lib/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function (core, change) {

core._checkComponents();
core._charCount(0, false);
core.resourcesStateChange();
core._resourcesStateChange();

// onChange
change();
Expand Down Expand Up @@ -90,7 +90,7 @@ export default function (core, change) {
* @description Saving the current status to the history object stack
*/
push: function () {
_w.setTimeout(core.resourcesStateChange);
_w.setTimeout(core._resourcesStateChange);

if (pushDelay) {
_w.clearTimeout(pushDelay);
Expand Down

0 comments on commit 501b3c5

Please sign in to comment.