<script>
// add external plugins you would like to use to this array.
// Each array can hold max. 3 values that represent the parameters the CKEDITOR.plugins.addExternal( names, path, [fileName] ) method requires.
// @see: http://docs.ckeditor.com/#!/api/CKEDITOR.plugins-method-addExternal
// e.g. ['names', 'path', 'optional: filename'];
// You can then register your plugin under extraPlugins on your ckeditor config.
externalPlugins = [
// Add arrays with plugins here.
];
ckEditorConfigs = {
'full': {
skin: 'bootstrapck',
startupFocus: false,
height: 300,
bodyClass: 'CKEditor',
filebrowserWindowWidth: 970,
filebrowserImageWindowWidth: 970,
filebrowserImageUploadUrl: '',
toolbar: [
{ name: 'basicstyles', items : ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', 'RemoveFormat'] },
{ name: 'paragraph', groups: [ 'align' ], items: [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
{ name: 'lists', items : ['NumberedList', 'BulletedList'] },
{ name: 'dents', items : ['Outdent', 'Indent'] },
{ name: 'links', items : ['Link','Unlink', 'Anchor'] },
{ name: 'insert', items : ['Image', 'Table', 'SpecialChar'] },
{ name: 'clipboard', items : ['SelectAll', 'Cut', 'Copy', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
{ name: 'editing', items : [] },
{ name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
{ name: 'colors', items: [ 'TextColor', 'BGColor' ] },
{ name: 'document', items : ['Source'] }
]
},
'simple': {
skin: 'bootstrapck',
startupFocus: false,
bodyClass: 'CKEditor',
filebrowserWindowWidth: 970,
filebrowserImageWindowWidth: 970,
filebrowserImageUploadUrl: '',
toolbar: [
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'RemoveFormat'] }
]
},
'raw-html': {
skin: 'bootstrapck',
startupFocus: true,
allowedContent: true,
removeFormatAttributes: '',
bodyClass: 'CKEditor',
extraPlugins: 'codemirror',
removePlugins: 'elementspath',
height: 300,
toolbar: [
{ name: 'document', items: ['Source', 'autoFormat', 'CommentSelectedRange', 'UncommentSelectedRange', 'AutoComplete' ] }
],
},
};
</script>
{% include "@KunstmaanAdmin/Default/_ckeditor_configs_extra.html.twig" %}