From 7253a2bb12ae760c80fb2a4f70f44e88e1639499 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 11 Oct 2014 12:25:25 +0200 Subject: [PATCH] Fixed some minor issues --- com.woltlab.wcf/templates/wysiwyg.tpl | 3 +++ wcfsetup/install/files/js/WCF.User.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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'); } }); } -- 2.20.1