מדיה ויקי:VisualEditor customization.js: הבדלים בין גרסאות בדף
קפיצה לניווט
קפיצה לחיפוש
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 1: | שורה 1: | ||
mw.loader.using('ext.visualEditor.desktopArticleTarget.init').done(function() { | mw.loader.using('ext.visualEditor.desktopArticleTarget.init').done(function () { | ||
var toolFactory = ve.ui.toolFactory; | |||
var toolGroupFactory = ve.ui.toolGroupFactory; | |||
ve.ui. | // הוספת כפתור יישור לשני הצדדים | ||
toolFactory.register(ve.ui.AlignJustifyTool); | |||
toolGroupFactory.register(ve.ui.AlignJustifyTool); | |||
// הוספת כפתור יישור לימין | |||
toolFactory.register(ve.ui.AlignRightTool); | |||
toolGroupFactory.register(ve.ui.AlignRightTool); | |||
// הוספת כפתור יישור לשמאל | |||
toolFactory.register(ve.ui.AlignLeftTool); | |||
toolGroupFactory.register(ve.ui.AlignLeftTool); | |||
// הוספת כפתור יישור למרכז | |||
toolFactory.register(ve.ui.AlignCenterTool); | |||
toolGroupFactory.register(ve.ui.AlignCenterTool); | |||
}); | }); | ||
גרסה מ־20:00, 14 באוגוסט 2024
mw.loader.using('ext.visualEditor.desktopArticleTarget.init').done(function () {
var toolFactory = ve.ui.toolFactory;
var toolGroupFactory = ve.ui.toolGroupFactory;
// הוספת כפתור יישור לשני הצדדים
toolFactory.register(ve.ui.AlignJustifyTool);
toolGroupFactory.register(ve.ui.AlignJustifyTool);
// הוספת כפתור יישור לימין
toolFactory.register(ve.ui.AlignRightTool);
toolGroupFactory.register(ve.ui.AlignRightTool);
// הוספת כפתור יישור לשמאל
toolFactory.register(ve.ui.AlignLeftTool);
toolGroupFactory.register(ve.ui.AlignLeftTool);
// הוספת כפתור יישור למרכז
toolFactory.register(ve.ui.AlignCenterTool);
toolGroupFactory.register(ve.ui.AlignCenterTool);
});