Explicitly require Bootstrap module
authorMatthias Schmidt <gravatronics@live.com>
Fri, 22 Mar 2019 15:16:04 +0000 (16:16 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 22 Mar 2019 15:16:04 +0000 (16:16 +0100)
See 0dc68d99178525bf14f2ef76593c5a0b5a59a44a
See #2852

com.woltlab.wcf/templates/__wysiwygFormField.tpl
wcfsetup/install/files/acp/templates/__wysiwygFormField.tpl

index 527dc7c99404ddc694b456d8374db7d9b9c6608f..1df84afa96d8b23d1746f19f7a40cbcf5a39ad06 100644 (file)
@@ -19,9 +19,8 @@
 {if $field->supportsQuotes()}
        {js application='wcf' file='WCF.Message' bundle='WCF.Combined'}
        <script data-relocate="true">
-               {* use empty require to ensure that the `Bootstrap` module is loaded and 
-                       `window.__wcf_bc_eventHandler` is available *}
-               require([], function() {
+               // Bootstrap for window.__wcf_bc_eventHandler
+               require(['WoltLabSuite/Core/Bootstrap'], function(Bootstrap) {
                        {include file='__messageQuoteManager' wysiwygSelector=$field->getPrefixedId() supportPaste=true}
                        
                        {if $field->getQuoteData() !== null}
index 527dc7c99404ddc694b456d8374db7d9b9c6608f..1df84afa96d8b23d1746f19f7a40cbcf5a39ad06 100644 (file)
@@ -19,9 +19,8 @@
 {if $field->supportsQuotes()}
        {js application='wcf' file='WCF.Message' bundle='WCF.Combined'}
        <script data-relocate="true">
-               {* use empty require to ensure that the `Bootstrap` module is loaded and 
-                       `window.__wcf_bc_eventHandler` is available *}
-               require([], function() {
+               // Bootstrap for window.__wcf_bc_eventHandler
+               require(['WoltLabSuite/Core/Bootstrap'], function(Bootstrap) {
                        {include file='__messageQuoteManager' wysiwygSelector=$field->getPrefixedId() supportPaste=true}
                        
                        {if $field->getQuoteData() !== null}