Skip to content

Commit

Permalink
fixed #6
Browse files Browse the repository at this point in the history
  • Loading branch information
w8tcha committed Jun 11, 2014
1 parent e3d95ca commit 437c8ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion textselection/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
*/
moveToBookmark: function(bookmark) {
var content = this.content;

function removeBookmarkText(bookmarkId) {

var bookmarkRegex = new RegExp('<span[^<]*?' + bookmarkId + '.*?/span>'),
Expand Down Expand Up @@ -355,6 +354,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license

this.content = content;
this.updateElement();

// ignore changes
editor.resetUndo();
},

updateElement: function() {
Expand Down

0 comments on commit 437c8ea

Please sign in to comment.