cryptpad/customize.dist/ckeditor-config.js

58 lines
2.2 KiB
JavaScript
Raw Normal View History

2017-04-13 15:09:35 +00:00
/* global CKEDITOR */
CKEDITOR.editorConfig = function( config ) {
2017-02-21 17:21:30 +00:00
var fixThings = false;
// https://dev.ckeditor.com/ticket/10907
2017-02-21 17:59:42 +00:00
config.needsBrFiller= fixThings;
config.needsNbspFiller= fixThings;
2017-02-21 17:21:30 +00:00
2017-02-21 17:59:42 +00:00
config.removeButtons= 'Source,Maximize';
2017-02-21 17:21:30 +00:00
// 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
2017-06-21 16:04:35 +00:00
config.removePlugins= 'resize,elementspath';
config.resize_enabled= false; //bottom-bar
config.extraPlugins= 'autolink,colorbutton,colordialog,font,indentblock,justify';
config.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"}];
2017-02-21 17:21:30 +00:00
config.font_defaultLabel = 'Arial';
config.fontSize_defaultLabel = '16';
config.contentsCss = '/customize/ckeditor-contents.css';
config.keystrokes = [
[ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ],
[ CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ],
[ CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ],
[ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ],
[ CKEDITOR.CTRL + 89 /*Y*/, 'redo' ],
[ CKEDITOR.CTRL + CKEDITOR.SHIFT + 90 /*Z*/, 'redo' ],
[ CKEDITOR.CTRL + CKEDITOR.SHIFT + 76 /*L*/, 'link' ],
[ CKEDITOR.CTRL + 76 /*L*/, undefined ],
[ CKEDITOR.CTRL + 66 /*B*/, 'bold' ],
[ CKEDITOR.CTRL + 73 /*I*/, 'italic' ],
[ CKEDITOR.CTRL + 85 /*U*/, 'underline' ],
[ CKEDITOR.ALT + 109 /*-*/, 'toolbarCollapse' ]
];
2017-02-21 17:21:30 +00:00
//skin: 'moono-cryptpad,/pad/themes/moono-cryptpad/'
//skin: 'flat,/pad/themes/flat/'
2017-06-20 08:03:13 +00:00
//config.skin= 'moono-lisa,/pad/themes/moono-lisa/'
2017-02-21 17:21:30 +00:00
//skin: 'moono-dark,/pad/themes/moono-dark/'
//skin: 'office2013,/pad/themes/office2013/'
2017-02-21 17:59:42 +00:00
};