{"_id":"@drenso-toast-ui/vue-editor","_rev":"5-03ae20973222cb3a85ac23f255b6ead2","name":"@drenso-toast-ui/vue-editor","dist-tags":{"latest":"3.4.1"},"versions":{"3.3.0":{"name":"@drenso-toast-ui/vue-editor","version":"3.3.0","author":{"name":"NHN Cloud FE Development Lab","email":"dl_javascript@nhn.com"},"license":"MIT","_id":"@drenso-toast-ui/vue-editor@3.3.0","maintainers":[{"name":"bobvandevijver","email":"bobvandevijver@hotmail.com"}],"homepage":"https://ui.toast.com","bugs":{"url":"https://github.com/nhn/tui.editor/issues"},"dist":{"shasum":"f12b1f98fca408f4a254402e6e57a5b0e750a00c","tarball":"https://registry.npmjs.org/@drenso-toast-ui/vue-editor/-/vue-editor-3.3.0.tgz","fileCount":3,"integrity":"sha512-jmxuQyzvlQYwLwfNkB8ifKCfZrJl4N3xZoIGFc6Tx7UQnzF00ei1wnpFYlj/NkRIBJ8s48cEydRXfzGOWvOYUg==","signatures":[{"sig":"MEUCIQDhp6PxXaBBGyQQ1vnKiGnyqXRcVyaPu1k3E1FF/WI4AgIgKZZ6Yor77KN2ZBGrdF4t3uGLU6ZXRmJPlTYGz3kCc4M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9548},"main":"dist/toastui-vue-editor.js","module":"dist/esm/index.js","gitHead":"d8f6c9fc9e8cb36db8c18db2c23e5e1b883ab1c9","scripts":{"lint":"eslint .","build":"webpack build && rollup -c","serve":"snowpack dev"},"_npmUser":{"name":"bobvandevijver","email":"bobvandevijver@hotmail.com"},"repository":{"url":"git+https://github.com/nhn/tui.editor.git","type":"git","directory":"apps/vue-editor"},"_npmVersion":"11.8.0","description":"TOAST UI Editor for Vue","directories":{},"_nodeVersion":"24.13.1","dependencies":{"@drenso-toast-ui/editor":"^3.3.0"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.5.0","vue-loader":"^15.9.8","vue-template-compiler":"^2.6.12","@morgul/snowpack-plugin-vue2":"^0.4.0"},"peerDependencies":{"vue":"^2.5.0"},"_npmOperationalInternal":{"tmp":"tmp/vue-editor_3.3.0_1773324690933_0.25107609888990456","host":"s3://npm-registry-packages-npm-production"}},"3.3.1":{"name":"@drenso-toast-ui/vue-editor","version":"3.3.1","author":{"name":"NHN Cloud FE Development Lab","email":"dl_javascript@nhn.com"},"license":"MIT","_id":"@drenso-toast-ui/vue-editor@3.3.1","maintainers":[{"name":"bobvandevijver","email":"bobvandevijver@hotmail.com"}],"homepage":"https://ui.toast.com","bugs":{"url":"https://github.com/Drenso/tui.editor/issues"},"dist":{"shasum":"d46c0382953f26e157005aa7d9164f318285c808","tarball":"https://registry.npmjs.org/@drenso-toast-ui/vue-editor/-/vue-editor-3.3.1.tgz","fileCount":6,"integrity":"sha512-9hDOSFHeMsbc/OobJrxR95NRRtWeXz+WeeMDeGtR880292bRdLAerI2NBAoGxv0tQM8guTxFE6/aZ3b5SAP5WQ==","signatures":[{"sig":"MEUCIFl+idQNKPC3aFpNZKBaVP/RKWDR92s6xtesiuurRm8tAiEA+FK67nVQjrLd6IacB/Qu1VFuJ4Rp67Tmqs4+HGg9OEw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drenso-toast-ui%2fvue-editor@3.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23677},"main":"dist/toastui-vue-editor.js","module":"dist/esm/index.js","gitHead":"c5dec7088d2971671474b4346d3c98a9d1579ef3","scripts":{"lint":"eslint .","build":"webpack build && rollup -c","serve":"snowpack dev"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:dac83060-eb51-4e53-867a-11d15ce7cf86"}},"repository":{"url":"git+https://github.com/Drenso/tui.editor.git","type":"git","directory":"apps/vue-editor"},"_npmVersion":"11.9.0","description":"TOAST UI Editor for Vue","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@drenso-toast-ui/editor":"^3.3.1"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.5.0","vue-loader":"^15.9.8","vue-template-compiler":"^2.6.12","@morgul/snowpack-plugin-vue2":"^0.4.0"},"peerDependencies":{"vue":"^2.5.0"},"_npmOperationalInternal":{"tmp":"tmp/vue-editor_3.3.1_1773325682157_0.5871107018881998","host":"s3://npm-registry-packages-npm-production"}},"3.4.0":{"name":"@drenso-toast-ui/vue-editor","version":"3.4.0","author":{"name":"NHN Cloud FE Development Lab","email":"dl_javascript@nhn.com"},"license":"MIT","_id":"@drenso-toast-ui/vue-editor@3.4.0","maintainers":[{"name":"bobvandevijver","email":"bobvandevijver@hotmail.com"}],"homepage":"https://ui.toast.com","bugs":{"url":"https://github.com/Drenso/tui.editor/issues"},"dist":{"shasum":"cf59152b1b3d72051236144386175aecdb34a717","tarball":"https://registry.npmjs.org/@drenso-toast-ui/vue-editor/-/vue-editor-3.4.0.tgz","fileCount":6,"integrity":"sha512-2CZqwrhyFpiPbUC4+MSDJJrdti4cIaHcn7/cwXFYk8N745/2untkqLcGV/fp9ahmDwFaYdXB9e4+kuguJEKu2g==","signatures":[{"sig":"MEUCIA9T/GgefTjMMKPlh01fmHNkKfa5Lh1IozPADqHGZh29AiEAppeED5h5U8RJY1cOq1pJYBs6jKcPKJUzjO4CzO9WCMg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drenso-toast-ui%2fvue-editor@3.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23754},"main":"dist/toastui-vue-editor.js","module":"dist/esm/index.js","gitHead":"25bb10753cc47624e3dd1f452e69db0bc417a277","scripts":{"lint":"eslint .","build":"webpack build && rollup -c","serve":"webpack serve"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:dac83060-eb51-4e53-867a-11d15ce7cf86"}},"repository":{"url":"git+https://github.com/Drenso/tui.editor.git","type":"git","directory":"apps/vue-editor"},"_npmVersion":"11.9.0","description":"TOAST UI Editor for Vue","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@drenso-toast-ui/editor":"^3.4.0"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.5.0","vue-loader":"^15.9.8","vue-template-compiler":"^2.6.12"},"peerDependencies":{"vue":"^2.5.0"},"_npmOperationalInternal":{"tmp":"tmp/vue-editor_3.4.0_1773333347666_0.13148565014533808","host":"s3://npm-registry-packages-npm-production"}},"3.4.1":{"name":"@drenso-toast-ui/vue-editor","version":"3.4.1","author":{"name":"NHN Cloud FE Development Lab","email":"dl_javascript@nhn.com"},"license":"MIT","_id":"@drenso-toast-ui/vue-editor@3.4.1","maintainers":[{"name":"bobvandevijver","email":"bobvandevijver@hotmail.com"}],"homepage":"https://ui.toast.com","bugs":{"url":"https://github.com/Drenso/tui.editor/issues"},"dist":{"shasum":"b6c5710e493242f2caab40c4bb4074334de3de57","tarball":"https://registry.npmjs.org/@drenso-toast-ui/vue-editor/-/vue-editor-3.4.1.tgz","fileCount":6,"integrity":"sha512-sczCLZQpxMY9p5Zqu1pbEea+00nlqji6DuGhl+z9ep/E7PfXrduUOO/u/uC0sOQnD01mOu9F6Ar8Ow11WaDXcA==","signatures":[{"sig":"MEYCIQDib16yA/57fvYB3vdBjuVRobwTaTulSBS9VFHpx4kdFgIhALyun7sFV/KhQBQm8WRS/yJAv9OkmZ2qQ1kEi6KMwGsq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drenso-toast-ui%2fvue-editor@3.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23754},"main":"dist/toastui-vue-editor.js","module":"dist/esm/index.js","gitHead":"5236ae0607fb1dac28c0a47bc25c60af1f25730f","scripts":{"lint":"eslint .","build":"webpack build && rollup -c","serve":"webpack serve"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:dac83060-eb51-4e53-867a-11d15ce7cf86"}},"repository":{"url":"git+https://github.com/Drenso/tui.editor.git","type":"git","directory":"apps/vue-editor"},"_npmVersion":"11.9.0","description":"TOAST UI Editor for Vue","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@drenso-toast-ui/editor":"^3.4.1"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.5.0","vue-loader":"^15.9.8","vue-template-compiler":"^2.6.12"},"peerDependencies":{"vue":"^2.5.0"},"_npmOperationalInternal":{"tmp":"tmp/vue-editor_3.4.1_1773337751132_0.35170168793139833","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-03-12T14:11:30.848Z","modified":"2026-03-13T04:07:01.255Z","3.3.0":"2026-03-12T14:11:31.093Z","3.3.1":"2026-03-12T14:28:02.300Z","3.4.0":"2026-03-12T16:35:47.809Z","3.4.1":"2026-03-12T17:49:11.361Z"},"bugs":{"url":"https://github.com/Drenso/tui.editor/issues"},"author":{"name":"NHN Cloud FE Development Lab","email":"dl_javascript@nhn.com"},"license":"MIT","homepage":"https://ui.toast.com","repository":{"url":"git+https://github.com/Drenso/tui.editor.git","type":"git","directory":"apps/vue-editor"},"description":"TOAST UI Editor for Vue","maintainers":[{"email":"bobvandevijver@hotmail.com","name":"bobvandevijver"},{"email":"tobias93@live.nl","name":"tobiasfeijten"}],"readme":"# TOAST UI Editor for Vue\n\n> This is [Vue](https://vuejs.org/) component wrapping [TOAST UI Editor](https://github.com/Drenso/tui.editor/tree/master/apps/editor).\n\n[![npm version](https://img.shields.io/npm/v/@drenso-toast-ui/vue-editor.svg)](https://www.npmjs.com/package/@drenso-toast-ui/vue-editor)\n\n## 🚩 Table of Contents\n\n- [Collect Statistics on the Use of Open Source](#collect-statistics-on-the-use-of-open-source)\n- [Install](#-install)\n- [Editor Usage](#-editor-usage)\n- [Viewer Usage](#-viewer-usage)\n\n## Collect Statistics on the Use of Open Source\n\nVue Wrapper of TOAST UI Editor applies Google Analytics (GA) to collect statistics on the use of open source, in order to identify how widely TOAST UI Editor is used throughout the world. It also serves as important index to determine the future course of projects. location.hostname (e.g. ui.toast.com) is to be collected and the sole purpose is nothing but to measure statistics on the usage. To disable GA, use the following `usageStatistics` options when declare Vue Wrapper component.\n\n```js\nconst options = {\n  ...\n  usageStatistics: false\n}\n```\n\n## 💾 Install\n\n### Using npm\n\n```sh\nnpm install --save @drenso-toast-ui/vue-editor\n```\n\n## 📝 Editor Usage\n\n### Import\n\nYou 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 `@drenso-toast-ui/editor` in the script.\n\n- ES Modules\n\n```js\nimport '@drenso-toast-ui/editor/dist/toastui-editor.css';\n\nimport { Editor } from '@drenso-toast-ui/vue-editor';\n```\n\n- CommonJS\n\n```js\nrequire('@drenso-toast-ui/editor/dist/toastui-editor.css');\n\nconst { Editor } = require('@drenso-toast-ui/vue-editor');\n```\n\n### Creating Component\n\nFirst implement `<editor/>` in the template.\n\n```html\n<template>\n  <editor />\n</template>\n```\n\nAnd then add `Editor` to the `components` in your component or Vue instance like this:\n\n```js\nimport '@drenso-toast-ui/editor/dist/toastui-editor.css';\n\nimport { Editor } from '@drenso-toast-ui/vue-editor';\n\nexport default {\n  components: {\n    editor: Editor\n  }\n};\n```\n\nor\n\n```js\nimport '@drenso-toast-ui/editor/dist/toastui-editor.css';\n\nimport { Editor } from '@drenso-toast-ui/vue-editor';\n\nnew Vue({\n  el: '#app',\n  components: {\n    editor: Editor\n  }\n});\n```\n\n### Props\n\n| Name            | Type   | Default                    | Description                                               |\n| --------------- | ------ | -------------------------- | --------------------------------------------------------- |\n| initialValue    | String | ''                         | Editor's initial value       .                             |\n| initialEditType | String | 'markdown'                 | Initial editor type (markdown, wysiwyg).                   |\n| options         | Object | following `defaultOptions` | Options of tui.editor. This is for initailize tui.editor. |\n| height          | String | '300px'                    | This prop can control the height of the editor.           |\n| previewStyle          | String | 'vertical'           | Markdown editor's preview style (tab, vertical).           |\n\n```js\nconst defaultOptions = {\n  minHeight: '200px',\n  language: 'en-US',\n  useCommandShortcut: true,\n  usageStatistics: true,\n  hideModeSwitch: false,\n  toolbarItems: [\n    ['heading', 'bold', 'italic', 'strike'],\n    ['hr', 'quote'],\n    ['ul', 'ol', 'task', 'indent', 'outdent'],\n    ['table', 'image', 'link'],\n    ['code', 'codeblock'],\n    ['scrollSync'],\n  ]\n};\n```\n\n```html\n<template>\n  <editor\n    :initialValue=\"editorText\"\n    :options=\"editorOptions\"\n    height=\"500px\"\n    initialEditType=\"wysiwyg\"\n    previewStyle=\"vertical\"\n  />\n</template>\n<script>\n  import '@drenso-toast-ui/editor/dist/toastui-editor.css';\n\n  import { Editor } from '@drenso-toast-ui/vue-editor';\n\n  export default {\n    components: {\n      editor: Editor\n    },\n    data() {\n      return {\n        editorText: 'This is initialValue.',\n        editorOptions: {\n          hideModeSwitch: true\n        }\n      };\n    }\n  };\n</script>\n```\n\n### Instance Methods\n\nIf you want to more manipulate the Editor, you can use `invoke` method to call the method of toastui.editor. For more information of method, see [instance methods of TOAST UI Editor](https://nhn.github.io/tui.editor/latest/ToastUIEditor#addHook).\n\nFirst, you need to assign `ref` attribute of `<editor/>` and then you can use `invoke` method through `this.$refs` like this:\n\n```html\n<template>\n  <editor ref=\"toastuiEditor\" />\n</template>\n<script>\n  import '@drenso-toast-ui/editor/dist/toastui-editor.css';\n\n  import { Editor } from '@drenso-toast-ui/vue-editor';\n\n  export default {\n    components: {\n      editor: Editor\n    },\n    methods: {\n      scroll() {\n        this.$refs.toastuiEditor.invoke('setScrollTop', 10);\n      },\n      moveTop() {\n        this.$refs.toastuiEditor.invoke('moveCursorToStart');\n      },\n      getHTML() {\n        let html = this.$refs.toastuiEditor.invoke('getHTML');\n      }\n    }\n  };\n</script>\n```\n\n### Events\n\n- load : It would be emitted when editor fully load\n- change : It would be emitted when content changed\n- caretChange : It would be emitted when format change by cursor position\n- focus : It would be emitted when editor get focus\n- blur : It would be emitted when editor loose focus\n\n```html\n<template>\n  <editor\n    @load=\"onEditorLoad\"\n    @focus=\"onEditorFocus\"\n    @blur=\"onEditorBlur\"\n    @change=\"onEditorChange\"\n    @caretChange=\"onEditorCaretChange\"\n  />\n</template>\n<script>\n  import { Editor } from '@drenso-toast-ui/vue-editor';\n\n  export default {\n    components: {\n      editor: Editor\n    },\n    methods: {\n      onEditorLoad() {\n        // implement your code\n      },\n      onEditorFocus() {\n        // implement your code\n      },\n      onEditorBlur() {\n        // implement your code\n      },\n      onEditorChange() {\n        // implement your code\n      },\n      onEditorCaretChange() {\n        // implement your code\n      }\n    }\n  };\n</script>\n```\n\n## 📃 Viewer Usage\n\n### Import\n\n- ES Modules\n\n```js\nimport '@drenso-toast-ui/editor/dist/toastui-editor-viewer.css';\n\nimport { Viewer } from '@drenso-toast-ui/vue-editor';\n```\n\n- CommonJS\n\n```js\nrequire('@drenso-toast-ui/editor/dist/toastui-editor-viewer.css');\n\nconst { Viewer } = require('@drenso-toast-ui/vue-editor');\n```\n\n### Creating Component\n\nFirst implement `<viewer />` in the template.\n\n```html\n<template>\n  <viewer />\n</template>\n```\n\nAnd then add `Viewer` to the `components` in your component or Vue instance like this:\n\n```js\nimport '@drenso-toast-ui/editor/dist/toastui-editor-viewer.css';\n\nimport { Viewer } from '@drenso-toast-ui/vue-editor';\n\nexport default {\n  components: {\n    viewer: Viewer\n  }\n};\n```\n\nor\n\n```js\nimport '@drenso-toast-ui/editor/dist/toastui-editor-viewer.css';\n\nimport { Viewer } from '@drenso-toast-ui/vue-editor';\n\nnew Vue({\n  el: '#app',\n  components: {\n    viewer: Viewer\n  }\n});\n```\n\n### Props\n\n| Name         | Type   | Default | Description                                     |\n| ------------ | ------ | ------- | ----------------------------------------------- |\n| initialValue | String | ''      | Viewer's initial value                          |\n| height       | String | '300px' | This prop can control the height of the viewer. |\n| options      | Object | above `defaultOptions` | Options of tui.editor. This is for initailize tui.editor. |\n\n```html\n<template>\n  <viewer :initialValue=\"viewerText\" height=\"500px\" />\n</template>\n<script>\n  import '@drenso-toast-ui/editor/dist/toastui-editor-viewer.css';\n\n  import { Viewer } from '@drenso-toast-ui/vue-editor';\n\n  export default {\n    components: {\n      viewer: Viewer\n    },\n    data() {\n      return {\n        viewerText: '# This is Viewer.\\n Hello World.'\n      };\n    }\n  };\n</script>\n```\n","readmeFilename":"README.md"}