suneditor 2.46.2 → 3.0.0-alpha.10

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