Fix CKEditor alignment icon paths
This commit is contained in:
parent
655065d230
commit
fdfbddbd03
|
|
@ -1,5 +1,6 @@
|
||||||
CKEDITOR.plugins.add('hmsjustify', {
|
CKEDITOR.plugins.add('hmsjustify', {
|
||||||
init: function(editor) {
|
init: function(editor) {
|
||||||
|
var iconPath = CKEDITOR.plugins.getPath('hmsjustify') + 'icons/';
|
||||||
var commands = {
|
var commands = {
|
||||||
HmsJustifyLeft: 'justifyLeft',
|
HmsJustifyLeft: 'justifyLeft',
|
||||||
HmsJustifyCenter: 'justifyCenter',
|
HmsJustifyCenter: 'justifyCenter',
|
||||||
|
|
@ -19,25 +20,25 @@ CKEDITOR.plugins.add('hmsjustify', {
|
||||||
|
|
||||||
editor.ui.addButton('HmsJustifyLeft', {
|
editor.ui.addButton('HmsJustifyLeft', {
|
||||||
label: 'Align Left (L)',
|
label: 'Align Left (L)',
|
||||||
icon: 'icons/left.svg',
|
icon: iconPath + 'left.svg',
|
||||||
command: 'HmsJustifyLeft',
|
command: 'HmsJustifyLeft',
|
||||||
toolbar: 'paragraph,40'
|
toolbar: 'paragraph,40'
|
||||||
});
|
});
|
||||||
editor.ui.addButton('HmsJustifyCenter', {
|
editor.ui.addButton('HmsJustifyCenter', {
|
||||||
label: 'Center (C)',
|
label: 'Center (C)',
|
||||||
icon: 'icons/center.svg',
|
icon: iconPath + 'center.svg',
|
||||||
command: 'HmsJustifyCenter',
|
command: 'HmsJustifyCenter',
|
||||||
toolbar: 'paragraph,41'
|
toolbar: 'paragraph,41'
|
||||||
});
|
});
|
||||||
editor.ui.addButton('HmsJustifyRight', {
|
editor.ui.addButton('HmsJustifyRight', {
|
||||||
label: 'Align Right (R)',
|
label: 'Align Right (R)',
|
||||||
icon: 'icons/right.svg',
|
icon: iconPath + 'right.svg',
|
||||||
command: 'HmsJustifyRight',
|
command: 'HmsJustifyRight',
|
||||||
toolbar: 'paragraph,42'
|
toolbar: 'paragraph,42'
|
||||||
});
|
});
|
||||||
editor.ui.addButton('HmsJustifyBlock', {
|
editor.ui.addButton('HmsJustifyBlock', {
|
||||||
label: 'Justify (J)',
|
label: 'Justify (J)',
|
||||||
icon: 'icons/justify.svg',
|
icon: iconPath + 'justify.svg',
|
||||||
command: 'HmsJustifyBlock',
|
command: 'HmsJustifyBlock',
|
||||||
toolbar: 'paragraph,43'
|
toolbar: 'paragraph,43'
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user