pull ckeditor config out of main.js
This commit is contained in:
parent
328e5c6f03
commit
3d0e7cb9a7
19
customize.dist/ckeditor-config.js
Normal file
19
customize.dist/ckeditor-config.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
CKEDITOR.editorConfig = function( config ) {
|
||||||
|
var fixThings = false;
|
||||||
|
// https://dev.ckeditor.com/ticket/10907
|
||||||
|
needsBrFiller= fixThings;
|
||||||
|
needsNbspFiller= fixThings;
|
||||||
|
|
||||||
|
removeButtons= 'Source,Maximize';
|
||||||
|
// magicline plugin inserts html crap into the document which is not part of the
|
||||||
|
// document itself and causes problems when it's sent across the wire and reflected back
|
||||||
|
removePlugins= 'resize';
|
||||||
|
extraPlugins= 'autolink,colorbutton,colordialog,font';
|
||||||
|
toolbarGroups= [{"name":"clipboard","groups":["clipboard","undo"]},{"name":"editing","groups":["find","selection"]},{"name":"links"},{"name":"insert"},{"name":"forms"},{"name":"tools"},{"name":"document","groups":["mode","document","doctools"]},{"name":"others"},{"name":"basicstyles","groups":["basicstyles","cleanup"]},{"name":"paragraph","groups":["list","indent","blocks","align","bidi"]},{"name":"styles"},{"name":"colors"}];
|
||||||
|
|
||||||
|
//skin: 'moono-cryptpad,/pad/themes/moono-cryptpad/'
|
||||||
|
//skin: 'flat,/pad/themes/flat/'
|
||||||
|
//skin: 'moono-lisa,/pad/themes/moono-lisa/'
|
||||||
|
//skin: 'moono-dark,/pad/themes/moono-dark/'
|
||||||
|
//skin: 'office2013,/pad/themes/office2013/'
|
||||||
|
;
|
||||||
@ -98,23 +98,8 @@ define([
|
|||||||
secret.keys = secret.key;
|
secret.keys = secret.key;
|
||||||
}
|
}
|
||||||
|
|
||||||
var fixThings = false;
|
|
||||||
|
|
||||||
var editor = window.editor = Ckeditor.replace('editor1', {
|
var editor = window.editor = Ckeditor.replace('editor1', {
|
||||||
// https://dev.ckeditor.com/ticket/10907
|
customConfig: '/customize/ckeditor-config.js',
|
||||||
needsBrFiller: fixThings,
|
|
||||||
needsNbspFiller: fixThings,
|
|
||||||
removeButtons: 'Source,Maximize',
|
|
||||||
// magicline plugin inserts html crap into the document which is not part of the
|
|
||||||
// document itself and causes problems when it's sent across the wire and reflected back
|
|
||||||
removePlugins: 'resize',
|
|
||||||
extraPlugins: 'autolink,colorbutton,colordialog,font',
|
|
||||||
toolbarGroups: [{"name":"clipboard","groups":["clipboard","undo"]},{"name":"editing","groups":["find","selection"]},{"name":"links"},{"name":"insert"},{"name":"forms"},{"name":"tools"},{"name":"document","groups":["mode","document","doctools"]},{"name":"others"},{"name":"basicstyles","groups":["basicstyles","cleanup"]},{"name":"paragraph","groups":["list","indent","blocks","align","bidi"]},{"name":"styles"},{"name":"colors"}],
|
|
||||||
//skin: 'moono-cryptpad,/pad/themes/moono-cryptpad/'
|
|
||||||
//skin: 'flat,/pad/themes/flat/'
|
|
||||||
//skin: 'moono-lisa,/pad/themes/moono-lisa/'
|
|
||||||
//skin: 'moono-dark,/pad/themes/moono-dark/'
|
|
||||||
//skin: 'office2013,/pad/themes/office2013/'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
editor.on('instanceReady', function (Ckeditor) {
|
editor.on('instanceReady', function (Ckeditor) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user