## 富文本编辑器
<br />

#### 用法（请看Attributes说明）
#
< c-edit :msg="{ text: '' }" />
#
< c-edit :tKey="'textA'" :msg="{ textA: '' }" />

### 基本用法
:::demo 
```html
<template>
    <div>{{msg}}<c-edit :msg="msg" placeholder="请输入" :tKey="tKey" :width="widthN"></c-edit></div>
</template>
<script>
export default {
    data() {
      return {
        widthN: '100%',
        tKey: 'asd',
        msg: {
            asd: `<p>富文本</p>\n<p><img src="2021/01/20/16111035787370603.jpg" /></p>`
        }
      }
   }
 };
</script>
```
:::

### Attributes
| 参数      | 说明          | 类型      | 可选值                           | 默认值  |
|---------- |-------------- |---------- |--------------------------------  |-------- |
| msg     |  用户输入文本与props.msg[props.tKey]或props.msg.text(不传tKey时)双向绑定           | object | — | — |
| tKey     |  用户输入文本与props.msg[props.tKey]双向绑定           | string | — | — |
| width | 编辑器宽度,默认值为800 | string | — | — |