detection-user/uni_modules/netohall-mEditor/readme.md

28 lines
649 B
Markdown
Raw Normal View History

2024-09-01 18:16:43 +08:00
# 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>`
}
}
}
```