-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathckeditor.config.js
More file actions
38 lines (33 loc) · 1.23 KB
/
ckeditor.config.js
File metadata and controls
38 lines (33 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/*
WARNING: clear browser's cache after you modify this file.
If you don't do this, you may notice that browser is ignoring all your changes.
*/
CKEDITOR.editorConfig = function(config) {
// [ Left, Center, Right, Justified ]
config.justifyClasses = [ 'text-left', 'text-center', 'text-right', 'text-justify' ];
config.wsc_lang = "da_DK";
config.scayt_defLan = 'da_DK';
config.allowedContent = true;
};
// Remove all unneassecary inputs on table and image dialogs.
CKEDITOR.on('dialogDefinition', function( ev ) {
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
var infoTab = dialogDefinition.getContents('info');
if(dialogName === 'table' || dialogName == 'tableProperties' ) {
//remove fields
var cellSpacing = infoTab.remove('txtCellSpace');
var cellPadding = infoTab.remove('txtCellPad');
var border = infoTab.remove('txtBorder');
var width = infoTab.remove('txtWidth');
var height = infoTab.remove('txtHeight');
var align = infoTab.remove('cmbAlign');
}
if(dialogName === 'image') {
infoTab.remove('txtBorder');
}
});