-
Notifications
You must be signed in to change notification settings - Fork 0
/
editorjs.config.sample.ts
54 lines (53 loc) · 1.13 KB
/
editorjs.config.sample.ts
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
import ReadOnlyExtension from './extensions/ReadOnly.js';
/**
* Create editor.js dev-tools config
*
* @returns {unknown} - editor.js dev-tools config
*/
export default function config(): unknown {
return {
setup: {
packageManager: 'yarn',
core: {
version: '2.26.5',
},
tools: {
raw: '@editorjs/raw',
table: {
name: '@editorjs/table',
version: '~2.2.0',
},
code: '@editorjs/code',
quote: '@editorjs/quote',
header: '@editorjs/header',
checklist: {
path: './checklist/dist/bundle.js',
},
},
},
extensions: [ ReadOnlyExtension ],
editorConfig: {
tools: {
quote: {
config: {
quotePlaceholder: 'Enter a quote',
captionPlaceholder: 'Quote\'s author',
},
shortcut: 'CMD+SHIFT+O',
},
},
data: {
blocks: [
{
id: 'zcKCF1S7X8',
type: 'header',
data: {
text: 'Editor.js',
level: 1,
},
},
],
},
},
};
}