Skip to content

Commit 5f553d2

Browse files
authored
Merge pull request #1460 from julien/issue/1457
fix: Do not advance selection when editing a link
2 parents 567e1f7 + 07e4ef0 commit 5f553d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/buttons/button-link-edit.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ class ButtonLinkEdit extends React.Component {
402402
const selection = editor.getSelection();
403403
const bookmarks = selection.createBookmarks();
404404

405-
linkUtils.remove(this.state.element, {advance: true});
405+
linkUtils.remove(this.state.element, {advance: false});
406406

407407
selection.selectBookmarks(bookmarks);
408408

@@ -444,7 +444,7 @@ class ButtonLinkEdit extends React.Component {
444444
let linkAttrs = {
445445
target: this.state.linkTarget || null,
446446
};
447-
const modifySelection = {advance: true};
447+
const modifySelection = {advance: false};
448448

449449
if (this.state.linkHref) {
450450
if (this.state.element) {

0 commit comments

Comments
 (0)