Skip to content

Commit

Permalink
2.41.2
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 authored Jun 28, 2021
2 parents ad72580 + 3bd0743 commit f3ccd25
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "suneditor",
"version": "2.41.1",
"version": "2.41.2",
"description": "Pure JavaScript based WYSIWYG web editor",
"main": "src/suneditor.js",
"keywords": [
Expand Down
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.41.1",
"version": "2.41.2",
"description": "Pure JavaScript based WYSIWYG web editor",
"author": "JiHong.Lee",
"license": "MIT",
Expand Down
10 changes: 4 additions & 6 deletions src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
/**
* @description An array of buttons whose class name is not "se-code-view-enabled"
*/
codeViewDisabledButtons: null,
codeViewDisabledButtons: [],

/**
* @description An array of buttons whose class name is not "se-resizing-enabled"
*/
resizingDisabledButtons: null,
resizingDisabledButtons: [],

/**
* @description active more layer element in submenu
Expand Down Expand Up @@ -5211,10 +5211,8 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
* @private
*/
_cachingButtons: function () {
_w.setTimeout(function () {
this.codeViewDisabledButtons = context.element._buttonTray.querySelectorAll('.se-menu-list button[data-display]:not([class~="se-code-view-enabled"])');
this.resizingDisabledButtons = context.element._buttonTray.querySelectorAll('.se-menu-list button[data-display]:not([class~="se-resizing-enabled"]):not([data-display="MORE"])');
}.bind(this));
this.codeViewDisabledButtons = context.element._buttonTray.querySelectorAll('.se-menu-list button[data-display]:not([class~="se-code-view-enabled"])');
this.resizingDisabledButtons = context.element._buttonTray.querySelectorAll('.se-menu-list button[data-display]:not([class~="se-resizing-enabled"]):not([data-display="MORE"])');

const tool = context.tool;
this.commandMap = {
Expand Down

0 comments on commit f3ccd25

Please sign in to comment.