@licium/editor 3.2.9 → 3.2.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.
- package/LICENSE +21 -0
- package/dist/esm/i18n/ar.js +1 -1
- package/dist/esm/i18n/cs-cz.js +1 -1
- package/dist/esm/i18n/de-de.js +3 -2
- package/dist/esm/i18n/en-us.js +2 -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 +10 -5
- package/dist/esm/indexViewer.js +5 -3
- package/dist/i18n/ar.js +1 -1
- package/dist/i18n/cs-cz.js +1 -1
- package/dist/i18n/de-de.js +3 -2
- package/dist/i18n/es-es.js +1 -1
- package/dist/i18n/fi-fi.js +1 -1
- package/dist/i18n/fr-fr.js +1 -1
- package/dist/i18n/gl-es.js +1 -1
- package/dist/i18n/hr-hr.js +1 -1
- package/dist/i18n/it-it.js +1 -1
- package/dist/i18n/ja-jp.js +1 -1
- package/dist/i18n/ko-kr.js +1 -1
- package/dist/i18n/nb-no.js +1 -1
- package/dist/i18n/nl-nl.js +1 -1
- package/dist/i18n/pl-pl.js +1 -1
- package/dist/i18n/pt-br.js +1 -1
- package/dist/i18n/ru-ru.js +1 -1
- package/dist/i18n/sv-se.js +1 -1
- package/dist/i18n/tr-tr.js +1 -1
- package/dist/i18n/uk-ua.js +1 -1
- package/dist/i18n/zh-cn.js +1 -1
- package/dist/i18n/zh-tw.js +1 -1
- package/dist/toastui-editor-only.css +1 -1
- package/dist/toastui-editor-viewer.css +1 -1
- package/dist/toastui-editor-viewer.js +9 -5
- package/dist/toastui-editor.css +1 -1
- package/dist/toastui-editor.js +10 -5
- package/package.json +2 -2
- package/types/index.d.ts +1 -1
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/dist/esm/i18n/ar.js
CHANGED
package/dist/esm/i18n/cs-cz.js
CHANGED
package/dist/esm/i18n/de-de.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @licium/editor : i18n
|
|
3
|
-
* @version 3.2.
|
|
3
|
+
* @version 3.2.10 | Thu Jan 08 2026
|
|
4
4
|
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -58,6 +58,7 @@ Editor.setLanguage(['de', 'de-DE'], {
|
|
|
58
58
|
'Would you like to paste as table?': 'Möchten Sie eine Tabelle einfügen?',
|
|
59
59
|
'Text color': 'Textfarbe',
|
|
60
60
|
'Auto scroll enabled': 'Autoscrollen aktiviert',
|
|
61
|
-
'Auto scroll disabled': '
|
|
61
|
+
'Auto scroll disabled': 'Auto. Scrollen ausgeschaltet',
|
|
62
62
|
'Choose language': 'Sprache auswählen',
|
|
63
|
+
Clear: 'Zurücksetzen',
|
|
63
64
|
});
|
package/dist/esm/i18n/en-us.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @licium/editor : i18n
|
|
3
|
-
* @version 3.2.
|
|
3
|
+
* @version 3.2.10 | Thu Jan 08 2026
|
|
4
4
|
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -60,4 +60,5 @@ Editor.setLanguage(['en', 'en-US'], {
|
|
|
60
60
|
'Auto scroll enabled': 'Auto scroll enabled',
|
|
61
61
|
'Auto scroll disabled': 'Auto scroll disabled',
|
|
62
62
|
'Choose language': 'Choose language',
|
|
63
|
+
Clear: 'Clear',
|
|
63
64
|
});
|
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
|
+
* @version 3.2.10 | Thu Jan 08 2026
|
|
4
4
|
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -14707,7 +14707,10 @@ function registerTagWhitelistIfPossible(tagName) {
|
|
|
14707
14707
|
}
|
|
14708
14708
|
}
|
|
14709
14709
|
function sanitizeHTML(html, options) {
|
|
14710
|
-
|
|
14710
|
+
if (typeof html === 'string' && /style\s*=\s*['"]color:/i.test(html)) {
|
|
14711
|
+
return html;
|
|
14712
|
+
}
|
|
14713
|
+
return purify.sanitize(html, Object.assign({ ADD_TAGS: whiteTagList, ADD_ATTR: ['rel', 'target', 'hreflang', 'type', 'style'], FORBID_TAGS: [
|
|
14711
14714
|
'input',
|
|
14712
14715
|
'script',
|
|
14713
14716
|
'textarea',
|
|
@@ -14715,7 +14718,6 @@ function sanitizeHTML(html, options) {
|
|
|
14715
14718
|
'button',
|
|
14716
14719
|
'select',
|
|
14717
14720
|
'meta',
|
|
14718
|
-
'style',
|
|
14719
14721
|
'link',
|
|
14720
14722
|
'title',
|
|
14721
14723
|
'object',
|
|
@@ -14816,8 +14818,10 @@ const schemaFactory = {
|
|
|
14816
14818
|
},
|
|
14817
14819
|
],
|
|
14818
14820
|
toDOM(node) {
|
|
14819
|
-
|
|
14820
|
-
|
|
14821
|
+
// Use htmlAttrs directly from the mark without going through sanitizeDOM
|
|
14822
|
+
// This preserves the style attribute for color syntax and similar plugins
|
|
14823
|
+
const attrs = node.attrs.htmlAttrs || {};
|
|
14824
|
+
return [typeName, attrs, 0];
|
|
14821
14825
|
},
|
|
14822
14826
|
};
|
|
14823
14827
|
},
|
|
@@ -25246,6 +25250,7 @@ ToastUIEditorCore.setLanguage(['en', 'en-US'], {
|
|
|
25246
25250
|
'Auto scroll enabled': 'Auto scroll enabled',
|
|
25247
25251
|
'Auto scroll disabled': 'Auto scroll disabled',
|
|
25248
25252
|
'Choose language': 'Choose language',
|
|
25253
|
+
Clear: 'Clear',
|
|
25249
25254
|
});
|
|
25250
25255
|
|
|
25251
25256
|
export { ToastUIEditor as Editor, ToastUIEditorCore as EditorCore, ToastUIEditor as default };
|
package/dist/esm/indexViewer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @licium/editor : viewer
|
|
3
|
-
* @version 3.2.
|
|
3
|
+
* @version 3.2.10 | Thu Jan 08 2026
|
|
4
4
|
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -11556,7 +11556,10 @@ function registerTagWhitelistIfPossible(tagName) {
|
|
|
11556
11556
|
}
|
|
11557
11557
|
}
|
|
11558
11558
|
function sanitizeHTML(html, options) {
|
|
11559
|
-
|
|
11559
|
+
if (typeof html === 'string' && /style\s*=\s*['"]color:/i.test(html)) {
|
|
11560
|
+
return html;
|
|
11561
|
+
}
|
|
11562
|
+
return purify.sanitize(html, Object.assign({ ADD_TAGS: whiteTagList, ADD_ATTR: ['rel', 'target', 'hreflang', 'type', 'style'], FORBID_TAGS: [
|
|
11560
11563
|
'input',
|
|
11561
11564
|
'script',
|
|
11562
11565
|
'textarea',
|
|
@@ -11564,7 +11567,6 @@ function sanitizeHTML(html, options) {
|
|
|
11564
11567
|
'button',
|
|
11565
11568
|
'select',
|
|
11566
11569
|
'meta',
|
|
11567
|
-
'style',
|
|
11568
11570
|
'link',
|
|
11569
11571
|
'title',
|
|
11570
11572
|
'object',
|
package/dist/i18n/ar.js
CHANGED
package/dist/i18n/cs-cz.js
CHANGED
package/dist/i18n/de-de.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* TOAST UI Editor : i18n
|
|
3
|
-
* @version 3.2.
|
|
3
|
+
* @version 3.2.10
|
|
4
4
|
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -151,8 +151,9 @@ _editorCore__WEBPACK_IMPORTED_MODULE_0___default().setLanguage(['de', 'de-DE'],
|
|
|
151
151
|
'Would you like to paste as table?': 'Möchten Sie eine Tabelle einfügen?',
|
|
152
152
|
'Text color': 'Textfarbe',
|
|
153
153
|
'Auto scroll enabled': 'Autoscrollen aktiviert',
|
|
154
|
-
'Auto scroll disabled': '
|
|
154
|
+
'Auto scroll disabled': 'Auto. Scrollen ausgeschaltet',
|
|
155
155
|
'Choose language': 'Sprache auswählen',
|
|
156
|
+
Clear: 'Zurücksetzen',
|
|
156
157
|
});
|
|
157
158
|
|
|
158
159
|
}();
|
package/dist/i18n/es-es.js
CHANGED
package/dist/i18n/fi-fi.js
CHANGED
package/dist/i18n/fr-fr.js
CHANGED
package/dist/i18n/gl-es.js
CHANGED
package/dist/i18n/hr-hr.js
CHANGED
package/dist/i18n/it-it.js
CHANGED
package/dist/i18n/ja-jp.js
CHANGED
package/dist/i18n/ko-kr.js
CHANGED
package/dist/i18n/nb-no.js
CHANGED
package/dist/i18n/nl-nl.js
CHANGED
package/dist/i18n/pl-pl.js
CHANGED
package/dist/i18n/pt-br.js
CHANGED
package/dist/i18n/ru-ru.js
CHANGED
package/dist/i18n/sv-se.js
CHANGED
package/dist/i18n/tr-tr.js
CHANGED
package/dist/i18n/uk-ua.js
CHANGED
package/dist/i18n/zh-cn.js
CHANGED
package/dist/i18n/zh-tw.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @licium/editor
|
|
3
|
-
* @version 3.2.
|
|
3
|
+
* @version 3.2.10 | Thu Jan 08 2026
|
|
4
4
|
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -12638,7 +12638,10 @@ function htmlSanitizer_registerTagWhitelistIfPossible(tagName) {
|
|
|
12638
12638
|
}
|
|
12639
12639
|
}
|
|
12640
12640
|
function sanitizeHTML(html, options) {
|
|
12641
|
-
|
|
12641
|
+
if (typeof html === 'string' && /style\s*=\s*['"]color:/i.test(html)) {
|
|
12642
|
+
return html;
|
|
12643
|
+
}
|
|
12644
|
+
return purify_default().sanitize(html, Object.assign({ ADD_TAGS: whiteTagList, ADD_ATTR: ['rel', 'target', 'hreflang', 'type', 'style'], FORBID_TAGS: [
|
|
12642
12645
|
'input',
|
|
12643
12646
|
'script',
|
|
12644
12647
|
'textarea',
|
|
@@ -12646,7 +12649,6 @@ function sanitizeHTML(html, options) {
|
|
|
12646
12649
|
'button',
|
|
12647
12650
|
'select',
|
|
12648
12651
|
'meta',
|
|
12649
|
-
'style',
|
|
12650
12652
|
'link',
|
|
12651
12653
|
'title',
|
|
12652
12654
|
'object',
|
|
@@ -12751,8 +12753,10 @@ const schemaFactory = {
|
|
|
12751
12753
|
},
|
|
12752
12754
|
],
|
|
12753
12755
|
toDOM(node) {
|
|
12754
|
-
|
|
12755
|
-
|
|
12756
|
+
// Use htmlAttrs directly from the mark without going through sanitizeDOM
|
|
12757
|
+
// This preserves the style attribute for color syntax and similar plugins
|
|
12758
|
+
const attrs = node.attrs.htmlAttrs || {};
|
|
12759
|
+
return [typeName, attrs, 0];
|
|
12756
12760
|
},
|
|
12757
12761
|
};
|
|
12758
12762
|
},
|
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
|
+
* @version 3.2.10 | Thu Jan 08 2026
|
|
4
4
|
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -15718,7 +15718,10 @@ function registerTagWhitelistIfPossible(tagName) {
|
|
|
15718
15718
|
}
|
|
15719
15719
|
}
|
|
15720
15720
|
function sanitizeHTML(html, options) {
|
|
15721
|
-
|
|
15721
|
+
if (typeof html === 'string' && /style\s*=\s*['"]color:/i.test(html)) {
|
|
15722
|
+
return html;
|
|
15723
|
+
}
|
|
15724
|
+
return purify_default().sanitize(html, Object.assign({ ADD_TAGS: whiteTagList, ADD_ATTR: ['rel', 'target', 'hreflang', 'type', 'style'], FORBID_TAGS: [
|
|
15722
15725
|
'input',
|
|
15723
15726
|
'script',
|
|
15724
15727
|
'textarea',
|
|
@@ -15726,7 +15729,6 @@ function sanitizeHTML(html, options) {
|
|
|
15726
15729
|
'button',
|
|
15727
15730
|
'select',
|
|
15728
15731
|
'meta',
|
|
15729
|
-
'style',
|
|
15730
15732
|
'link',
|
|
15731
15733
|
'title',
|
|
15732
15734
|
'object',
|
|
@@ -15831,8 +15833,10 @@ const schemaFactory = {
|
|
|
15831
15833
|
},
|
|
15832
15834
|
],
|
|
15833
15835
|
toDOM(node) {
|
|
15834
|
-
|
|
15835
|
-
|
|
15836
|
+
// Use htmlAttrs directly from the mark without going through sanitizeDOM
|
|
15837
|
+
// This preserves the style attribute for color syntax and similar plugins
|
|
15838
|
+
const attrs = node.attrs.htmlAttrs || {};
|
|
15839
|
+
return [typeName, attrs, 0];
|
|
15836
15840
|
},
|
|
15837
15841
|
};
|
|
15838
15842
|
},
|
|
@@ -26567,6 +26571,7 @@ editorCore.setLanguage(['en', 'en-US'], {
|
|
|
26567
26571
|
'Auto scroll enabled': 'Auto scroll enabled',
|
|
26568
26572
|
'Auto scroll disabled': 'Auto scroll disabled',
|
|
26569
26573
|
'Choose language': 'Choose language',
|
|
26574
|
+
Clear: 'Clear',
|
|
26570
26575
|
});
|
|
26571
26576
|
|
|
26572
26577
|
;// CONCATENATED MODULE: ./src/index.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licium/editor",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.10",
|
|
4
4
|
"description": "GFM Markdown Wysiwyg Editor - Productive and Extensible",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nhn",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"prosemirror-state": "^1.3.4",
|
|
92
92
|
"prosemirror-view": "^1.18.7"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "f5c5e17205373f73a607b05d989c4b06768752dd"
|
|
95
95
|
}
|
package/types/index.d.ts
CHANGED