2010-09-15 22:40:50 +00:00
|
|
|
/*
|
|
|
|
* JavaScript for WikiEditor Dialogs
|
|
|
|
*/
|
2016-11-22 02:22:13 +00:00
|
|
|
jQuery( function ( $ ) {
|
2010-09-15 22:40:50 +00:00
|
|
|
if ( !$.wikiEditor.isSupported( $.wikiEditor.modules.dialogs ) ) {
|
|
|
|
return;
|
|
|
|
}
|
2013-10-30 16:53:24 +00:00
|
|
|
|
2010-10-04 21:08:41 +00:00
|
|
|
// Replace icons
|
2011-02-24 01:45:55 +00:00
|
|
|
$.wikiEditor.modules.dialogs.config.replaceIcons( $( '#wpTextbox1' ) );
|
2013-10-30 16:53:24 +00:00
|
|
|
|
2010-10-04 21:08:41 +00:00
|
|
|
// Add dialogs module
|
2011-02-24 01:45:55 +00:00
|
|
|
$( '#wpTextbox1' ).wikiEditor( 'addModule', $.wikiEditor.modules.dialogs.config.getDefaultConfig() );
|
2012-07-03 05:52:27 +00:00
|
|
|
} );
|