Index: trunk/extensions/WikiEditor/WikiEditor.php |
— | — | @@ -319,6 +319,7 @@ |
320 | 320 | 'wikieditor-toolbar-tool-link-empty', |
321 | 321 | 'wikieditor-toolbar-tool-file', |
322 | 322 | 'wikieditor-toolbar-tool-file-example', |
| 323 | + 'wikieditor-toolbar-tool-file-pre', |
323 | 324 | 'wikieditor-toolbar-tool-reference', |
324 | 325 | 'wikieditor-toolbar-tool-reference-title', |
325 | 326 | 'wikieditor-toolbar-tool-reference-cancel', |
Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.js |
— | — | @@ -270,7 +270,9 @@ |
271 | 271 | } |
272 | 272 | for ( var module in modules ) { |
273 | 273 | // Check for the existance of an available / supported module with a matching name and a create function |
274 | | - if ( typeof module == 'string' && $.wikiEditor.isSupported( $.wikiEditor.modules[module] ) ) { |
| 274 | + if ( typeof module == 'string' && typeof $.wikiEditor.modules[module] !== 'undefined' && |
| 275 | + $.wikiEditor.isSupported( $.wikiEditor.modules[module] ) ) |
| 276 | + { |
275 | 277 | // Extend the context's core API with this module's own API calls |
276 | 278 | if ( 'api' in $.wikiEditor.modules[module] ) { |
277 | 279 | for ( var call in $.wikiEditor.modules[module].api ) { |