arch-editor
Version:
Rich text editor with a high degree of customization.
38 lines (25 loc) • 712 B
Markdown
可自定义布局的富文本编辑器
[简体中文](./README.zh.md) | [English](./README.md)
- 使用 React.js
- 基于 Draft.js
`npm install arch-editor --save`
```js
import React from 'react';
import ReactDOM from 'react-dom';
import 'arch-editor/dist/arch-editor.css';
import { ArchEditor, BlockToolbar, ArchEditorProvider } from 'arch-editor';
function App() {
return (
<ArchEditorProvider>
<BlockToolbar />
<ArchEditor placeholder="请输入文本" showInlineToolbar />
</ArchEditorProvider>;
);
}
ReactDOM.render(<App />,document.getElementById('root'));
```