Add visible CKEditor alignment icons

This commit is contained in:
DevSoftTech Server 2026-08-18 18:05:44 +05:30
parent 8515e995f3
commit 655065d230
5 changed files with 8 additions and 4 deletions

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="#263238" d="M1 2h14v2H1zm3 3h8v2H4zm-3 3h14v2H1zm3 3h8v2H4z"/></svg>

After

Width:  |  Height:  |  Size: 163 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="#263238" d="M1 2h14v2H1zm0 3h14v2H1zm0 3h14v2H1zm0 3h14v2H1z"/></svg>

After

Width:  |  Height:  |  Size: 164 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="#263238" d="M1 2h14v2H1zm0 3h9v2H1zm0 3h14v2H1zm0 3h9v2H1z"/></svg>

After

Width:  |  Height:  |  Size: 162 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="#263238" d="M1 2h14v2H1zm5 3h9v2H6zm-5 3h14v2H1zm5 3h9v2H6z"/></svg>

After

Width:  |  Height:  |  Size: 163 B

View File

@ -19,25 +19,25 @@ CKEDITOR.plugins.add('hmsjustify', {
editor.ui.addButton('HmsJustifyLeft', {
label: 'Align Left (L)',
icon: false,
icon: 'icons/left.svg',
command: 'HmsJustifyLeft',
toolbar: 'paragraph,40'
});
editor.ui.addButton('HmsJustifyCenter', {
label: 'Center (C)',
icon: false,
icon: 'icons/center.svg',
command: 'HmsJustifyCenter',
toolbar: 'paragraph,41'
});
editor.ui.addButton('HmsJustifyRight', {
label: 'Align Right (R)',
icon: false,
icon: 'icons/right.svg',
command: 'HmsJustifyRight',
toolbar: 'paragraph,42'
});
editor.ui.addButton('HmsJustifyBlock', {
label: 'Justify (J)',
icon: false,
icon: 'icons/justify.svg',
command: 'HmsJustifyBlock',
toolbar: 'paragraph,43'
});