suneditor 2.46.2 → 3.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +7 -0
- package/.eslintrc.json +64 -0
- package/CONTRIBUTING.md +36 -0
- package/LICENSE.txt +1 -1
- package/README.md +174 -805
- package/dist/suneditor.min.css +1 -0
- package/dist/suneditor.min.js +1 -2
- package/package.json +96 -69
- package/src/assets/icons/_default.js +194 -0
- package/src/assets/suneditor-content.css +646 -0
- package/src/assets/suneditor.css +3378 -0
- package/src/core/base/eventHandlers/handler_toolbar.js +114 -0
- package/src/core/base/eventHandlers/handler_ww_clipboard.js +31 -0
- package/src/core/base/eventHandlers/handler_ww_dragDrop.js +69 -0
- package/src/core/base/eventHandlers/handler_ww_key_input.js +975 -0
- package/src/core/base/eventHandlers/handler_ww_mouse.js +118 -0
- package/src/core/base/eventManager.js +1115 -0
- package/src/core/base/events.js +320 -0
- package/src/core/base/history.js +301 -0
- package/src/core/class/char.js +146 -0
- package/src/core/class/component.js +627 -0
- package/src/core/class/format.js +3255 -0
- package/src/core/class/html.js +1621 -0
- package/src/core/class/menu.js +260 -0
- package/src/core/class/nodeTransform.js +379 -0
- package/src/core/class/notice.js +42 -0
- package/src/core/class/offset.js +578 -0
- package/src/core/class/selection.js +508 -0
- package/src/core/class/shortcuts.js +38 -0
- package/src/core/class/toolbar.js +440 -0
- package/src/core/class/viewer.js +646 -0
- package/src/core/editor.js +1593 -0
- package/src/core/section/actives.js +107 -0
- package/src/core/section/constructor.js +1237 -0
- package/src/core/section/context.js +97 -0
- package/src/editorInjector/_classes.js +22 -0
- package/src/editorInjector/_core.js +28 -0
- package/src/editorInjector/index.js +13 -0
- package/src/helper/converter.js +313 -0
- package/src/helper/domUtils.js +1177 -0
- package/src/helper/env.js +250 -0
- package/src/helper/index.js +19 -0
- package/src/helper/numbers.js +68 -0
- package/src/helper/unicode.js +43 -0
- package/src/langs/ckb.js +161 -0
- package/src/langs/cs.js +161 -0
- package/src/langs/da.js +161 -0
- package/src/langs/de.js +162 -0
- package/src/langs/en.js +199 -0
- package/src/langs/es.js +162 -0
- package/src/langs/fa.js +159 -0
- package/src/langs/fr.js +161 -0
- package/src/langs/he.js +162 -0
- package/src/{lang → langs}/index.js +0 -2
- package/src/langs/it.js +162 -0
- package/src/langs/ja.js +162 -0
- package/src/langs/ko.js +162 -0
- package/src/langs/lv.js +162 -0
- package/src/langs/nl.js +162 -0
- package/src/langs/pl.js +162 -0
- package/src/langs/pt_br.js +162 -0
- package/src/langs/ro.js +162 -0
- package/src/langs/ru.js +162 -0
- package/src/langs/se.js +162 -0
- package/src/langs/tr.js +159 -0
- package/src/langs/ua.js +162 -0
- package/src/langs/ur.js +162 -0
- package/src/langs/zh_cn.js +162 -0
- package/src/modules/ApiManager.js +168 -0
- package/src/modules/ColorPicker.js +302 -0
- package/src/modules/Controller.js +315 -0
- package/src/modules/Figure.js +1160 -0
- package/src/modules/FileBrowser.js +271 -0
- package/src/modules/FileManager.js +290 -0
- package/src/modules/HueSlider.js +513 -0
- package/src/modules/Modal.js +177 -0
- package/src/modules/ModalAnchorEditor.js +494 -0
- package/src/modules/SelectMenu.js +447 -0
- package/src/modules/_DragHandle.js +16 -0
- package/src/modules/index.js +14 -0
- package/src/plugins/command/blockquote.js +47 -47
- package/src/plugins/command/exportPdf.js +168 -0
- package/src/plugins/command/fileUpload.js +389 -0
- package/src/plugins/command/list_bulleted.js +112 -0
- package/src/plugins/command/list_numbered.js +115 -0
- package/src/plugins/dropdown/align.js +143 -0
- package/src/plugins/dropdown/backgroundColor.js +73 -0
- package/src/plugins/dropdown/font.js +113 -0
- package/src/plugins/dropdown/fontColor.js +73 -0
- package/src/plugins/dropdown/formatBlock.js +141 -0
- package/src/plugins/dropdown/hr.js +111 -0
- package/src/plugins/dropdown/layout.js +72 -0
- package/src/plugins/dropdown/lineHeight.js +114 -0
- package/src/plugins/dropdown/list.js +107 -0
- package/src/plugins/dropdown/paragraphStyle.js +117 -0
- package/src/plugins/dropdown/table.js +2810 -0
- package/src/plugins/dropdown/template.js +71 -0
- package/src/plugins/dropdown/textStyle.js +137 -0
- package/src/plugins/field/mention.js +172 -0
- package/src/plugins/fileBrowser/imageGallery.js +76 -59
- package/src/plugins/index.js +86 -24
- package/src/plugins/input/fontSize.js +357 -0
- package/src/plugins/modal/audio.js +510 -0
- package/src/plugins/modal/image.js +1062 -0
- package/src/plugins/modal/link.js +211 -0
- package/src/plugins/modal/math.js +347 -0
- package/src/plugins/modal/video.js +870 -0
- package/src/suneditor.js +62 -67
- package/src/themes/test.css +61 -0
- package/typings/CommandPlugin.d.ts +8 -0
- package/typings/DialogPlugin.d.ts +20 -0
- package/typings/FileBrowserPlugin.d.ts +30 -0
- package/typings/Lang.d.ts +124 -0
- package/typings/Module.d.ts +15 -0
- package/typings/Plugin.d.ts +42 -0
- package/typings/SubmenuPlugin.d.ts +8 -0
- package/typings/_classes.d.ts +17 -0
- package/typings/_colorPicker.d.ts +60 -0
- package/typings/_core.d.ts +55 -0
- package/typings/align.d.ts +5 -0
- package/{src/plugins/dialog → typings}/audio.d.ts +1 -1
- package/typings/backgroundColor.d.ts +5 -0
- package/{src/plugins/command → typings}/blockquote.d.ts +1 -1
- package/typings/char.d.ts +39 -0
- package/typings/component.d.ts +38 -0
- package/typings/context.d.ts +39 -0
- package/typings/converter.d.ts +33 -0
- package/typings/dialog.d.ts +28 -0
- package/typings/domUtils.d.ts +361 -0
- package/typings/editor.d.ts +7 -0
- package/typings/editor.ts +542 -0
- package/typings/env.d.ts +70 -0
- package/typings/eventManager.d.ts +37 -0
- package/typings/events.d.ts +262 -0
- package/typings/fileBrowser.d.ts +42 -0
- package/typings/fileManager.d.ts +67 -0
- package/typings/font.d.ts +5 -0
- package/typings/fontColor.d.ts +5 -0
- package/typings/fontSize.d.ts +5 -0
- package/typings/format.d.ts +191 -0
- package/typings/formatBlock.d.ts +5 -0
- package/typings/history.d.ts +48 -0
- package/typings/horizontalRule.d.ts +5 -0
- package/{src/plugins/dialog → typings}/image.d.ts +1 -1
- package/{src/plugins/fileBrowser → typings}/imageGallery.d.ts +1 -1
- package/typings/index.d.ts +21 -0
- package/{src/plugins/modules/index.d.ts → typings/index.modules.d.ts} +3 -3
- package/typings/index.plugins.d.ts +58 -0
- package/typings/lineHeight.d.ts +5 -0
- package/{src/plugins/dialog → typings}/link.d.ts +1 -1
- package/typings/list.d.ts +5 -0
- package/{src/plugins/dialog → typings}/math.d.ts +1 -1
- package/typings/mediaContainer.d.ts +25 -0
- package/typings/node.d.ts +57 -0
- package/typings/notice.d.ts +16 -0
- package/typings/numbers.d.ts +29 -0
- package/typings/offset.d.ts +24 -0
- package/typings/options.d.ts +589 -0
- package/typings/paragraphStyle.d.ts +5 -0
- package/typings/resizing.d.ts +141 -0
- package/typings/selection.d.ts +94 -0
- package/typings/shortcuts.d.ts +13 -0
- package/typings/suneditor.d.ts +9 -0
- package/typings/table.d.ts +5 -0
- package/typings/template.d.ts +5 -0
- package/typings/textStyle.d.ts +5 -0
- package/typings/toolbar.d.ts +32 -0
- package/typings/unicode.d.ts +25 -0
- package/{src/plugins/dialog → typings}/video.d.ts +1 -1
- package/dist/css/suneditor.min.css +0 -1
- package/src/assets/css/suneditor-contents.css +0 -562
- package/src/assets/css/suneditor.css +0 -566
- package/src/assets/defaultIcons.js +0 -103
- package/src/lang/Lang.d.ts +0 -144
- package/src/lang/ckb.d.ts +0 -5
- package/src/lang/ckb.js +0 -188
- package/src/lang/cs.d.ts +0 -5
- package/src/lang/cs.js +0 -188
- package/src/lang/da.d.ts +0 -5
- package/src/lang/da.js +0 -191
- package/src/lang/de.d.ts +0 -5
- package/src/lang/de.js +0 -188
- package/src/lang/en.d.ts +0 -5
- package/src/lang/en.js +0 -188
- package/src/lang/es.d.ts +0 -5
- package/src/lang/es.js +0 -188
- package/src/lang/fa.d.ts +0 -5
- package/src/lang/fa.js +0 -188
- package/src/lang/fr.d.ts +0 -5
- package/src/lang/fr.js +0 -188
- package/src/lang/he.d.ts +0 -5
- package/src/lang/he.js +0 -188
- package/src/lang/index.d.ts +0 -23
- package/src/lang/it.d.ts +0 -5
- package/src/lang/it.js +0 -188
- package/src/lang/ja.d.ts +0 -5
- package/src/lang/ja.js +0 -188
- package/src/lang/ko.d.ts +0 -5
- package/src/lang/ko.js +0 -188
- package/src/lang/lv.d.ts +0 -5
- package/src/lang/lv.js +0 -188
- package/src/lang/nl.d.ts +0 -5
- package/src/lang/nl.js +0 -188
- package/src/lang/pl.d.ts +0 -5
- package/src/lang/pl.js +0 -188
- package/src/lang/pt_br.d.ts +0 -5
- package/src/lang/pt_br.js +0 -189
- package/src/lang/ro.d.ts +0 -5
- package/src/lang/ro.js +0 -188
- package/src/lang/ru.d.ts +0 -5
- package/src/lang/ru.js +0 -188
- package/src/lang/se.d.ts +0 -5
- package/src/lang/se.js +0 -191
- package/src/lang/tr.d.ts +0 -5
- package/src/lang/tr.js +0 -191
- package/src/lang/ua.d.ts +0 -5
- package/src/lang/ua.js +0 -188
- package/src/lang/ur.d.ts +0 -5
- package/src/lang/ur.js +0 -188
- package/src/lang/zh_cn.d.ts +0 -5
- package/src/lang/zh_cn.js +0 -187
- package/src/lib/constructor.js +0 -954
- package/src/lib/context.d.ts +0 -42
- package/src/lib/context.js +0 -71
- package/src/lib/core.d.ts +0 -1135
- package/src/lib/core.js +0 -9395
- package/src/lib/history.d.ts +0 -48
- package/src/lib/history.js +0 -219
- package/src/lib/util.d.ts +0 -678
- package/src/lib/util.js +0 -2131
- package/src/options.d.ts +0 -608
- package/src/plugins/CommandPlugin.d.ts +0 -8
- package/src/plugins/DialogPlugin.d.ts +0 -20
- package/src/plugins/FileBrowserPlugin.d.ts +0 -30
- package/src/plugins/Module.d.ts +0 -15
- package/src/plugins/Plugin.d.ts +0 -42
- package/src/plugins/SubmenuPlugin.d.ts +0 -8
- package/src/plugins/dialog/audio.js +0 -559
- package/src/plugins/dialog/image.js +0 -1126
- package/src/plugins/dialog/link.js +0 -223
- package/src/plugins/dialog/math.js +0 -295
- package/src/plugins/dialog/mention.js +0 -242
- package/src/plugins/dialog/video.js +0 -979
- package/src/plugins/index.d.ts +0 -79
- package/src/plugins/modules/_anchor.js +0 -461
- package/src/plugins/modules/_colorPicker.d.ts +0 -60
- package/src/plugins/modules/_colorPicker.js +0 -201
- package/src/plugins/modules/_notice.d.ts +0 -21
- package/src/plugins/modules/_notice.js +0 -72
- package/src/plugins/modules/_selectMenu.js +0 -119
- package/src/plugins/modules/component.d.ts +0 -25
- package/src/plugins/modules/component.js +0 -81
- package/src/plugins/modules/dialog.d.ts +0 -28
- package/src/plugins/modules/dialog.js +0 -175
- package/src/plugins/modules/fileBrowser.d.ts +0 -42
- package/src/plugins/modules/fileBrowser.js +0 -374
- package/src/plugins/modules/fileManager.d.ts +0 -67
- package/src/plugins/modules/fileManager.js +0 -326
- package/src/plugins/modules/index.js +0 -9
- package/src/plugins/modules/resizing.d.ts +0 -154
- package/src/plugins/modules/resizing.js +0 -903
- package/src/plugins/submenu/align.d.ts +0 -5
- package/src/plugins/submenu/align.js +0 -160
- package/src/plugins/submenu/font.d.ts +0 -5
- package/src/plugins/submenu/font.js +0 -123
- package/src/plugins/submenu/fontColor.d.ts +0 -5
- package/src/plugins/submenu/fontColor.js +0 -101
- package/src/plugins/submenu/fontSize.d.ts +0 -5
- package/src/plugins/submenu/fontSize.js +0 -112
- package/src/plugins/submenu/formatBlock.d.ts +0 -5
- package/src/plugins/submenu/formatBlock.js +0 -273
- package/src/plugins/submenu/hiliteColor.d.ts +0 -5
- package/src/plugins/submenu/hiliteColor.js +0 -102
- package/src/plugins/submenu/horizontalRule.d.ts +0 -5
- package/src/plugins/submenu/horizontalRule.js +0 -98
- package/src/plugins/submenu/lineHeight.d.ts +0 -5
- package/src/plugins/submenu/lineHeight.js +0 -104
- package/src/plugins/submenu/list.d.ts +0 -5
- package/src/plugins/submenu/list.js +0 -456
- package/src/plugins/submenu/paragraphStyle.d.ts +0 -5
- package/src/plugins/submenu/paragraphStyle.js +0 -135
- package/src/plugins/submenu/table.d.ts +0 -5
- package/src/plugins/submenu/table.js +0 -1431
- package/src/plugins/submenu/template.d.ts +0 -5
- package/src/plugins/submenu/template.js +0 -72
- package/src/plugins/submenu/textStyle.d.ts +0 -5
- package/src/plugins/submenu/textStyle.js +0 -167
- package/src/suneditor.d.ts +0 -9
- package/src/suneditor_build.js +0 -18
- /package/{src/plugins/dialog → typings}/mention.d.ts +0 -0
|
@@ -0,0 +1,646 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--se-edit-font-size: 13px;
|
|
3
|
+
--se-edit-font: #333;
|
|
4
|
+
--se-edit-font-sub: #666;
|
|
5
|
+
--se-edit-background: #fff;
|
|
6
|
+
--se-edit-background-sub: #f9f9f9;
|
|
7
|
+
--se-edit-border-light: #e1e1e1;
|
|
8
|
+
--se-edit-border-dark: #b1b1b1;
|
|
9
|
+
--se-edit-border-dark-n1: #c1c1c1;
|
|
10
|
+
--se-edit-border-dark-n2: #d1d1d1;
|
|
11
|
+
--se-edit-anchor: #004cff;
|
|
12
|
+
--se-edit-anchor-on-back: #e8f7ff;
|
|
13
|
+
--se-edit-anchor-on-font: #0093ff;
|
|
14
|
+
--se-edit-hr-on-back: #c7deff;
|
|
15
|
+
--se-edit-active: #4592ff;
|
|
16
|
+
--se-edit-hover: #80bdff;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* suneditor content */
|
|
20
|
+
.sun-editor-editable {
|
|
21
|
+
font-family: Helvetica Neue;
|
|
22
|
+
font-size: var(--se-edit-font-size);
|
|
23
|
+
color: var(--se-edit-font);
|
|
24
|
+
background-color: var(--se-edit-background);
|
|
25
|
+
line-height: 1.5;
|
|
26
|
+
word-break: normal;
|
|
27
|
+
word-wrap: break-word;
|
|
28
|
+
padding: 16px;
|
|
29
|
+
margin: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.sun-editor-editable * {
|
|
33
|
+
-webkit-box-sizing: border-box;
|
|
34
|
+
-moz-box-sizing: border-box;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
font-family: inherit;
|
|
37
|
+
font-size: inherit;
|
|
38
|
+
color: inherit;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* RTL - editable */
|
|
42
|
+
.sun-editor-editable.se-rtl,
|
|
43
|
+
.sun-editor-editable.se-rtl * {
|
|
44
|
+
direction: rtl;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sun-editor-editable .se-component > figure {
|
|
48
|
+
direction: initial;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** controllers on tag */
|
|
52
|
+
.sun-editor-editable td,
|
|
53
|
+
.sun-editor-editable th,
|
|
54
|
+
.sun-editor-editable figure,
|
|
55
|
+
.sun-editor-editable figcaption,
|
|
56
|
+
.sun-editor-editable img,
|
|
57
|
+
.sun-editor-editable iframe,
|
|
58
|
+
.sun-editor-editable video,
|
|
59
|
+
.sun-editor-editable audio {
|
|
60
|
+
position: relative;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** span */
|
|
64
|
+
.sun-editor-editable span {
|
|
65
|
+
display: inline;
|
|
66
|
+
vertical-align: baseline;
|
|
67
|
+
margin: 0;
|
|
68
|
+
padding: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* katex */
|
|
72
|
+
.sun-editor-editable span.katex {
|
|
73
|
+
display: inline-block;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.sun-editor-editable span.katex * {
|
|
77
|
+
direction: ltr;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* a */
|
|
81
|
+
.sun-editor-editable a {
|
|
82
|
+
color: var(--se-edit-anchor);
|
|
83
|
+
text-decoration: none;
|
|
84
|
+
white-space: nowrap;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.sun-editor-editable span[style~='color:'] a {
|
|
88
|
+
color: inherit;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.sun-editor-editable a:hover,
|
|
92
|
+
.sun-editor-editable a:focus {
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
color: var(--se-edit-anchor-on-font);
|
|
95
|
+
text-decoration: underline;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.sun-editor-editable a.on {
|
|
99
|
+
color: var(--se-edit-anchor-on-font);
|
|
100
|
+
background-color: var(--se-edit-anchor-on-back);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* pre */
|
|
104
|
+
.sun-editor-editable pre {
|
|
105
|
+
display: block;
|
|
106
|
+
padding: 8px;
|
|
107
|
+
margin: 0 0 10px;
|
|
108
|
+
font-family: monospace;
|
|
109
|
+
color: var(--se-edit-font-sub);
|
|
110
|
+
line-height: 1.45;
|
|
111
|
+
background-color: var(--se-edit-background-sub);
|
|
112
|
+
border: 1px solid var(--se-edit-border-light);
|
|
113
|
+
border-radius: 2px;
|
|
114
|
+
white-space: pre-wrap !important;
|
|
115
|
+
word-wrap: break-word;
|
|
116
|
+
overflow: visible;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* ol, ul */
|
|
120
|
+
.sun-editor-editable ol {
|
|
121
|
+
list-style-position: outside;
|
|
122
|
+
display: block;
|
|
123
|
+
list-style-type: decimal;
|
|
124
|
+
margin-block-start: 1em;
|
|
125
|
+
margin-block-end: 1em;
|
|
126
|
+
margin-inline-start: 0px;
|
|
127
|
+
margin-inline-end: 0px;
|
|
128
|
+
padding-inline-start: 40px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.sun-editor-editable ul {
|
|
132
|
+
list-style-position: outside;
|
|
133
|
+
display: block;
|
|
134
|
+
list-style-type: disc;
|
|
135
|
+
margin-block-start: 1em;
|
|
136
|
+
margin-block-end: 1em;
|
|
137
|
+
margin-inline-start: 0px;
|
|
138
|
+
margin-inline-end: 0px;
|
|
139
|
+
padding-inline-start: 40px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.sun-editor-editable li {
|
|
143
|
+
display: list-item;
|
|
144
|
+
text-align: -webkit-match-parent;
|
|
145
|
+
margin-bottom: 5px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* nested list ol, ul */
|
|
149
|
+
.sun-editor-editable ol ol,
|
|
150
|
+
.sun-editor-editable ol ul,
|
|
151
|
+
.sun-editor-editable ul ol,
|
|
152
|
+
.sun-editor-editable ul ul {
|
|
153
|
+
margin: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.sun-editor-editable ol ol,
|
|
157
|
+
.sun-editor-editable ul ol {
|
|
158
|
+
list-style-type: lower-alpha;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.sun-editor-editable ol ol ol,
|
|
162
|
+
.sun-editor-editable ul ol ol,
|
|
163
|
+
.sun-editor-editable ul ul ol {
|
|
164
|
+
list-style-type: upper-roman;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.sun-editor-editable ul ul,
|
|
168
|
+
.sun-editor-editable ol ul {
|
|
169
|
+
list-style-type: circle;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.sun-editor-editable ul ul ul,
|
|
173
|
+
.sun-editor-editable ol ul ul,
|
|
174
|
+
.sun-editor-editable ol ol ul {
|
|
175
|
+
list-style-type: square;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* sub, sup */
|
|
179
|
+
.sun-editor-editable sub,
|
|
180
|
+
.sun-editor-editable sup {
|
|
181
|
+
font-size: 75%;
|
|
182
|
+
line-height: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.sun-editor-editable sub {
|
|
186
|
+
vertical-align: sub;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.sun-editor-editable sup {
|
|
190
|
+
vertical-align: super;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/** format style */
|
|
194
|
+
/* p */
|
|
195
|
+
.sun-editor-editable p {
|
|
196
|
+
display: block;
|
|
197
|
+
margin: 0 0 10px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* div */
|
|
201
|
+
.sun-editor-editable div {
|
|
202
|
+
display: block;
|
|
203
|
+
margin: 0;
|
|
204
|
+
padding: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* blockquote */
|
|
208
|
+
.sun-editor-editable blockquote {
|
|
209
|
+
display: block;
|
|
210
|
+
font-family: inherit;
|
|
211
|
+
font-size: inherit;
|
|
212
|
+
color: #999;
|
|
213
|
+
margin-block-start: 1em;
|
|
214
|
+
margin-block-end: 1em;
|
|
215
|
+
margin-inline-start: 0;
|
|
216
|
+
margin-inline-end: 0;
|
|
217
|
+
border-style: solid;
|
|
218
|
+
border-width: 0;
|
|
219
|
+
padding-top: 0;
|
|
220
|
+
padding-bottom: 0;
|
|
221
|
+
border-color: var(--se-edit-border-dark);
|
|
222
|
+
padding-left: 20px;
|
|
223
|
+
padding-right: 5px;
|
|
224
|
+
border-left-width: 5px;
|
|
225
|
+
border-right-width: 0px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.sun-editor-editable blockquote blockquote {
|
|
229
|
+
border-color: var(--se-edit-border-dark-n1);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.sun-editor-editable blockquote blockquote blockquote {
|
|
233
|
+
border-color: var(--se-edit-border-dark-n2);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.sun-editor-editable blockquote blockquote blockquote blockquote {
|
|
237
|
+
border-color: var(--se-edit-border-light);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* RTL - blockquote */
|
|
241
|
+
.sun-editor-editable.se-rtl blockquote {
|
|
242
|
+
padding-left: 5px;
|
|
243
|
+
padding-right: 20px;
|
|
244
|
+
border-left-width: 0px;
|
|
245
|
+
border-right-width: 5px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* h1 */
|
|
249
|
+
.sun-editor-editable h1 {
|
|
250
|
+
display: block;
|
|
251
|
+
font-size: 2em;
|
|
252
|
+
margin-block-start: 0.67em;
|
|
253
|
+
margin-block-end: 0.67em;
|
|
254
|
+
margin-inline-start: 0px;
|
|
255
|
+
margin-inline-end: 0px;
|
|
256
|
+
font-weight: bold;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* h2 */
|
|
260
|
+
.sun-editor-editable h2 {
|
|
261
|
+
display: block;
|
|
262
|
+
font-size: 1.5em;
|
|
263
|
+
margin-block-start: 0.83em;
|
|
264
|
+
margin-block-end: 0.83em;
|
|
265
|
+
margin-inline-start: 0px;
|
|
266
|
+
margin-inline-end: 0px;
|
|
267
|
+
font-weight: bold;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* h3 */
|
|
271
|
+
.sun-editor-editable h3 {
|
|
272
|
+
display: block;
|
|
273
|
+
font-size: 1.17em;
|
|
274
|
+
margin-block-start: 1em;
|
|
275
|
+
margin-block-end: 1em;
|
|
276
|
+
margin-inline-start: 0px;
|
|
277
|
+
margin-inline-end: 0px;
|
|
278
|
+
font-weight: bold;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/* h4 */
|
|
282
|
+
.sun-editor-editable h4 {
|
|
283
|
+
display: block;
|
|
284
|
+
font-size: 1em;
|
|
285
|
+
margin-block-start: 1.33em;
|
|
286
|
+
margin-block-end: 1.33em;
|
|
287
|
+
margin-inline-start: 0px;
|
|
288
|
+
margin-inline-end: 0px;
|
|
289
|
+
font-weight: bold;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* h5 */
|
|
293
|
+
.sun-editor-editable h5 {
|
|
294
|
+
display: block;
|
|
295
|
+
font-size: 0.83em;
|
|
296
|
+
margin-block-start: 1.67em;
|
|
297
|
+
margin-block-end: 1.67em;
|
|
298
|
+
margin-inline-start: 0px;
|
|
299
|
+
margin-inline-end: 0px;
|
|
300
|
+
font-weight: bold;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* h6 */
|
|
304
|
+
.sun-editor-editable h6 {
|
|
305
|
+
display: block;
|
|
306
|
+
font-size: 0.67em;
|
|
307
|
+
margin-block-start: 2.33em;
|
|
308
|
+
margin-block-end: 2.33em;
|
|
309
|
+
margin-inline-start: 0px;
|
|
310
|
+
margin-inline-end: 0px;
|
|
311
|
+
font-weight: bold;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* hr */
|
|
315
|
+
.sun-editor-editable hr {
|
|
316
|
+
display: flex;
|
|
317
|
+
border-width: 1px 0 0;
|
|
318
|
+
border-color: black;
|
|
319
|
+
border-image: initial;
|
|
320
|
+
height: 20px;
|
|
321
|
+
margin-top: 20px;
|
|
322
|
+
margin-bottom: 0;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.sun-editor-editable hr.__se__solid {
|
|
326
|
+
border-style: solid none none;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.sun-editor-editable hr.__se__dotted {
|
|
330
|
+
border-style: dotted none none;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.sun-editor-editable hr.__se__dashed {
|
|
334
|
+
border-style: dashed none none;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.sun-editor-editable hr.on {
|
|
338
|
+
border-color: var(--se-edit-active);
|
|
339
|
+
-webkit-box-shadow: 0 0 0 0.1rem var(--se-edit-hr-on-back);
|
|
340
|
+
box-shadow: 0 0 0 0.1rem var(--se-edit-hr-on-back);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* table */
|
|
344
|
+
.sun-editor-editable table {
|
|
345
|
+
display: table;
|
|
346
|
+
table-layout: auto !important;
|
|
347
|
+
border-width: 1px;
|
|
348
|
+
border-style: solid;
|
|
349
|
+
border-color: var(--se-edit-border-light);
|
|
350
|
+
width: 100%;
|
|
351
|
+
max-width: 100%;
|
|
352
|
+
margin: 0;
|
|
353
|
+
background-color: var(--se-edit-background);
|
|
354
|
+
border-spacing: 0;
|
|
355
|
+
border-collapse: collapse;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/* RTL - table */
|
|
359
|
+
.sun-editor-editable.se-rtl table {
|
|
360
|
+
margin: 0 0 10px auto;
|
|
361
|
+
background-color: var(--se-edit-background);
|
|
362
|
+
border-collapse: separate;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.sun-editor-editable table caption {
|
|
366
|
+
caption-side: initial;
|
|
367
|
+
text-align: unset;
|
|
368
|
+
padding: 0.5em;
|
|
369
|
+
margin: 0;
|
|
370
|
+
background-color: var(--se-edit-background-sub);
|
|
371
|
+
border: 1px solid var(--se-edit-border-light);
|
|
372
|
+
outline: none;
|
|
373
|
+
}
|
|
374
|
+
.sun-editor-editable table caption.se-table-caption-top {
|
|
375
|
+
caption-side: top;
|
|
376
|
+
border-bottom: 0;
|
|
377
|
+
}
|
|
378
|
+
.sun-editor-editable table caption.se-table-caption-bottom {
|
|
379
|
+
caption-side: bottom;
|
|
380
|
+
border-top: 0;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.sun-editor-editable table thead {
|
|
384
|
+
border-bottom: 2px solid var(--se-edit-font);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.sun-editor-editable table tr {
|
|
388
|
+
position: relative;
|
|
389
|
+
box-sizing: border-box;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.sun-editor-editable table th {
|
|
393
|
+
background-color: #f3f3f3;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.sun-editor-editable table th,
|
|
397
|
+
.sun-editor-editable table td {
|
|
398
|
+
border-width: 1px;
|
|
399
|
+
border-style: solid;
|
|
400
|
+
border-color: var(--se-edit-border-light);
|
|
401
|
+
padding: 0.4em;
|
|
402
|
+
background-clip: padding-box;
|
|
403
|
+
background-color: inherit;
|
|
404
|
+
vertical-align: middle;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/** table style class */
|
|
408
|
+
.sun-editor-editable table.se-table-layout-fixed {
|
|
409
|
+
table-layout: fixed !important;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.sun-editor-editable.se-disabled * {
|
|
413
|
+
user-select: none;
|
|
414
|
+
-o-user-select: none;
|
|
415
|
+
-moz-user-select: none;
|
|
416
|
+
-khtml-user-select: none;
|
|
417
|
+
-webkit-user-select: none;
|
|
418
|
+
-ms-user-select: none;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/** component */
|
|
422
|
+
.sun-editor-editable .se-component {
|
|
423
|
+
display: flex;
|
|
424
|
+
padding: 1px;
|
|
425
|
+
margin: 0 0 10px;
|
|
426
|
+
background-color: inherit;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/* file upload component */
|
|
430
|
+
.sun-editor-editable .se-component.se-file-figure > figure {
|
|
431
|
+
padding: 1em;
|
|
432
|
+
outline: 1px solid #bbb;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.sun-editor-editable .se-component.se-file-figure > figure > a[data-se-file-download] {
|
|
436
|
+
color: var(--se-edit-font);
|
|
437
|
+
margin: 0 4px;
|
|
438
|
+
}
|
|
439
|
+
.sun-editor-editable .se-component.se-file-figure > figure > a::before {
|
|
440
|
+
content: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTIwLDE4SDRWOEgyME0yMCw2SDEyTDEwLDRINEMyLjg5LDQgMiw0Ljg5IDIsNlYxOEEyLDIgMCAwLDAgNCwyMEgyMEEyLDIgMCAwLDAgMjIsMThWOEMyMiw2Ljg5IDIxLjEsNiAyMCw2WiIgLz48L3N2Zz4=');
|
|
441
|
+
display: inline-block;
|
|
442
|
+
width: 1.5em;
|
|
443
|
+
height: auto;
|
|
444
|
+
vertical-align: middle;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/* float */
|
|
448
|
+
.sun-editor-editable .__se__float-left {
|
|
449
|
+
float: left;
|
|
450
|
+
margin-right: 4px;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.sun-editor-editable .__se__float-right {
|
|
454
|
+
float: right;
|
|
455
|
+
margin-left: 4px;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.sun-editor-editable .__se__float-center {
|
|
459
|
+
float: center;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.sun-editor-editable .__se__float-none {
|
|
463
|
+
float: none;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/** image, video .. */
|
|
467
|
+
.sun-editor-editable img,
|
|
468
|
+
.sun-editor-editable iframe,
|
|
469
|
+
.sun-editor-editable video,
|
|
470
|
+
.sun-editor-editable audio {
|
|
471
|
+
display: block;
|
|
472
|
+
margin: 0;
|
|
473
|
+
padding: 0;
|
|
474
|
+
width: auto;
|
|
475
|
+
height: auto;
|
|
476
|
+
max-width: 100%;
|
|
477
|
+
cursor: default;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/** image, video iframe figure cover */
|
|
481
|
+
.sun-editor-editable .se-image-container,
|
|
482
|
+
.sun-editor-editable .se-video-container {
|
|
483
|
+
width: auto;
|
|
484
|
+
height: auto;
|
|
485
|
+
max-width: 100%;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.sun-editor-editable figure {
|
|
489
|
+
display: block;
|
|
490
|
+
outline: none;
|
|
491
|
+
min-width: 20px;
|
|
492
|
+
padding: 0;
|
|
493
|
+
margin: 0;
|
|
494
|
+
}
|
|
495
|
+
.sun-editor-editable .se-component figure {
|
|
496
|
+
padding: 0;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.sun-editor-editable .se-flex-component {
|
|
500
|
+
width: 100%;
|
|
501
|
+
min-width: min-content;
|
|
502
|
+
max-width: 100%;
|
|
503
|
+
margin: 0 0 10px;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.sun-editor-editable .se-inline-component {
|
|
507
|
+
display: inline-block;
|
|
508
|
+
width: auto;
|
|
509
|
+
min-width: min-content;
|
|
510
|
+
max-width: max-content;
|
|
511
|
+
margin: 0;
|
|
512
|
+
padding: 0;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.sun-editor-editable figure.se-scroll-figure-x {
|
|
516
|
+
overflow-x: auto;
|
|
517
|
+
padding: 0 1px;
|
|
518
|
+
}
|
|
519
|
+
.sun-editor-editable figure.se-scroll-figure-y {
|
|
520
|
+
overflow-y: auto;
|
|
521
|
+
padding: 1px 0;
|
|
522
|
+
}
|
|
523
|
+
.sun-editor-editable figure.se-scroll-figure-xy {
|
|
524
|
+
overflow-x: auto;
|
|
525
|
+
overflow-y: auto;
|
|
526
|
+
padding: 1px;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.sun-editor-editable .__se__float-left figure,
|
|
530
|
+
.sun-editor-editable .__se__float-right figure,
|
|
531
|
+
.sun-editor-editable .__se__float-center figure {
|
|
532
|
+
margin: auto !important;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.sun-editor-editable figure figcaption {
|
|
536
|
+
padding: 1em 0.5em;
|
|
537
|
+
margin: 0;
|
|
538
|
+
background-color: var(--se-edit-background-sub);
|
|
539
|
+
outline: none;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.sun-editor-editable figure figcaption p {
|
|
543
|
+
line-height: 2;
|
|
544
|
+
margin: 0;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/* image */
|
|
548
|
+
.sun-editor-editable .se-image-container a img {
|
|
549
|
+
padding: 1px;
|
|
550
|
+
margin: 1px;
|
|
551
|
+
outline: 1px solid var(--se-edit-active);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/** video */
|
|
555
|
+
.sun-editor-editable .se-video-container iframe,
|
|
556
|
+
.sun-editor-editable .se-video-container video {
|
|
557
|
+
outline: 1px solid #9e9e9e;
|
|
558
|
+
position: absolute;
|
|
559
|
+
top: 0;
|
|
560
|
+
left: 0;
|
|
561
|
+
border: 0;
|
|
562
|
+
width: 100%;
|
|
563
|
+
height: 100%;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.sun-editor-editable .se-video-container figure {
|
|
567
|
+
left: 0px;
|
|
568
|
+
width: 100%;
|
|
569
|
+
max-width: 100%;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/** audio */
|
|
573
|
+
.sun-editor-editable audio {
|
|
574
|
+
width: 300px;
|
|
575
|
+
height: 54px;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.sun-editor-editable audio.active {
|
|
579
|
+
outline: 2px solid var(--se-edit-hover);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/** -- Paragraph styles custom -- */
|
|
583
|
+
/* Bordered */
|
|
584
|
+
.sun-editor-editable .__se__p-bordered,
|
|
585
|
+
.sun-editor .__se__p-bordered {
|
|
586
|
+
border-top: solid 1px var(--se-edit-border-dark);
|
|
587
|
+
border-bottom: solid 1px var(--se-edit-border-dark);
|
|
588
|
+
padding: 4px 0;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/* Spaced */
|
|
592
|
+
.sun-editor-editable .__se__p-spaced,
|
|
593
|
+
.sun-editor .__se__p-spaced {
|
|
594
|
+
letter-spacing: 1px;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/* Neon (https://codepen.io/GeorgePark/pen/MrjbEr) */
|
|
598
|
+
.sun-editor-editable .__se__p-neon,
|
|
599
|
+
.sun-editor .__se__p-neon {
|
|
600
|
+
font-weight: 200;
|
|
601
|
+
font-style: italic;
|
|
602
|
+
background: #000;
|
|
603
|
+
color: #fff;
|
|
604
|
+
padding: 6px 4px;
|
|
605
|
+
border: 2px solid #fff;
|
|
606
|
+
border-radius: 6px;
|
|
607
|
+
text-transform: uppercase;
|
|
608
|
+
animation: neonFlicker 1.5s infinite alternate;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
@keyframes neonFlicker {
|
|
612
|
+
0%,
|
|
613
|
+
19%,
|
|
614
|
+
21%,
|
|
615
|
+
23%,
|
|
616
|
+
25%,
|
|
617
|
+
54%,
|
|
618
|
+
56%,
|
|
619
|
+
100% {
|
|
620
|
+
text-shadow: -0.2rem -0.2rem 1rem #fff, 0.2rem 0.2rem 1rem #fff, 0 0 2px #f40, 0 0 4px #f40, 0 0 6px #f40, 0 0 8px #f40, 0 0 10px #f40;
|
|
621
|
+
box-shadow: 0 0 0.5px #fff, inset 0 0 0.5px #fff, 0 0 2px #08f, inset 0 0 2px #08f, 0 0 4px #08f, inset 0 0 4px #08f;
|
|
622
|
+
}
|
|
623
|
+
20%,
|
|
624
|
+
24%,
|
|
625
|
+
55% {
|
|
626
|
+
text-shadow: none;
|
|
627
|
+
box-shadow: none;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/* -- Text styles custom -- */
|
|
632
|
+
/* Shadow */
|
|
633
|
+
.sun-editor-editable .__se__t-shadow,
|
|
634
|
+
.sun-editor .__se__t-shadow {
|
|
635
|
+
text-shadow: -0.2rem -0.2rem 1rem var(--se-edit-background, 0.2rem 0.2rem 1rem --se-edit-background, 0 0 0.2rem #999, 0 0 0.4rem #888, 0 0 0.6rem #777) 0 0 0.8rem var(--se-edit-font-sub, 0 0 1rem #555);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/* Code */
|
|
639
|
+
.sun-editor-editable .__se__t-code,
|
|
640
|
+
.sun-editor .__se__t-code {
|
|
641
|
+
font-family: monospace;
|
|
642
|
+
color: var(--se-edit-font-sub);
|
|
643
|
+
background-color: rgba(27, 31, 35, 0.05);
|
|
644
|
+
border-radius: 6px;
|
|
645
|
+
padding: 0.2em 0.4em;
|
|
646
|
+
}
|