From 55dfd1283b710bfb834cd1bb56d0e65d8a89e96c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 13 May 2014 12:41:22 +0200 Subject: [PATCH] editor: plugins/core - better selecton restore after undoing/redoing link edition via link tool box --- src/editor/plugins/core/links/linkElement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/plugins/core/links/linkElement.js b/src/editor/plugins/core/links/linkElement.js index 8d280c7..ceefee1 100644 --- a/src/editor/plugins/core/links/linkElement.js +++ b/src/editor/plugins/core/links/linkElement.js @@ -63,7 +63,7 @@ _.extend(linkElement, { }, { metadata: { description: gettext('Edit link'), - fragment: doc.createFragment(doc.CaretFragment, {node: el.wlxmlNode.contents()[0], offset:0}) + fragment: doc.createFragment(doc.CaretFragment, {node: el.wlxmlNode.contents()[0], offset:offset}) }, success: function() { el.canvas.select(doc.createFragment(doc.CaretFragment, {node: el.wlxmlNode.contents()[0], offset:offset})); -- 2.20.1