Skip to content

HTML Rich-text editor element based on Web Components, WebCell v2 & Quill.

Notifications You must be signed in to change notification settings

EasyWebApp/quill-cell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quill Cell

HTML Rich-text editor element based on Web Components, WebCell v2 & Quill.

NPM Dependency CI & CD

NPM

Usage

import { documentReady, render, createCell } from 'web-cell';
import { QuillCellProps, QuillCell } from 'quill-cell';

const upload: QuillCellProps['upload'] = async file => {
    const response = await fetch('/file', {
        method: 'POST',
        body: file
    });
    const { path } = await response.json();

    return path;
};

documentReady.then(() =>
    render(
        <QuillCell name="content" upload={upload}>
            Operate after selecting
        </QuillCell>
    )
);