Added debug output to observe potential issues
authorAlexander Ebert <ebert@woltlab.com>
Tue, 28 Oct 2014 18:31:17 +0000 (19:31 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 28 Oct 2014 18:31:17 +0000 (19:31 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 4e835a65d0a5d87a6234326f113278e3ce25955d..829eaafba34657fef8cdd2509ed566d233810889 100644 (file)
@@ -112,6 +112,7 @@ RedactorPlugins.wbbcode = function() {
                        // see http://www.neotericdesign.com/blog/2013/3/working-around-chrome-s-contenteditable-span-bug
                        this.$editor.on('DOMNodeInserted.redactor', (function(e) {
                                if (e.target.tagName === 'SPAN' && e.target.attributes.length === 1 && e.target.attributes[0].name === 'style') {
+                                       console.debug("[Redactor.wbbcode] Removed " + $(e.target).html());
                                        var $helper = $('<b>helper</b>');
                                        $(e.target).before($helper);