@toast-ui/editor 3.0.2 → 3.1.2

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 (57) hide show
  1. package/README.md +4 -4
  2. package/dist/esm/i18n/ar.js +7 -0
  3. package/dist/esm/i18n/cs-cz.js +7 -0
  4. package/dist/esm/i18n/de-de.js +7 -0
  5. package/dist/esm/i18n/en-us.js +7 -0
  6. package/dist/esm/i18n/es-es.js +7 -0
  7. package/dist/esm/i18n/fi-fi.js +7 -0
  8. package/dist/esm/i18n/fr-fr.js +7 -0
  9. package/dist/esm/i18n/gl-es.js +7 -0
  10. package/dist/esm/i18n/hr-hr.js +7 -0
  11. package/dist/esm/i18n/i18n.js +15 -4
  12. package/dist/esm/i18n/it-it.js +7 -0
  13. package/dist/esm/i18n/ja-jp.js +7 -0
  14. package/dist/esm/i18n/ko-kr.js +7 -0
  15. package/dist/esm/i18n/nb-no.js +7 -0
  16. package/dist/esm/i18n/nl-nl.js +7 -0
  17. package/dist/esm/i18n/pl-pl.js +7 -0
  18. package/dist/esm/i18n/pt-br.js +7 -0
  19. package/dist/esm/i18n/ru-ru.js +7 -0
  20. package/dist/esm/i18n/sv-se.js +7 -0
  21. package/dist/esm/i18n/tr-tr.js +7 -0
  22. package/dist/esm/i18n/uk-ua.js +7 -0
  23. package/dist/esm/i18n/zh-cn.js +7 -0
  24. package/dist/esm/i18n/zh-tw.js +7 -0
  25. package/dist/esm/index.js +2885 -426
  26. package/dist/esm/indexViewer.js +1672 -297
  27. package/dist/i18n/ar.js +1 -1
  28. package/dist/i18n/cs-cz.js +1 -1
  29. package/dist/i18n/de-de.js +1 -1
  30. package/dist/i18n/es-es.js +1 -1
  31. package/dist/i18n/fi-fi.js +1 -1
  32. package/dist/i18n/fr-fr.js +1 -1
  33. package/dist/i18n/gl-es.js +1 -1
  34. package/dist/i18n/hr-hr.js +1 -1
  35. package/dist/i18n/it-it.js +1 -1
  36. package/dist/i18n/ja-jp.js +1 -1
  37. package/dist/i18n/ko-kr.js +1 -1
  38. package/dist/i18n/nb-no.js +1 -1
  39. package/dist/i18n/nl-nl.js +1 -1
  40. package/dist/i18n/pl-pl.js +1 -1
  41. package/dist/i18n/pt-br.js +1 -1
  42. package/dist/i18n/ru-ru.js +1 -1
  43. package/dist/i18n/sv-se.js +1 -1
  44. package/dist/i18n/tr-tr.js +1 -1
  45. package/dist/i18n/uk-ua.js +1 -1
  46. package/dist/i18n/zh-cn.js +1 -1
  47. package/dist/i18n/zh-tw.js +1 -1
  48. package/dist/toastui-editor-only.css +22 -16
  49. package/dist/toastui-editor-viewer.css +10 -2
  50. package/dist/toastui-editor-viewer.js +1823 -370
  51. package/dist/toastui-editor.css +31 -17
  52. package/dist/toastui-editor.js +2853 -318
  53. package/package.json +5 -1
  54. package/types/editor.d.ts +6 -4
  55. package/types/event.d.ts +1 -0
  56. package/types/index.d.ts +4 -3
  57. package/types/toastui-editor-viewer.d.ts +39 -0
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @toast-ui/editor
3
- * @version 3.0.2 | Wed Aug 04 2021
3
+ * @version 3.1.2 | Mon Dec 27 2021
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -81,13 +81,6 @@ li.ProseMirror-selectednode:after {
81
81
  clear: both;
82
82
  }
83
83
 
84
- .toastui-editor-md-container {
85
- position: absolute;
86
- line-height: 1;
87
- color: #222;
88
- width: 100%;
89
- height: inherit;
90
- }
91
84
 
