Skip to content

Latest commit

 

History

History
74 lines (61 loc) · 1.43 KB

File metadata and controls

74 lines (61 loc) · 1.43 KB
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-uploader

Bubble theme

WebCell
import { render, createCell } from 'web-cell';
import { HTMLEditor } from 'boot-cell/source/Form/HTMLEditor';

render(
    <HTMLEditor>WebCell</HTMLEditor>
);

Snow theme

new Promise(resolve => setTimeout( () => resolve('https://web-cell.dev/WebCell-0.a6336415.png'), 1000 ) ) } > WebCell
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>
);