quill-conv
v0.1.9
Published
Convert HTML to Quill Delta in node.
Readme
Quill conv
Convert HTML to Quill Delta in node.
This package is under heavy development, use it at your own risk
Usage
import QuillConv from 'quill-conv'
new QuillConv().convert(html) // => DeltaAPI
interface QuillConv {
/**
* Options for QuillConv
*/
options: Object
/**
* Window object used in Quill
*/
window: Window
/**
* Constructor of Quill
*/
Quill: Constructor<Quill>
/**
* The clipboard module
*/
clipboard: Clipboard
/**
* Constructor
*/
constructor(options: QuillConvOptions)
/**
* Convert html string to Quill Delta
*/
convert(html: string): Delta
}
interface QuillConvOptions {
/**
* Source code of Quill
*/
source: string
/**
* Path to source of Quill
*
* Default: require.resolve('quill/dist/quill.core')
*
* Warning: QuillConv will read the source file synchronously
*/
path: string
/**
* Clipboard matchers
*
* Default: []
*/
matchers: Array,
}