diff --git a/modules/jquery.wikiEditor.dialogs.js b/modules/jquery.wikiEditor.dialogs.js index 31475ad9..8ae977aa 100644 --- a/modules/jquery.wikiEditor.dialogs.js +++ b/modules/jquery.wikiEditor.dialogs.js @@ -135,6 +135,8 @@ $.wikiEditor.modules.dialogs = { configuration.buttons = configuration.newButtons; if ( module.htmlTemplate ) { $content = mw.template.get( 'jquery.wikiEditor.dialogs.config', module.htmlTemplate ).render(); + } else if ( module.html instanceof jQuery ) { + $content = module.html; } else { $content = $( $.parseHTML( module.html ) ); }