Fixed invalid markup after edit
authorAlexander Ebert <ebert@woltlab.com>
Tue, 16 Aug 2016 21:59:30 +0000 (23:59 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 16 Aug 2016 21:59:43 +0000 (23:59 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/InlineEditor.js

index 29761b38e73c10542ea38961131f8014a90c1435..45c9e377bfaa84e39de832e046962779595ba62b 100644 (file)
@@ -514,7 +514,7 @@ define(
                        
                        // set new content
                        //noinspection JSUnresolvedVariable
-                       DomUtil.setInnerHtml(elementData.messageBody, data.returnValues.message);
+                       DomUtil.setInnerHtml(DomTraverse.childByClass(elementData.messageBody, 'messageText'), data.returnValues.message);
                        
                        // handle attachment list
                        //noinspection JSUnresolvedVariable