Use custom ckeditor options

This commit is contained in:
Emanuel Schuetze 2015-11-16 19:41:54 +01:00 committed by Norman Jäckel
parent d299579f16
commit e3f57a250c

View File

@ -230,21 +230,31 @@ angular.module('OpenSlidesApp.core', [
/* Options for CKEditor used in various create and edit views. */ /* Options for CKEditor used in various create and edit views. */
.value('CKEditorOptions', { .value('CKEditorOptions', {
allowedContent: 'h1 h2 h3 p pre b i u strike strong em; a[!href]; ol ul{list-style}; li; span{color,background-color}; img;', allowedContent:
removePlugins: 'save, print, preview, pagebreak, templates, showblocks, magicline', 'h1 h2 h3 p pre b i u strike strong em blockquote;' +
// TODO extraPlugins: 'insertpre', // see http://ckeditor.com/addon/insertpre 'a[!href];' +
toolbar: 'Full', 'img[!src,alt]{width,height,float};' +
toolbar_Full: [ 'table tr th td caption;' +
{'name': 'document', 'items': ['Source', '-', 'Save', 'DocProps', 'Preview', 'Print', '-', 'Templates']}, 'li ol ul{list-style};' +
{'name': 'clipboard', 'items': ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']}, 'span{color,background-color};',
{'name': 'editing', 'items': ['Find', 'Replace', '-', 'SpellChecker', 'Scayt']}, extraPlugins: 'colorbutton',
{'name': 'basicstyles', 'items': ['Bold', 'Italic', 'Underline', 'Strike', '-', 'RemoveFormat']}, toolbarGroups: [
{'name': 'paragraph', 'items': ['NumberedList', 'BulletedList', '-', 'InsertPre']}, { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{'name': 'links', 'items': ['Link', 'Unlink']}, { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{'name': 'styles', 'items': ['Format', 'TextColor', 'BGColor']}, { name: 'forms', groups: [ 'forms' ] },
{'name': 'tools', 'items': ['Maximize', 'ShowBlocks', '-', 'About']}, { name: 'tools', groups: [ 'tools' ] },
{'name': 'images', 'items': ['Image']} { name: 'about', groups: [ 'about' ] },
] { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'others', groups: [ 'others' ] },
'/',
{ name: 'styles', groups: [ 'styles' ] },
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
{ name: 'links', groups: [ 'links' ] },
{ name: 'insert', groups: [ 'insert' ] },
{ name: 'colors', groups: [ 'colors' ] }
],
removeButtons: 'Anchor,SpecialChar,Subscript,Superscript,Styles,RemoveFormat,HorizontalRule'
}) })
// Make sure that the DS factories are loaded by making them a dependency // Make sure that the DS factories are loaded by making them a dependency