28 lines
649 B
Markdown
28 lines
649 B
Markdown
# netohall-mEditor
|
||
声明:基于https://ext.dcloud.net.cn/plugin?id=9322版本修改,完善编辑页面内容。
|
||
|
||
ids是必填且在同一页面有两个及以上的mEditor组件时要填写不重复的ID
|
||
#代码主要来自[](https://ext.dcloud.net.cn/plugin?id=9322)
|
||
#参考来自[](https://www.cnblogs.com/pansidong/p/16213577.html)
|
||
|
||
![](readme_files/1.jpg)
|
||
|
||
```html
|
||
<template>
|
||
<uni-forms-item name="content" label="产品介绍">
|
||
<mEditor v-model="content" ids="content"></mEditor>
|
||
</uni-forms-item>
|
||
</template>
|
||
|
||
```
|
||
|
||
```javascript
|
||
|
||
export default {
|
||
data() {
|
||
return {
|
||
content: `<p>这里是内容</p>`
|
||
}
|
||
}
|
||
}
|
||
``` |