From f20c925c5086fc43524b8401687f2c9ed0a1f1ec Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 25 Sep 2013 04:15:57 +0200 Subject: [PATCH] Fixed undo/redo of BBCodes --- .../files/js/3rdParty/ckeditor/plugins/wbutton/plugin.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbutton/plugin.js b/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbutton/plugin.js index 8f74534bf9..6d15c258a3 100644 --- a/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbutton/plugin.js +++ b/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbutton/plugin.js @@ -16,6 +16,8 @@ * @param CKEDITOR editor */ function transformBBCode(editor) { + editor.fire('lockSnapshot'); + var $markerID = null; $(editor.container.$).find('span.wcfBBCode').removeClass('wcfBBCode').html(function() { var $bbcode = $(this).data('bbcode'); @@ -34,6 +36,8 @@ $marker.remove(); } + + editor.fire('unlockSnapshot'); } // listens for 'afterCommandExec' to transform BBCodes into plain text -- 2.20.1