PanJiaChen / vue-element-admin

:tada: A magical vue admin https://panjiachen.github.io/vue-element-admin
MIT License
87.17k stars 30.4k forks source link

关于npm i失败 #4106

Open lyhxx opened 1 year ago

lyhxx commented 1 year ago

实测有效!!! 1.克隆以后 删除package.json中tui-editor:1.3.3

2.\src\components\MarkdownEditor\index.vue文件,将全部import换成下面几个 import 'codemirror/lib/codemirror.css' // codemirror import '@toast-ui/editor/dist/toastui-editor.css'

import Editor from '@toast-ui/editor' import defaultOptions from './default-options'

并将该文件下的 所有 editor.getValue 替换成 editor.getMarkdown 所有 editor.setValue 替换成 editor.setMarkdown 所有 editor.getHtml 替换成 editor.getHTML 所有 editor.remove() 替换成 editor.destroy()

3、default-options.js的toolbarItems替换 toolbarItems: [ ['heading', 'bold', 'italic', 'strike'], ['hr', 'quote'], ['ul', 'ol', 'task', 'indent', 'outdent'], ['table', 'image', 'link'], ['code', 'codeblock'] ]

4、src/views/components-demo/markdown.vue 的 toolbarItems 替换为[['heading','bold','italic']]

npm install --save @toast-ui/vue-editor

npm i

npm run dev

AskSpringBreeze commented 1 year ago

感谢

zhihuifanqiechaodan commented 1 year ago

effective,thanks!

cheenotan commented 1 year ago

实测有效

1Seven-a commented 1 year ago

感谢!

Dream552b commented 1 year ago

感谢 实测有效

LSL1618 commented 1 year ago

非常感谢,实测有效!建议将当前issues置顶

Diana20010519 commented 1 year ago

感谢~

gsq47 commented 1 year ago

感谢!

dangsensen commented 1 year ago

感谢大佬,亲测有效。建议将当前issues置顶!

ahaghosthao commented 1 year ago

mark 感谢这个真有用

parkourlele commented 1 year ago

有用

hf43hf commented 6 months ago

感谢,确实有效~

yanbenrong commented 5 months ago

置顶吧 这个最有效

Salvatore-chen commented 1 month ago

感谢