[FIX] website: editor: when create a link, the saved range is obsolete, and when the user click on an other option the range selection fail
This commit is contained in:
committed by
Jeremy Kersten
parent
fe70074506
commit
f52c6bfaeb
@@ -366,9 +366,9 @@ define(['summernote/summernote'], function () {
|
||||
|
||||
var def = new $.Deferred();
|
||||
editor.on("save", this, function (linkInfo) {
|
||||
linkInfo.range.select();
|
||||
$editable.data('range', linkInfo.range);
|
||||
def.resolve(linkInfo);
|
||||
$editable.data('range', range.create());
|
||||
$('.note-popover .note-link-popover').show();
|
||||
});
|
||||
editor.on("cancel", this, function () {
|
||||
|
||||
Reference in New Issue
Block a user