Fixed inline format being stripped on return
authorAlexander Ebert <ebert@woltlab.com>
Mon, 19 Dec 2016 16:35:14 +0000 (17:35 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 19 Dec 2016 16:35:20 +0000 (17:35 +0100)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabKeydown.js

index 1142373e875fa9321e3f9f0e8332a85e3dad6a87..97298981b96687812984bd05931e417503ded206 100644 (file)
@@ -109,6 +109,9 @@ $.Redactor.prototype.WoltLabKeydown = function() {
                                }
                                
                                // remove inline tags in new-empty paragraph
+                               /*
+                                       WoltLab modification: preserve inline tags
+                               
                                setTimeout($.proxy(function () {
                                        var inline = this.selection.inline();
                                        if (inline && this.utils.isEmpty(inline.innerHTML)) {
@@ -131,6 +134,7 @@ $.Redactor.prototype.WoltLabKeydown = function() {
                                        }
                                        
                                }, this), 1);
+                               */
                        }).bind(this);
                        
                        this.keydown.onEnter = (function(e) {