0.1.9 • Published 7 years ago

quill-conv v0.1.9

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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) // => Delta

API

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,
}
0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago