@licium/vue-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 +30 -27
- package/dist/esm/index.js +8 -4
- package/dist/toastui-vue-editor.js +1 -1
- package/dist/toastui-vue-editor.js.LICENSE.txt +3 -1
- package/package.json +5 -5
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,8 +1,11 @@
|
|
|
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
|
# TOAST UI Editor for Vue
|
|
2
5
|
|
|
3
|
-
> This is [Vue](https://vuejs.org/) component wrapping [TOAST UI Editor](https://github.com/
|
|
6
|
+
> This is [Vue](https://vuejs.org/) component wrapping [TOAST UI Editor](https://github.com/natorus87/tui.editor/tree/master/apps/editor).
|
|
4
7
|
|
|
5
|
-
[](https://www.npmjs.com/package/@licium/vue-editor)
|
|
6
9
|
|
|
7
10
|
## 🚩 Table of Contents
|
|
8
11
|
|
|
@@ -27,29 +30,29 @@ const options = {
|
|
|
27
30
|
### Using npm
|
|
28
31
|
|
|
29
32
|
```sh
|
|
30
|
-
npm install --save @
|
|
33
|
+
npm install --save @licium/vue-editor
|
|
31
34
|
```
|
|
32
35
|
|
|
33
36
|
## 📝 Editor Usage
|
|
34
37
|
|
|
35
38
|
### Import
|
|
36
39
|
|
|
37
|
-
You can use Toast UI Editor for Vue as a ECMAScript module or a CommonJS module. As this module does not contain CSS files, you should import `toastui-editor.css` from `@
|
|
40
|
+
You can use Toast UI Editor for Vue as a ECMAScript module or a CommonJS module. As this module does not contain CSS files, you should import `toastui-editor.css` from `@licium/editor` in the script.
|
|
38
41
|
|
|
39
42
|
- ES Modules
|
|
40
43
|
|
|
41
44
|
```js
|
|
42
|
-
import '@
|
|
45
|
+
import '@licium/editor/dist/toastui-editor.css';
|
|
43
46
|
|
|
44
|
-
import { Editor } from '@
|
|
47
|
+
import { Editor } from '@licium/vue-editor';
|
|
45
48
|
```
|
|
46
49
|
|
|
47
50
|
- CommonJS
|
|
48
51
|
|
|
49
52
|
```js
|
|
50
|
-
require('@
|
|
53
|
+
require('@licium/editor/dist/toastui-editor.css');
|
|
51
54
|
|
|
52
|
-
const { Editor } = require('@
|
|
55
|
+
const { Editor } = require('@licium/vue-editor');
|
|
53
56
|
```
|
|
54
57
|
|
|
55
58
|
### Creating Component
|
|
@@ -65,9 +68,9 @@ First implement `<editor/>` in the template.
|
|
|
65
68
|
And then add `Editor` to the `components` in your component or Vue instance like this:
|
|
66
69
|
|
|
67
70
|
```js
|
|
68
|
-
import '@
|
|
71
|
+
import '@licium/editor/dist/toastui-editor.css';
|
|
69
72
|
|
|
70
|
-
import { Editor } from '@
|
|
73
|
+
import { Editor } from '@licium/vue-editor';
|
|
71
74
|
|
|
72
75
|
export default {
|
|
73
76
|
components: {
|
|
@@ -79,9 +82,9 @@ export default {
|
|
|
79
82
|
or
|
|
80
83
|
|
|
81
84
|
```js
|
|
82
|
-
import '@
|
|
85
|
+
import '@licium/editor/dist/toastui-editor.css';
|
|
83
86
|
|
|
84
|
-
import { Editor } from '@
|
|
87
|
+
import { Editor } from '@licium/vue-editor';
|
|
85
88
|
|
|
86
89
|
new Vue({
|
|
87
90
|
el: '#app',
|
|
@@ -130,9 +133,9 @@ const defaultOptions = {
|
|
|
130
133
|
/>
|
|
131
134
|
</template>
|
|
132
135
|
<script>
|
|
133
|
-
import '@
|
|
136
|
+
import '@licium/editor/dist/toastui-editor.css';
|
|
134
137
|
|
|
135
|
-
import { Editor } from '@
|
|
138
|
+
import { Editor } from '@licium/vue-editor';
|
|
136
139
|
|
|
137
140
|
export default {
|
|
138
141
|
components: {
|
|
@@ -161,9 +164,9 @@ First, you need to assign `ref` attribute of `<editor/>` and then you can use `i
|
|
|
161
164
|
<editor ref="toastuiEditor" />
|
|
162
165
|
</template>
|
|
163
166
|
<script>
|
|
164
|
-
import '@
|
|
167
|
+
import '@licium/editor/dist/toastui-editor.css';
|
|
165
168
|
|
|
166
|
-
import { Editor } from '@
|
|
169
|
+
import { Editor } from '@licium/vue-editor';
|
|
167
170
|
|
|
168
171
|
export default {
|
|
169
172
|
components: {
|
|
@@ -203,7 +206,7 @@ First, you need to assign `ref` attribute of `<editor/>` and then you can use `i
|
|
|
203
206
|
/>
|
|
204
207
|
</template>
|
|
205
208
|
<script>
|
|
206
|
-
import { Editor } from '@
|
|
209
|
+
import { Editor } from '@licium/vue-editor';
|
|
207
210
|
|
|
208
211
|
export default {
|
|
209
212
|
components: {
|
|
@@ -237,17 +240,17 @@ First, you need to assign `ref` attribute of `<editor/>` and then you can use `i
|
|
|
237
240
|
- ES Modules
|
|
238
241
|
|
|
239
242
|
```js
|
|
240
|
-
import '@
|
|
243
|
+
import '@licium/editor/dist/toastui-editor-viewer.css';
|
|
241
244
|
|
|
242
|
-
import { Viewer } from '@
|
|
245
|
+
import { Viewer } from '@licium/vue-editor';
|
|
243
246
|
```
|
|
244
247
|
|
|
245
248
|
- CommonJS
|
|
246
249
|
|
|
247
250
|
```js
|
|
248
|
-
require('@
|
|
251
|
+
require('@licium/editor/dist/toastui-editor-viewer.css');
|
|
249
252
|
|
|
250
|
-
const { Viewer } = require('@
|
|
253
|
+
const { Viewer } = require('@licium/vue-editor');
|
|
251
254
|
```
|
|
252
255
|
|
|
253
256
|
### Creating Component
|
|
@@ -263,9 +266,9 @@ First implement `<viewer />` in the template.
|
|
|
263
266
|
And then add `Viewer` to the `components` in your component or Vue instance like this:
|
|
264
267
|
|
|
265
268
|
```js
|
|
266
|
-
import '@
|
|
269
|
+
import '@licium/editor/dist/toastui-editor-viewer.css';
|
|
267
270
|
|
|
268
|
-
import { Viewer } from '@
|
|
271
|
+
import { Viewer } from '@licium/vue-editor';
|
|
269
272
|
|
|
270
273
|
export default {
|
|
271
274
|
components: {
|
|
@@ -277,9 +280,9 @@ export default {
|
|
|
277
280
|
or
|
|
278
281
|
|
|
279
282
|
```js
|
|
280
|
-
import '@
|
|
283
|
+
import '@licium/editor/dist/toastui-editor-viewer.css';
|
|
281
284
|
|
|
282
|
-
import { Viewer } from '@
|
|
285
|
+
import { Viewer } from '@licium/vue-editor';
|
|
283
286
|
|
|
284
287
|
new Vue({
|
|
285
288
|
el: '#app',
|
|
@@ -302,9 +305,9 @@ new Vue({
|
|
|
302
305
|
<viewer :initialValue="viewerText" height="500px" />
|
|
303
306
|
</template>
|
|
304
307
|
<script>
|
|
305
|
-
import '@
|
|
308
|
+
import '@licium/editor/dist/toastui-editor-viewer.css';
|
|
306
309
|
|
|
307
|
-
import { Viewer } from '@
|
|
310
|
+
import { Viewer } from '@licium/vue-editor';
|
|
308
311
|
|
|
309
312
|
export default {
|
|
310
313
|
components: {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TOAST UI Editor : Vue Wrapper
|
|
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
|
*/
|
|
7
7
|
|
|
8
|
-
import Editor from '@
|
|
9
|
-
import Viewer from '@
|
|
8
|
+
import Editor from '@licium/editor';
|
|
9
|
+
import Viewer from '@licium/editor/dist/toastui-editor-viewer';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
13
13
|
|
|
14
14
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -45,6 +45,10 @@ function __spreadArray(to, from, pack) {
|
|
|
45
45
|
}
|
|
46
46
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
47
47
|
}
|
|
48
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
49
|
+
var e = new Error(message);
|
|
50
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
51
|
+
};
|
|
48
52
|
|
|
49
53
|
var editorEvents = [
|
|
50
54
|
'load',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see toastui-vue-editor.js.LICENSE.txt */
|
|
2
|
-
!function(){"use strict";var t={n:function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,{a:i}),i},d:function(e,i){for(var r in i)t.o(i,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:i[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{Editor:function(){return p},Viewer:function(){return g}});var i=function(){var t=this.$createElement;return(this._self._c||t)("div",{ref:"toastuiEditor"})};i._withStripped=!0;var r=function(){return r=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},r.apply(this,arguments)};function n(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))}Object.create,Object.create;var o=require("@
|
|
2
|
+
!function(){"use strict";var t={n:function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,{a:i}),i},d:function(e,i){for(var r in i)t.o(i,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:i[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{Editor:function(){return p},Viewer:function(){return g}});var i=function(){var t=this.$createElement;return(this._self._c||t)("div",{ref:"toastuiEditor"})};i._withStripped=!0;var r=function(){return r=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},r.apply(this,arguments)};function n(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var o=require("@licium/editor"),s=t.n(o),a=["load","change","caretChange","focus","blur","keydown","keyup","beforePreviewRender","beforeConvertWysiwygToMarkdown"],u={initialEditType:"markdown",initialValue:"",height:"300px",previewStyle:"vertical"},l={data:function(){var t=this,e={};a.forEach((function(i){e[i]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.$emit.apply(t,n([i],e))}}));var i=r(r({},this.options),{initialEditType:this.initialEditType,initialValue:this.initialValue,height:this.height,previewStyle:this.previewStyle,events:e});return Object.keys(u).forEach((function(t){i[t]||(i[t]=u[t])})),{editor:null,computedOptions:i}},methods:{invoke:function(t){for(var e,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var n=null;return this.editor[t]&&(n=(e=this.editor)[t].apply(e,i)),n}},destroyed:function(){var t=this;a.forEach((function(e){t.editor.off(e)})),this.editor.destroy()}};function c(t,e,i,r,n,o,s,a){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=i,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=u):n&&(u=a?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:l}}var d=c({name:"ToastuiEditor",mixins:[l],props:{previewStyle:{type:String},height:{type:String},initialEditType:{type:String},initialValue:{type:String},options:{type:Object}},watch:{previewStyle:function(t){this.editor.changePreviewStyle(t)},height:function(t){this.editor.height(t)}},mounted:function(){var t=r(r({},this.computedOptions),{el:this.$refs.toastuiEditor});this.editor=new(s())(t)},methods:{getRootElement:function(){return this.$refs.toastuiEditor}}},i,[],!1,null,null,null);d.options.__file="src/Editor.vue";var p=d.exports,f=function(){var t=this.$createElement;return(this._self._c||t)("div",{ref:"toastuiEditorViewer"})};f._withStripped=!0;var h=require("@licium/editor/dist/toastui-editor-viewer"),v=t.n(h),y=c({name:"ToastuiEditorViewer",mixins:[l],props:{height:{type:String},initialValue:{type:String},options:{type:Object}},mounted:function(){var t=r(r({},this.computedOptions),{el:this.$refs.toastuiEditorViewer});this.editor=new(v())(t)},methods:{getRootElement:function(){return this.$refs.toastuiEditorViewer}}},f,[],!1,null,null,null);y.options.__file="src/Viewer.vue";var g=y.exports;module.exports=e}();
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* TOAST UI Editor : Vue Wrapper
|
|
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
|
*/
|
|
7
|
+
|
|
8
|
+
// CONCATENATED MODULE: external {"commonjs":"@licium/editor/dist/toastui-editor-viewer","commonjs2":"@licium/editor/dist/toastui-editor-viewer"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licium/vue-editor",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.4",
|
|
4
4
|
"description": "TOAST UI Editor for Vue",
|
|
5
5
|
"main": "dist/toastui-vue-editor.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://ui.toast.com",
|
|
17
17
|
"bugs": {
|
|
18
|
-
"url": "https://github.com/
|
|
18
|
+
"url": "https://github.com/natorus87/tui.editor/issues"
|
|
19
19
|
},
|
|
20
20
|
"author": "NHN Cloud FE Development Lab <dl_javascript@nhn.com>",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "https://github.com/
|
|
23
|
+
"url": "https://github.com/natorus87/tui.editor.git",
|
|
24
24
|
"directory": "apps/vue-editor"
|
|
25
25
|
},
|
|
26
26
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"vue": "^2.5.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@licium/editor": "^3.2.
|
|
37
|
+
"@licium/editor": "^3.2.4"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "b58c109f6aa92d5d14dae00fbfcf13d9699903e6"
|
|
40
40
|
}
|