Content deleted Content added
mNo edit summary |
make sure the toolbar button is added when editing sanitized CSS |
||
Line 122:
return;
}
mw.hook('codeEditor.configure').add(initialize);▼
if (veAvailable) {
mw.hook('ve.loadModules').add(addPlugin => {
Line 135 ⟶ 134:
}
if (!isEdit) return;
let deferred = $.Deferred();
initialize();
deferred.resolve();
});
mw.hook('wikiEditor.toolbarReady').add($textarea => {
context = $textarea.data('wikiEditorContext');
deferred.done(() => {
▲ mw.loader.using('oojs-ui.styles.icons-interactions', () => {
$textarea.wikiEditor('addToToolbar', {
section: 'main',
|