@licium/editor 3.2.3 → 3.2.4
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/LICENSE +21 -0
- package/README.md +16 -13
- package/dist/esm/i18n/ar.js +1 -1
- package/dist/esm/i18n/cs-cz.js +1 -1
- package/dist/esm/i18n/de-de.js +1 -1
- package/dist/esm/i18n/en-us.js +1 -1
- package/dist/esm/i18n/es-es.js +1 -1
- package/dist/esm/i18n/fi-fi.js +1 -1
- package/dist/esm/i18n/fr-fr.js +1 -1
- package/dist/esm/i18n/gl-es.js +1 -1
- package/dist/esm/i18n/hr-hr.js +1 -1
- package/dist/esm/i18n/i18n.js +1 -1
- package/dist/esm/i18n/it-it.js +1 -1
- package/dist/esm/i18n/ja-jp.js +1 -1
- package/dist/esm/i18n/ko-kr.js +1 -1
- package/dist/esm/i18n/nb-no.js +1 -1
- package/dist/esm/i18n/nl-nl.js +1 -1
- package/dist/esm/i18n/pl-pl.js +1 -1
- package/dist/esm/i18n/pt-br.js +1 -1
- package/dist/esm/i18n/ru-ru.js +1 -1
- package/dist/esm/i18n/sv-se.js +1 -1
- package/dist/esm/i18n/tr-tr.js +1 -1
- package/dist/esm/i18n/uk-ua.js +1 -1
- package/dist/esm/i18n/zh-cn.js +1 -1
- package/dist/esm/i18n/zh-tw.js +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/indexViewer.js +1 -1
- package/dist/theme/toastui-editor-dark.css +18 -13
- package/dist/toastui-editor-only.css +1 -1
- package/dist/toastui-editor-viewer.css +1 -1
- package/dist/toastui-editor-viewer.js +7 -3
- package/dist/toastui-editor.css +1 -1
- package/dist/toastui-editor.js +7 -3
- package/package.json +4 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 NHN Cloud Corp.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
> This is a fork of the [Toast UI Editor](https://github.com/natorus87/tui.editor) maintained by `@licium`.
|
|
2
|
+
> Original repository: https://github.com/natorus87/tui.editor
|
|
3
|
+
|
|
1
4
|
# 
|
|
2
5
|
|
|
3
|
-
[](https://www.npmjs.com/package/@licium/editor)
|
|
4
7
|
|
|
5
8
|
## 🚩 Table of Contents
|
|
6
9
|
|
|
@@ -27,13 +30,13 @@ const editor = new Editor(options);
|
|
|
27
30
|
|
|
28
31
|
## 📙 Documents
|
|
29
32
|
|
|
30
|
-
- [Getting Started](https://github.com/
|
|
33
|
+
- [Getting Started](https://github.com/natorus87/tui.editor/blob/master/docs/en/getting-started.md)
|
|
31
34
|
- [APIs](https://nhn.github.io/tui.editor/latest/)
|
|
32
35
|
- v3.0 Migration Guide
|
|
33
|
-
- [English](https://github.com/
|
|
34
|
-
- [한국어](https://github.com/
|
|
36
|
+
- [English](https://github.com/natorus87/tui.editor/blob/master/docs/v3.0-migration-guide.md)
|
|
37
|
+
- [한국어](https://github.com/natorus87/tui.editor/blob/master/docs/v3.0-migration-guide-ko.md)
|
|
35
38
|
|
|
36
|
-
You can also see the older versions of API page on the [releases page](https://github.com/
|
|
39
|
+
You can also see the older versions of API page on the [releases page](https://github.com/natorus87/tui.editor/releases).
|
|
37
40
|
|
|
38
41
|
## 💾 Install
|
|
39
42
|
|
|
@@ -46,8 +49,8 @@ TOAST UI products are registered in two package managers, [npm](https://www.npmj
|
|
|
46
49
|
#### npm
|
|
47
50
|
|
|
48
51
|
```sh
|
|
49
|
-
$ npm install --save @
|
|
50
|
-
$ npm install --save @
|
|
52
|
+
$ npm install --save @licium/editor # Latest Version
|
|
53
|
+
$ npm install --save @licium/editor@<version> # Specific Version
|
|
51
54
|
```
|
|
52
55
|
|
|
53
56
|
### Via Contents Delivery Network (CDN)
|
|
@@ -111,13 +114,13 @@ The editor can be used by creating an instance with the constructor function. To
|
|
|
111
114
|
- ES6 Modules
|
|
112
115
|
|
|
113
116
|
```javascript
|
|
114
|
-
import Editor from '@
|
|
117
|
+
import Editor from '@licium/editor';
|
|
115
118
|
```
|
|
116
119
|
|
|
117
120
|
- CommonJS
|
|
118
121
|
|
|
119
122
|
```javascript
|
|
120
|
-
const Editor = require('@
|
|
123
|
+
const Editor = require('@licium/editor');
|
|
121
124
|
```
|
|
122
125
|
|
|
123
126
|
### Using Namespace in Browser Environment
|
|
@@ -131,7 +134,7 @@ Then, you need to add the CSS files needed for the Editor. Import CSS files in n
|
|
|
131
134
|
### Using in Node Environment
|
|
132
135
|
|
|
133
136
|
```javascript
|
|
134
|
-
import '@
|
|
137
|
+
import '@licium/editor/dist/toastui-editor.css'; // Editor's Style
|
|
135
138
|
```
|
|
136
139
|
|
|
137
140
|
### Using in Browser Environment by CDN
|
|
@@ -171,6 +174,6 @@ Find out more options [here](https://nhn.github.io/tui.editor/latest/ToastUIEdit
|
|
|
171
174
|
|
|
172
175
|
## 🦄 Tutorials
|
|
173
176
|
|
|
174
|
-
- [Viewer](https://github.com/
|
|
175
|
-
- [Plugins](https://github.com/
|
|
176
|
-
- [Internationalization (i18n)](https://github.com/
|
|
177
|
+
- [Viewer](https://github.com/natorus87/tui.editor/blob/master/docs/en/viewer.md)
|
|
178
|
+
- [Plugins](https://github.com/natorus87/tui.editor/blob/master/docs/en/plugin.md)
|
|
179
|
+
- [Internationalization (i18n)](https://github.com/natorus87/tui.editor/blob/master/docs/en/i18n.md)
|
package/dist/esm/i18n/ar.js
CHANGED
package/dist/esm/i18n/cs-cz.js
CHANGED
package/dist/esm/i18n/de-de.js
CHANGED
package/dist/esm/i18n/en-us.js
CHANGED
package/dist/esm/i18n/es-es.js
CHANGED
package/dist/esm/i18n/fi-fi.js
CHANGED
package/dist/esm/i18n/fr-fr.js
CHANGED
package/dist/esm/i18n/gl-es.js
CHANGED
package/dist/esm/i18n/hr-hr.js
CHANGED
package/dist/esm/i18n/i18n.js
CHANGED
package/dist/esm/i18n/it-it.js
CHANGED
package/dist/esm/i18n/ja-jp.js
CHANGED
package/dist/esm/i18n/ko-kr.js
CHANGED
package/dist/esm/i18n/nb-no.js
CHANGED
package/dist/esm/i18n/nl-nl.js
CHANGED
package/dist/esm/i18n/pl-pl.js
CHANGED
package/dist/esm/i18n/pt-br.js
CHANGED
package/dist/esm/i18n/ru-ru.js
CHANGED
package/dist/esm/i18n/sv-se.js
CHANGED
package/dist/esm/i18n/tr-tr.js
CHANGED
package/dist/esm/i18n/uk-ua.js
CHANGED
package/dist/esm/i18n/zh-cn.js
CHANGED
package/dist/esm/i18n/zh-tw.js
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @licium/editor
|
|
3
|
-
* @version 3.2.3 |
|
|
3
|
+
* @version 3.2.3 | Sat Jan 03 2026
|
|
4
4
|
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -2416,8 +2416,7 @@ function previewHighlight({ toastMark, eventEmitter }) {
|
|
|
2416
2416
|
});
|
|
2417
2417
|
let offset = 0;
|
|
2418
2418
|
if (mdNode.sourcepos) {
|
|
2419
|
-
const nodeStartLine = mdNode.sourcepos
|
|
2420
|
-
const nodeStartCh = mdNode.sourcepos[0][1];
|
|
2419
|
+
const [[nodeStartLine, nodeStartCh]] = mdNode.sourcepos;
|
|
2421
2420
|
if (line === nodeStartLine) {
|
|
2422
2421
|
offset = ch - nodeStartCh + 1;
|
|
2423
2422
|
}
|
|
@@ -19985,6 +19984,7 @@ const nodeTypeWriters = {
|
|
|
19985
19984
|
state.write(' \n');
|
|
19986
19985
|
},
|
|
19987
19986
|
// @ts-ignore
|
|
19987
|
+
// eslint-disable-next-line camelcase
|
|
19988
19988
|
hard_break(state) {
|
|
19989
19989
|
state.write(' \n');
|
|
19990
19990
|
},
|
package/dist/esm/indexViewer.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@charset "utf-8";
|
|
2
|
+
|
|
2
3
|
.toastui-editor-dark.toastui-editor-defaultUI {
|
|
3
4
|
border-color: #494c56;
|
|
4
5
|
color: #eee;
|
|
@@ -10,22 +11,22 @@
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.toastui-editor-dark .toastui-editor-defaultUI-toolbar {
|
|
13
|
-
background-color: #232428;
|
|
14
|
+
background-color: var(--toastui-editor-toolbar-bg, #232428);
|
|
14
15
|
border-bottom-color: #303238;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
.toastui-editor-dark .toastui-editor-toolbar-icons {
|
|
18
19
|
background-position-y: -49px;
|
|
19
|
-
border-color:
|
|
20
|
+
border-color: transparent;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.toastui-editor-dark .toastui-editor-toolbar-icons:not(:disabled):hover {
|
|
23
|
-
background-color:
|
|
24
|
-
border-color:
|
|
24
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
25
|
+
border-color: transparent;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.toastui-editor-dark .toastui-editor-toolbar-divider {
|
|
28
|
-
background-color:
|
|
29
|
+
background-color: transparent;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
.toastui-editor-dark .toastui-editor-tooltip {
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
background-color: #2b4455;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
.toastui-editor-dark .toastui-editor-defaultUI-toolbar input:checked
|
|
52
|
+
.toastui-editor-dark .toastui-editor-defaultUI-toolbar input:checked+.switch {
|
|
52
53
|
background-color: #2b4455;
|
|
53
54
|
}
|
|
54
55
|
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
background-color: #8f939f;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
.toastui-editor-dark .toastui-editor-defaultUI-toolbar input:checked
|
|
60
|
+
.toastui-editor-dark .toastui-editor-defaultUI-toolbar input:checked+.switch::before {
|
|
60
61
|
background-color: #67ccff;
|
|
61
62
|
}
|
|
62
63
|
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
|
|
84
85
|
.toastui-editor-dark .toastui-editor-popup,
|
|
85
86
|
.toastui-editor-dark .toastui-editor-context-menu {
|
|
86
|
-
background-color: #121212;
|
|
87
|
+
background-color: var(--toastui-editor-toolbar-bg, #121212);
|
|
87
88
|
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
|
|
88
89
|
border-color: #494c56;
|
|
89
90
|
}
|
|
@@ -216,8 +217,8 @@
|
|
|
216
217
|
}
|
|
217
218
|
|
|
218
219
|
.toastui-editor-dark .toastui-editor-dropdown-toolbar {
|
|
219
|
-
border-color:
|
|
220
|
-
background-color: #232428;
|
|
220
|
+
border-color: transparent;
|
|
221
|
+
background-color: var(--toastui-editor-toolbar-bg, #232428);
|
|
221
222
|
}
|
|
222
223
|
|
|
223
224
|
.toastui-editor-dark .ProseMirror,
|
|
@@ -351,7 +352,7 @@
|
|
|
351
352
|
color: #55575f;
|
|
352
353
|
}
|
|
353
354
|
|
|
354
|
-
.toastui-editor-dark .toastui-editor-contents ul
|
|
355
|
+
.toastui-editor-dark .toastui-editor-contents ul>li::before {
|
|
355
356
|
background-color: #55575f;
|
|
356
357
|
}
|
|
357
358
|
|
|
@@ -469,6 +470,10 @@
|
|
|
469
470
|
background-color: rgba(255, 250, 193, 0.25);
|
|
470
471
|
}
|
|
471
472
|
|
|
472
|
-
|
|
473
|
-
|
|
473
|
+
/* FIX: Replace broken "More" button icon (sprite bleeding) with clean SVG */
|
|
474
|
+
.toastui-editor-dark .toastui-editor-toolbar-icons.more {
|
|
475
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23eee'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E") !important;
|
|
476
|
+
background-repeat: no-repeat !important;
|
|
477
|
+
background-position: center center !important;
|
|
478
|
+
background-size: 24px 24px !important;
|
|
474
479
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @licium/editor
|
|
3
|
-
* @version 3.2.3 |
|
|
3
|
+
* @version 3.2.3 | Sat Jan 03 2026
|
|
4
4
|
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -2834,7 +2834,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2834
2834
|
});
|
|
2835
2835
|
|
|
2836
2836
|
;// CONCATENATED MODULE: ../../libs/toastmark/dist/esm/index.js
|
|
2837
|
-
|
|
2837
|
+
/******************************************************************************
|
|
2838
2838
|
Copyright (c) Microsoft Corporation.
|
|
2839
2839
|
|
|
2840
2840
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -2848,7 +2848,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
2848
2848
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2849
2849
|
PERFORMANCE OF THIS SOFTWARE.
|
|
2850
2850
|
***************************************************************************** */
|
|
2851
|
-
/* global Reflect, Promise */
|
|
2851
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
2852
2852
|
var extendStatics = function (d, b) {
|
|
2853
2853
|
extendStatics = Object.setPrototypeOf ||
|
|
2854
2854
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2887,6 +2887,10 @@ function __spreadArray(to, from, pack) {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2889
2889
|
}
|
|
2890
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
2891
|
+
var e = new Error(message);
|
|
2892
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
2893
|
+
};
|
|
2890
2894
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : typeof self !== 'undefined' ? self : {};
|
|
2891
2895
|
var encodeCache = {};
|
|
2892
2896
|
// Create a lookup array where anything but characters in `chars` string
|
package/dist/toastui-editor.css
CHANGED
package/dist/toastui-editor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @licium/editor
|
|
3
|
-
* @version 3.2.3 |
|
|
3
|
+
* @version 3.2.3 | Sat Jan 03 2026
|
|
4
4
|
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -6695,7 +6695,7 @@ var off_default = /*#__PURE__*/__webpack_require__.n(off);
|
|
|
6695
6695
|
var on = __webpack_require__(348);
|
|
6696
6696
|
var on_default = /*#__PURE__*/__webpack_require__.n(on);
|
|
6697
6697
|
;// CONCATENATED MODULE: ../../libs/toastmark/dist/esm/index.js
|
|
6698
|
-
|
|
6698
|
+
/******************************************************************************
|
|
6699
6699
|
Copyright (c) Microsoft Corporation.
|
|
6700
6700
|
|
|
6701
6701
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -6709,7 +6709,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
6709
6709
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
6710
6710
|
PERFORMANCE OF THIS SOFTWARE.
|
|
6711
6711
|
***************************************************************************** */
|
|
6712
|
-
/* global Reflect, Promise */
|
|
6712
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
6713
6713
|
var extendStatics = function (d, b) {
|
|
6714
6714
|
extendStatics = Object.setPrototypeOf ||
|
|
6715
6715
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6748,6 +6748,10 @@ function __spreadArray(to, from, pack) {
|
|
|
6748
6748
|
}
|
|
6749
6749
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
6750
6750
|
}
|
|
6751
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
6752
|
+
var e = new Error(message);
|
|
6753
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
6754
|
+
};
|
|
6751
6755
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : typeof self !== 'undefined' ? self : {};
|
|
6752
6756
|
var encodeCache = {};
|
|
6753
6757
|
// Create a lookup array where anything but characters in `chars` string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licium/editor",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.4",
|
|
4
4
|
"description": "GFM Markdown Wysiwyg Editor - Productive and Extensible",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nhn",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"license": "MIT",
|
|
53
53
|
"repository": {
|
|
54
54
|
"type": "git",
|
|
55
|
-
"url": "https://github.com/
|
|
55
|
+
"url": "https://github.com/natorus87/tui.editor.git",
|
|
56
56
|
"directory": "apps/editor"
|
|
57
57
|
},
|
|
58
58
|
"bugs": {
|
|
59
|
-
"url": "https://github.com/
|
|
59
|
+
"url": "https://github.com/natorus87/tui.editor/issues"
|
|
60
60
|
},
|
|
61
61
|
"homepage": "https://ui.toast.com",
|
|
62
62
|
"browserslist": "last 2 versions, not ie <= 10",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"prosemirror-state": "^1.3.4",
|
|
92
92
|
"prosemirror-view": "^1.18.7"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "b58c109f6aa92d5d14dae00fbfcf13d9699903e6"
|
|
95
95
|
}
|