From: Alexander Ebert Date: Wed, 25 Sep 2013 02:15:57 +0000 (+0200) Subject: Fixed undo/redo of BBCodes X-Git-Tag: 2.0.0_Beta_10~26^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f20c925c5086fc43524b8401687f2c9ed0a1f1ec;p=GitHub%2FWoltLab%2FWCF.git Fixed undo/redo of BBCodes --- 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