Skip to content

Commit

Permalink
Merge pull request #1329 from JFox23/issue_1312
Browse files Browse the repository at this point in the history
Fix issue #1312
  • Loading branch information
JiHong88 authored Nov 29, 2023
2 parents c006dd2 + feddc43 commit 4da7cf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2143,7 +2143,9 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
let endNextEl = null;
if (isStartEdge) {
startPrevEl = util.getFormatElement(range.startContainer);
prevContainer = startPrevEl.previousElementSibling;
if (startPrevEl) {
prevContainer = startPrevEl.previousElementSibling;
}
startPrevEl = startPrevEl ? prevContainer : startPrevEl;
}
if (isEndEdge) {
Expand Down

0 comments on commit 4da7cf3

Please sign in to comment.