Skip to content

yucheng-Li/quill-converter-xp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quill-converter-xp

Convert HTML to a Quill Delta or a Quill Delta to HTML

The purpose of this package is to assist in migrating to or from the Quill editor.

Installation

# Via NPM
npm install quill-converter-xp --save

# Via Yarn
yarn add quill-converter-xp

Getting Started

Convert a HTML string to a Quill delta:

const { convertHtmlToDelta } = require('quill-converter-xp');

let htmlString = '<p>hello, <strong>world</strong></p>';
let delta = convertHtmlToDelta(htmlString);

console.log(JSON.stringify(delta)); // {"ops":[{"insert":"hello, "},{"insert":"world","attributes":{"bold":true}}]}

About

Convert HTML to Delta

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published