92
85
  .toastui-editor-main {
93
86
  min-height: 0px;
@@ -159,6 +152,8 @@ li.ProseMirror-selectednode:after {
159
152
  height: 100%;
160
153
  width: 1px;
161
154
  background-color: #ebedf2;
155
+ position: absolute;
156
+ left: 50%;
162
157
  }
163
158
 
164
159
  .toastui-editor-main .toastui-editor-md-vertical-style .toastui-editor-md-splitter {
@@ -168,14 +163,25 @@ li.ProseMirror-selectednode:after {
168
163
  .toastui-editor-ww-container {
169
164
  display: none;
170
165
  overflow: hidden;
171
- z-index: 10;
172
166
  height: inherit;
173
167
  background-color: #fff;
174
168
  }
175
169
 
170
+ .auto-height .toastui-editor-main-container {
171
+ position: relative;
172
+ }
173
+
174
+ .toastui-editor-main-container {
175
+ position: absolute;
176
+ line-height: 1;
177
+ color: #222;
178
+ width: 100%;
179
+ height: inherit;
180
+ }
181
+
176
182
  .toastui-editor-ww-container > .toastui-editor {
177
183
  height: inherit;
178
- position: absolute;
184
+ position: relative;
179
185
  width: 100%;
180
186
  }
181
187
 
@@ -194,7 +200,7 @@ li.ProseMirror-selectednode:after {
194
200
  .toastui-editor-md-mode .toastui-editor-md-container,
195
201
  .toastui-editor-ww-mode .toastui-editor-ww-container {
196
202
  display: block;
197
- z-index: 100;
203
+ z-index: 20;
198
204
  }
199
205
 
200
206
  .toastui-editor-md-mode .toastui-editor-md-vertical-style {
@@ -448,7 +454,7 @@ li.ProseMirror-selectednode:after {
448
454
  .toastui-editor-dropdown-toolbar {
449
455
  position: absolute;
450
456
  height: 46px;
451
- z-index: 101;
457
+ z-index: 30;
452
458
  border-radius: 2px;
453
459
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
454
460
  border: 1px solid #dadde6;
@@ -468,7 +474,7 @@ li.ProseMirror-selectednode:after {
468
474
  width: 400px;
469
475
  margin-right: auto;
470
476
  background: #fff;
471
- z-index: 9999;
477
+ z-index: 30;
472
478
  position: absolute;
473
479
  border-radius: 2px;
474
480
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
@@ -628,7 +634,7 @@ li.ProseMirror-selectednode:after {
628
634
  left: 0;
629
635
  border: 1px solid #00a9ff;
630
636
  background: rgba(0, 169, 255, 0.1);
631
- z-index: 999;
637
+ z-index: 30;
632
638
  }
633
639
 
634
640
  .toastui-editor-popup-add-table .toastui-editor-table-description {
@@ -704,7 +710,7 @@ li.ProseMirror-selectednode:after {
704
710
  border-radius: 2px;
705
711
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
706
712
  border: 1px solid #dadde6;
707
- z-index: 100;
713
+ z-index: 30;
708
714
  padding: 5px 0;
709
715
  background-color: #fff;
710
716
  }
@@ -798,7 +804,7 @@ li.ProseMirror-selectednode:after {
798
804
  .toastui-editor-tooltip {
799
805
  position: absolute;
800
806
  background-color: #444;
801
- z-index: 999;
807
+ z-index: 40;
802
808
  padding: 4px 7px;
803
809
  font-size: 12px;
804
810
  border-radius: 3px;
@@ -932,6 +938,13 @@ li.ProseMirror-selectednode:after {
932
938
  max-width: none;
933
939
  }
934
940
  }
941
+ /*
942
+ z-index basis
943
+ -1: pseudo element
944
+ 20 - preview, wysiwyg
945
+ 30 - wysiwyg code block language editor, popup, context menu
946
+ 40 - tooltip
947
+ */
935
948
  .ProseMirror {
936
949
  font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', 'Arial', '나눔바른고딕',
937
950
  'Nanum Barun Gothic', '맑은고딕', 'Malgun Gothic', sans-serif;
@@ -970,6 +983,7 @@ table.ProseMirror-selectednode {
970
983
  font-size: 13px;
971
984
  font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', 'Arial', '나눔바른고딕',
972
985
  'Nanum Barun Gothic', '맑은고딕', 'Malgun Gothic', sans-serif;
986
+ z-index: 20;
973
987
  }
974
988
 
975
989
  .toastui-editor-contents *:not(table) {
@@ -1358,7 +1372,7 @@ table.ProseMirror-selectednode {
1358
1372
  border: 1px solid #ccc;
1359
1373
  border-radius: 2px;
1360
1374
  background-color: #fff;
1361
- z-index: 100;
1375
+ z-index: 30;
1362
1376
  }
1363
1377
 
1364
1378
  .toastui-editor-ww-code-block-language input {