Slightly delaying Redactor init
authorAlexander Ebert <ebert@woltlab.com>
Tue, 3 Jan 2017 13:38:24 +0000 (14:38 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 3 Jan 2017 16:35:42 +0000 (17:35 +0100)
com.woltlab.wcf/templates/wysiwyg.tpl
wcfsetup/install/files/acp/templates/wysiwyg.tpl

index 4b4190dc04693b11c947d4df61c04ae975cbad89..0e60cf9c78f9397e809ee65f677519f6d81caa75 100644 (file)
                                }, 10);
                        };
                        
-                       $(element).redactor(config);
+                       $(function () {
+                               $(element).redactor(config);
+                       });
                });
        });
 </script>
index 4b4190dc04693b11c947d4df61c04ae975cbad89..0e60cf9c78f9397e809ee65f677519f6d81caa75 100644 (file)
                                }, 10);
                        };
                        
-                       $(element).redactor(config);
+                       $(function () {
+                               $(element).redactor(config);
+                       });
                });
        });
 </script>