[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:
Christophe Matthieu
2015-07-16 20:59:40 +02:00
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 () {