Skip to content

Commit

Permalink
fix: fix one more notice when core not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Identity-labs committed Nov 24, 2024
1 parent 264dd48 commit 52af4c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/suneditor.min.js

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -6718,10 +6718,12 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
},

_toggleToolbarBalloon: function () {
core._editorRange();
const range = core.getRange();
if (core._bindControllersOff || (!core._isBalloonAlways && range.collapsed)) event._hideToolbar();
else event._showToolbarBalloon(range);
if (core) {
core._editorRange();
const range = core.getRange();
if (core._bindControllersOff || (!core._isBalloonAlways && range.collapsed)) event._hideToolbar();
else event._showToolbarBalloon(range);
}
},

_showToolbarBalloon: function (rangeObj) {
Expand Down

0 comments on commit 52af4c5

Please sign in to comment.