wox-admin-media-editor

basic react component

Usage no npm install needed!

<script type="module">
  import woxAdminMediaEditor from 'https://cdn.skypack.dev/wox-admin-media-editor';
</script>

README

wox-react-component image

API

属性 说明 类型 默认值
callback 回调函数,返回 { keyName: 当前值 } Function
keyName 返回对象的属性名 String value
url 服务器地址 String
value 富文本框值 String
className 编辑器的样式名 String
style 编辑器的内联样式 Object

Usage

import WoxMediaEditor from 'wox-admin-media-editor';

render(
  <WoxMediaEditor
    value='<p>啦啦啦,我是卖报的小行家</p>'
    callback={this.changeData}
    keyName='myData'
    url='//upload.quimg.com/wximg/operation/upload'
  />,
  rootEle
);

Doc

[github]](https://github.com/margox/braft-editor)

使用文档

在线演示