diff --git a/lib/editor/tinymce/tiny_mce/3.3.9.2/plugins/moodleemoticon/js/dialog.js b/lib/editor/tinymce/tiny_mce/3.3.9.2/plugins/moodleemoticon/js/dialog.js index 86359a921ca..ae504d0a84a 100644 --- a/lib/editor/tinymce/tiny_mce/3.3.9.2/plugins/moodleemoticon/js/dialog.js +++ b/lib/editor/tinymce/tiny_mce/3.3.9.2/plugins/moodleemoticon/js/dialog.js @@ -3,7 +3,7 @@ var MoodleEmoticonDialog = { bookmark : null, init : function() { - this.bookmark = tinyMCEPopup.editor.selection.getBookmark(); + this.bookmark = tinyMCEPopup.editor.selection.getBookmark(1, true); // register event handlers for the table rows tinymce.each(tinymce.DOM.select('tr.emoticoninfo', document), function(row) { @@ -36,7 +36,7 @@ var MoodleEmoticonDialog = { if (i == index) { tinyMCEPopup.editor.selection.moveToBookmark(this.bookmark); tinyMCEPopup.editor.execCommand('mceInsertContent', false, emoticons[emoticon]); - this.bookmark = tinyMCEPopup.editor.selection.getBookmark(); + this.bookmark = tinyMCEPopup.editor.selection.getBookmark(1, true); tinyMCEPopup.close(); return; }