/
ckeditor-config.js
70 lines (65 loc) · 3.02 KB
/
ckeditor-config.js
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
CKEDITOR.editorConfig = function( config )
{
config.filebrowserBrowseUrl = CKEDITOR.basePath+'../kcfinder/browse.php?type=files';
config.filebrowserImageBrowseUrl = CKEDITOR.basePath+'../kcfinder/browse.php?type=images';
config.filebrowserFlashBrowseUrl = CKEDITOR.basePath+'../kcfinder/browse.php?type=flash';
config.filebrowserUploadUrl = CKEDITOR.basePath+'../kcfinder/upload.php?type=files';
config.filebrowserImageUploadUrl = CKEDITOR.basePath+'../kcfinder/upload.php?type=images';
config.filebrowserFlashUploadUrl = CKEDITOR.basePath+'../kcfinder/upload.php?type=flash';
config.removeDialogTabs = 'link:upload;image:Upload';
config.skin = 'bootstrapck';
//config.toolbarCanCollapse = true;
config.autoParagraph = false;
config.basicEntities = false; // For <, >, & ( and nbsp)
config.entities = false; // For ' ( and a lot of other but not <>&)
config.uiColor = '#F1f1f1';
if($('html').attr('dir') == 'rtl') {
config.contentsLangDirection = 'rtl';
}
config.toolbar_popup =
[
['Save','Createlimereplacementfields'],
['Cut','Copy','Paste','PasteText','PasteFromWord'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat','Source'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'],
'/',
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['BidiLtr', 'BidiRtl'],
['Link','Unlink','Anchor','Iframe'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
[ 'ShowBlocks','Templates']
];
config.toolbar_inline =
[
['Maximize','Createlimereplacementfields'],
['Cut','Copy','Paste','PasteText','PasteFromWord'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat','Source'],
['Image','Flash'],['Table','HorizontalRule','Smiley','SpecialChar'],
['Bold','Italic','Underline','Strike'],['Subscript','Superscript'],
['NumberedList','BulletedList'],['Outdent','Indent','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['BidiLtr', 'BidiRtl'],
[ 'ShowBlocks','Templates'],
['Link','Unlink'],
['Styles','Format','Font','FontSize'],
['Anchor','Iframe'],
['TextColor','BGColor']
];
config.toolbar_inline2 =
[
['Maximize','Createlimereplacementfields'],
['Bold','Italic','Underline'],
['NumberedList','BulletedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Image'],
['Source']
];
config.extraPlugins = "xml,ajax,limereplacementfields";
};
(function () {
CKEDITOR.plugins.addExternal('limereplacementfields', CKEDITOR.basePath + '../../scripts/admin/limereplacementfields/', 'plugin.js');
})();