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