From: Alexander Ebert Date: Sat, 11 Oct 2014 10:25:25 +0000 (+0200) Subject: Fixed some minor issues X-Git-Tag: 2.1.0_Alpha_1~242 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7253a2bb12ae760c80fb2a4f70f44e88e1639499;p=GitHub%2FWoltLab%2FWCF.git Fixed some minor issues --- diff --git a/com.woltlab.wcf/templates/wysiwyg.tpl b/com.woltlab.wcf/templates/wysiwyg.tpl index de68ad7c56..1281dd3d01 100644 --- a/com.woltlab.wcf/templates/wysiwyg.tpl +++ b/com.woltlab.wcf/templates/wysiwyg.tpl @@ -62,6 +62,9 @@ $(function() { {event name='javascriptInit'} + // clear textarea before init + $textarea.val(''); + $textarea.redactor($config); }); diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index 1b95aa5729..5ffdc86d07 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -730,7 +730,7 @@ WCF.User.Profile.Editor = Class.extend({ case 'textarea': if ($element.data('redactor')) { - $value = $element.redactor('getText'); + $value = $element.redactor('wutil.getText'); } break; } @@ -833,7 +833,7 @@ WCF.User.Profile.Editor = Class.extend({ this._tab.find('textarea').each(function(index, container) { var $container = $(container); if ($container.data('redactor')) { - $container.redactor('destroy'); + $container.redactor('core.destroy'); } }); }