| layout | docs |
|---|---|
| title | HTML editor |
| description | |
| group | Components |
import { HTMLEditor } from 'boot-cell/source/Form/HTMLEditor';
import { Example } from '../../../../source/component/Example';
This component is built on the top of Quill, these dependencies below should be installed:
npm install quill quill-image-uploaderimport { render, createCell } from 'web-cell';
import { HTMLEditor } from 'boot-cell/source/Form/HTMLEditor';
render(
<HTMLEditor>WebCell</HTMLEditor>
);import { render, createCell } from 'web-cell';
import { HTMLEditor } from 'boot-cell/source/Form/HTMLEditor';
render(
<HTMLEditor
theme="snow"
upload={() =>
new Promise(resolve =>
setTimeout(
() =>
resolve('https://web-cell.dev/WebCell-0.a6336415.png'),
1000
)
)
}
>
WebCell
</HTMLEditor>
);