Files
2024-10-25 23:02:37 +02:00

32 lines
1.6 KiB
JavaScript

CKEDITOR.editorConfig = function( config ) {
config.toolbar = 'MyToolbar';
config.toolbar_MyToolbar =
[
['Cut','Copy','Paste','PasteText','PasteFromWord'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','CreateDiv'],
['TextColor','BGColor'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','cmslinkarticle','cmslinkpage'],
'/',
['FontAwesome','Image','Flash','Table','HorizontalRule','SpecialChar','Youtube','GoogleMaps'],
['Styles','Format','Font','FontSize','Source','Maximize']
];
config.toolbar = 'Basic';
config.toolbar_Basic =
[
['Bold', 'Italic','Underline', 'Strike', '-', 'NumberedList', 'BulletedList'],
[ 'Link', 'Unlink', 'FontAwesome','Image' ],
[ 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', '-', 'TextColor','BGColor'],
['Source','Maximize']
];
config.skin = 'bootstrapck';
config.defaultLanguage = 'pl';
config.extraPlugins = 'justify,font,tableresize,find,texttransform,colorbutton,youtube,cmslinkarticle,cmslinkpage,colordialog,googlemaps,fontAwesome';
config.allowedContent = true;
config.filebrowserBrowseUrl = '/libraries/filemanager/dialog.php?type=2&editor=ckeditor&akey=c3cb2537d25c0efc9e573d059d79c3b8';
config.filebrowserImageBrowseUrl = '/libraries/filemanager/dialog.php?type=1&editor=ckeditor&akey=c3cb2537d25c0efc9e573d059d79c3b8';
config.filebrowserUploadUrl = '/libraries/filemanager/dialog.php?type=2&editor=ckeditor&akey=c3cb2537d25c0efc9e573d059d79c3b8';
};