forked from slab/quill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quill.js
55 lines (46 loc) · 1.73 KB
/
quill.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
import Quill from './core';
import { AlignClass } from './formats/align';
import { BackgroundStyle } from './formats/background';
import BoldFormat from './formats/bold';
import CodeFormat, { CodeInline } from './formats/code';
import { ColorStyle } from './formats/color';
import { DirectionClass } from './formats/direction';
import { FontClass } from './formats/font';
import HeaderFormat from './formats/header';
import { IndentClass } from './formats/indent';
import ImageFormat from './formats/image';
import ItalicFormat from './formats/italic';
import LinkFormat from './formats/link';
import ListFormat, { ListItem } from './formats/list';
import ScriptFormat from './formats/script';
import { SizeClass } from './formats/size';
import StrikeFormat from './formats/strike';
import UnderlineFormat from './formats/underline';
// import ImageModule, { ImageBlot } from './modules/image';
import LinkModule from './modules/link';
import ToolbarModule from './modules/toolbar';
import SnowTheme from './themes/snow';
Quill.register(AlignClass);
Quill.register(BackgroundStyle);
Quill.register(BoldFormat);
Quill.register(CodeInline);
Quill.register(CodeFormat);
Quill.register(ColorStyle);
Quill.register(DirectionClass);
Quill.register(FontClass);
Quill.register(HeaderFormat);
Quill.register(ImageFormat);
Quill.register(IndentClass);
Quill.register(ItalicFormat);
Quill.register(LinkFormat);
Quill.register(ListFormat);
Quill.register(ListItem);
Quill.register(ScriptFormat);
Quill.register(SizeClass);
Quill.register(StrikeFormat);
Quill.register(UnderlineFormat);
// Quill.register('image', ImageModule);
Quill.register('link-tooltip', LinkModule);
Quill.register('toolbar', ToolbarModule);
Quill.register('snow', SnowTheme);
module.exports = Quill;