Fixed some minor issues
authorAlexander Ebert <ebert@woltlab.com>
Sat, 11 Oct 2014 10:25:25 +0000 (12:25 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 11 Oct 2014 10:25:25 +0000 (12:25 +0200)
com.woltlab.wcf/templates/wysiwyg.tpl
wcfsetup/install/files/js/WCF.User.js

index de68ad7c56fa3a13c7c3e55d480313d01b5fb202..1281dd3d01e153585ab7551e29f83ab7eb46ce0a 100644 (file)
@@ -62,6 +62,9 @@ $(function() {
                
                {event name='javascriptInit'}
                
+               // clear textarea before init
+               $textarea.val('');
+               
                $textarea.redactor($config);
        });
        
index 1b95aa5729ac797012c41e2cde286695185018ed..5ffdc86d07b73e373db80122e5abf0369316007d 100644 (file)
@@ -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');
                        }
                });
        }