source: public/assets/js/examples/ckeditor.js@ 7043def

develop
Last change on this file since 7043def was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago

added departments, edited users and added user settings

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[194a359]1'use strict';
2$(document).ready(function () {
3
4 if($('#editor-demo1').length) {
5 CKEDITOR.replace('editor-demo1');
6 }
7
8 if($('#editor-demo2').length) {
9 CKEDITOR.replace('editor-demo2', {
10 // Define the toolbar groups as it is a more accessible solution.
11 toolbarGroups: [{
12 "name": "basicstyles",
13 "groups": ["basicstyles"]
14 },
15 {
16 "name": "links",
17 "groups": ["links"]
18 },
19 {
20 "name": "paragraph",
21 "groups": ["list", "blocks"]
22 },
23 {
24 "name": "insert",
25 "groups": ["insert"]
26 }
27 ],
28 // Remove the redundant buttons from toolbar groups defined above.
29 removeButtons: 'Underline,Strike,Subscript,Superscript,Anchor,Styles,Specialchar'
30 });
31 }
32
33 if($('#editor-demo3').length) {
34 CKEDITOR.replace('editor-demo3', {
35 uiColor: '#CCEAEE'
36 });
37 }
38
39 if($('#email-compose-editor').length) {
40 CKEDITOR.replace('email-compose-editor', {
41 toolbarGroups: [{
42 "name": "basicstyles",
43 "groups": ["basicstyles"]
44 },
45 {
46 "name": "links",
47 "groups": ["links"]
48 },
49 {
50 "name": "paragraph",
51 "groups": ["list", "blocks"]
52 },
53 {
54 "name": "insert",
55 "groups": ["insert"]
56 }
57 ],
58 removeButtons: 'Underline,Strike,Subscript,Superscript,Anchor,Styles,Specialchar'
59 });
60 }
61
62});
63
64if($('#editor-demo4').length) {
65 CKEDITOR.disableAutoInline = true;
66 CKEDITOR.inline('editor-demo4');
67}
68
69if($('#editor-demo5').length) {
70 CKEDITOR.disableAutoInline = true;
71 CKEDITOR.inline('editor-demo5');
72}
73
74if($('#editor-demo6').length) {
75 CKEDITOR.disableAutoInline = true;
76 CKEDITOR.inline('editor-demo6');
77}
Note: See TracBrowser for help on using the repository browser.