arch-editor
Version:
Rich text editor with a high degree of customization.
37 lines (25 loc) • 719 B
Markdown
Rich text editor with customizable layout
[简体中文](README.zh.md) | [English](README.md)
- Use React.js
- Based on 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="Please enter text." showInlineToolbar />
</ArchEditorProvider>;
);
}
ReactDOM.render(<App />,document.getElementById('root'));
```