Skip to content

Commit

Permalink
Improved toolbar for CKEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
glebovsky committed Jan 23, 2017
1 parent d4cac0a commit e69783d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/admin/blocks.js
Expand Up @@ -125,7 +125,7 @@ Ext.onReady(function()
{
$('textarea.js-ckeditor').each(function()
{
intelli.ckeditor($(this).attr('id'), {toolbar: 'Extended', height: '400px'});
intelli.ckeditor($(this).attr('id'), {toolbar: 'extended', height: '400px'});
});
}
else
Expand Down
2 changes: 1 addition & 1 deletion js/admin/pages.js
Expand Up @@ -184,7 +184,7 @@ $(function()
lngCode = $this.data('language');

CKEDITOR.instances['content[' + lngCode + ']']
|| intelli.ckeditor('content[' + lngCode + ']', {toolbar: 'Extended'});
|| intelli.ckeditor('content[' + lngCode + ']', {toolbar: 'extended'});
});

// page extension dropdown
Expand Down
7 changes: 4 additions & 3 deletions js/ckeditor/config.js
Expand Up @@ -23,12 +23,13 @@ CKEDITOR.editorConfig = function(config)
['Cut', 'Copy', 'Paste','PasteText','PasteFromWord','-','Undo','Redo'],
['Link','Unlink'],
['Image','MediaEmbed','CodeSnippet','Table','HorizontalRule','SpecialChar'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
// ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['Styles','Format','Font','FontSize'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', '-', 'BidiLtr', 'BidiRtl'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['NumberedList','BulletedList', '-', 'Outdent', 'Indent'],
// '/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor']
];

Expand Down

0 comments on commit e69783d

Please sign in to comment.