2020
12-26
12-26
React中使用Vditor自定义图片详解
安装npminstallvditor-s引用导入依赖包importVditorfrom"vditor";导入样式import"vditor/src/assets/scss/index.scss";使用示例exportdefaultclassVditorextendsComponent{constructor(props){super(props);this.state={editValue:""};}componentDidMount=()=>{//组件挂载完成之后调用注意一定要在组件挂载完成之后调用否则会找不到注入的DOMthis.createVidtor({value:this.state.ed...
继续阅读 >