@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
package/dist/i18n/ar.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.0.2
3
+ * @version 3.1.2
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -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
  */
@@ -37,13 +37,6 @@
37
37
  clear: both;
38
38
  }
39
39
 
40
- .toastui-editor-md-container {
41
- position: absolute;
42
- line-height: 1;
43
- color: #222;
44
- width: 100%;
45
- height: inherit;
46
- }
47
40
 
48
41
  .toastui-editor-main {
49
42
  min-height: 0px;
@@ -115,6 +108,8 @@
115
108
  height: 100%;
116
109
  width: 1px;
117
110
  background-color: #ebedf2;
111
+ position: absolute;
112
+ left: 50%;
118
113
  }
119
114
 
120
115
  .toastui-editor-main .toastui-editor-md-vertical-style .toastui-editor-md-splitter {
@@ -124,14 +119,25 @@
124
119
  .toastui-editor-ww-container {
125
120
  display: none;
126
121
  overflow: hidden;
127
- z-index: 10;
128
122
  height: inherit;
129
123
  background-color: #fff;
130
124
  }
131
125
 
126
+ .auto-height .toastui-editor-main-container {
127
+ position: relative;
128
+ }
129
+
130
+ .toastui-editor-main-container {
131
+ position: absolute;
132
+ line-height: 1;
133
+ color: #222;
134
+ width: 100%;
135
+ height: inherit;
136
+ }
137
+
132
138
  .toastui-editor-ww-container > .toastui-editor {
133
139
  height: inherit;
134
- position: absolute;
140
+ position: relative;
135
141
  width: 100%;
136
142
  }
137
143
 
@@ -150,7 +156,7 @@
150
156
  .toastui-editor-md-mode .toastui-editor-md-container,
151
157
  .toastui-editor-ww-mode .toastui-editor-ww-container {
152
158
  display: block;
153
- z-index: 100;
159
+ z-index: 20;
154
160
  }
155
161
 
156
162
  .toastui-editor-md-mode .toastui-editor-md-vertical-style {
@@ -404,7 +410,7 @@
404
410
  .toastui-editor-dropdown-toolbar {
405
411
  position: absolute;
406
412
  height: 46px;
407
- z-index: 101;
413
+ z-index: 30;
408
414
  border-radius: 2px;
409
415
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
410
416
  border: 1px solid #dadde6;
@@ -424,7 +430,7 @@
424
430
  width: 400px;
425
431
  margin-right: auto;
426
432
  background: #fff;
427
- z-index: 9999;
433
+ z-index: 30;
428
434
  position: absolute;
429
435
  border-radius: 2px;
430
436
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
@@ -584,7 +590,7 @@
584
590
  left: 0;
585
591
  border: 1px solid #00a9ff;
586
592
  background: rgba(0, 169, 255, 0.1);
587
- z-index: 999;
593
+ z-index: 30;
588
594
  }
589
595
 
590
596
  .toastui-editor-popup-add-table .toastui-editor-table-description {
@@ -660,7 +666,7 @@
660
666
  border-radius: 2px;
661
667
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
662
668
  border: 1px solid #dadde6;
663
- z-index: 100;
669
+ z-index: 30;
664
670
  padding: 5px 0;
665
671
  background-color: #fff;
666
672
  }
@@ -754,7 +760,7 @@
754
760
  .toastui-editor-tooltip {
755
761
  position: absolute;
756
762
  background-color: #444;
757
- z-index: 999;
763
+ z-index: 40;
758
764
  padding: 4px 7px;
759
765
  font-size: 12px;
760
766
  border-radius: 3px;
@@ -1,9 +1,16 @@
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
  */
7
+ /*
8
+ z-index basis
9
+ -1: pseudo element
10
+ 20 - preview, wysiwyg
11
+ 30 - wysiwyg code block language editor, popup, context menu
12
+ 40 - tooltip
13
+ */
7
14
  .ProseMirror {
8
15
  font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', 'Arial', '나눔바른고딕',
9
16
  'Nanum Barun Gothic', '맑은고딕', 'Malgun Gothic', sans-serif;
@@ -42,6 +49,7 @@ table.ProseMirror-selectednode {
42
49
  font-size: 13px;
43
50
  font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', 'Arial', '나눔바른고딕',
44
51
  'Nanum Barun Gothic', '맑은고딕', 'Malgun Gothic', sans-serif;
52
+ z-index: 20;
45
53
  }
46
54
 
47
55
  .toastui-editor-contents *:not(table) {
@@ -430,7 +438,7 @@ table.ProseMirror-selectednode {
430
438
  border: 1px solid #ccc;
431
439
  border-radius: 2px;
432
440
  background-color: #fff;
433
- z-index: 100;
441
+ z-index: 30;
434
442
  }
435
443
 
436
444
  .toastui-editor-ww-code-block-language input {