Write the Code. Change the World.

11月 11

markdown 写技术博客的必须品。这里记录下 vue 中使用 tui-editor 的过程

代码: https://github.com/nhn/tui.editor

preview: https://ui.toast.com/tui-editor

操作一波

npm install tui-editor

安装好后,先定义一个组件,我们在组件里组织 markdown 编辑器相关的逻辑。

那么就在 src/components/ 下吧。

src/components/MarkdownEditor/index.vue
继续阅读