From 17925a7894de8f8bfb82e2a5761dd65c2f23e4f6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 21 Jul 2016 10:18:16 +0200 Subject: [PATCH] Fixed profile editing --- wcfsetup/install/files/js/WCF.User.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index 7dc244e6dd..e97f484cac 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -966,10 +966,10 @@ WCF.User.Profile.Editor = Class.extend({ /** * Begins editing. * - * @param {Event} event event object + * @param {Event?} event event object */ _beginEdit: function(event) { - event.preventDefault(); + if (event) event.preventDefault(); this._actionName = 'beginEdit'; this._buttons.beginEdit.parent().addClass('active'); @@ -1008,7 +1008,7 @@ WCF.User.Profile.Editor = Class.extend({ case 'textarea': if ($element.data('redactor')) { - $value = $element.redactor('wutil.getText'); + $value = $element.redactor('code.get'); } break; } -- 2.20.1