-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
config-browser.js
39 lines (36 loc) · 1.33 KB
/
config-browser.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
const config = require('./config')
exports.wsEndpoint = config.isProd
? 'wss://' + config.siteHost + '/websocket'
: 'ws://' + window.location.hostname + ':4001/websocket'
exports.simpleEditor = {
allowedContent: 'p strong b em i u ol ul li sub sup',
autoGrow_minHeight: 100,
autoGrow_onStartup: true,
contentsCss: config.siteOrigin + '/main.css',
customConfig: '', // no external config file
removePlugins: 'toolbar'
}
exports.richEditor = {
allowedContent: 'p strong b em i u ol ul li h1 h2 h3 h4 h5 h6 sub sup',
autoGrow_minHeight: 200,
autoGrow_maxHeight: 400,
autoGrow_onStartup: true,
contentsCss: config.siteOrigin + '/main.css',
customConfig: '', // no external config file
toolbarGroups: [
{ name: 'clipboard', groups: ['clipboard', 'undo'] },
{ name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
{ 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' },
{ name: 'about' }
],
removeButtons: 'Cut,Copy,Paste,PasteFromWord,Undo,Redo,Subscript,Superscript,Outdent,Indent'
}