All Projects → joelcolucci → Node Quill Converter

joelcolucci / Node Quill Converter

Licence: mit
Convert HTML to a Quill Delta or a Quill Delta to HTML

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Quill Converter

quill-markdown-toolbar
A Quill.js module for converting markdown text to rich text format
Stars: ✭ 13 (-78.69%)
Mutual labels:  converter, quill
Yii2 Quill
Yii 2 implementation of Quill, modern WYSIWYG editor
Stars: ✭ 52 (-14.75%)
Mutual labels:  quill
Ts To Goog
A tool that converts TypeScript definitions into Closure Compiler externs.
Stars: ✭ 20 (-67.21%)
Mutual labels:  converter
Mybox
Easy tools of document, image, file, network, location, color, and media.
Stars: ✭ 45 (-26.23%)
Mutual labels:  converter
Tdeskdroid
Telegram Desktop to Android theme converter
Stars: ✭ 28 (-54.1%)
Mutual labels:  converter
Php54 Arrays
Command-line script to convert between array() and PHP 5.4's short syntax []
Stars: ✭ 47 (-22.95%)
Mutual labels:  converter
Currencyviewer
Short python framework that dynamically displays and converts the cryptocurrencies in your Kraken wallet into equivalents fiat money.
Stars: ✭ 13 (-78.69%)
Mutual labels:  converter
Tsvoiceconverter
A Swift VoiceConverter between AMR format and WAV format
Stars: ✭ 58 (-4.92%)
Mutual labels:  converter
Shc
Shell script compiler
Stars: ✭ 1,050 (+1621.31%)
Mutual labels:  converter
Cfw2ofw Helper
Providing aid in converting video games.
Stars: ✭ 44 (-27.87%)
Mutual labels:  converter
Ssfconv
Sogou input method skin file (.ssf file) converter, supports conversion to fcitx or fcitx5 format.
Stars: ✭ 44 (-27.87%)
Mutual labels:  converter
Wikiforia
A Utility Library for Wikipedia dumps
Stars: ✭ 31 (-49.18%)
Mutual labels:  converter
Docs
The API for generating high quality images from HTML/CSS.
Stars: ✭ 49 (-19.67%)
Mutual labels:  converter
Quill
Quill is a modern WYSIWYG editor built for compatibility and extensibility.
Stars: ✭ 31,554 (+51627.87%)
Mutual labels:  quill
Genshin Audio Extractor
Convert Genshin Impact audio files into a playable format
Stars: ✭ 54 (-11.48%)
Mutual labels:  converter
Mxnet2caffe
convert model from mxnet to caffe without lossing precision
Stars: ✭ 20 (-67.21%)
Mutual labels:  converter
Transpec
The RSpec syntax converter
Stars: ✭ 997 (+1534.43%)
Mutual labels:  converter
Ost2pst
OST2PST - converts Outlook OST files to PST format
Stars: ✭ 46 (-24.59%)
Mutual labels:  converter
I18n Generator
i18n json files generator for node, web browser and command line
Stars: ✭ 60 (-1.64%)
Mutual labels:  converter
Gulp Markdown Pdf
Markdown to PDF
Stars: ✭ 56 (-8.2%)
Mutual labels:  converter

node-quill-converter NPM version

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 node-quill-converter --save

# Via Yarn
yarn add node-quill-converter

Getting Started

Convert a plain text string to a Quill delta:

const { convertTextToDelta } = require('node-quill-converter');

let text = 'hello, world';
let delta = convertTextToDelta(text);

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

Convert a HTML string to a Quill delta:

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

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}}]}

Convert a Quill delta to an HTML string:

const { convertDeltaToHtml } = require('node-quill-converter');

let html = convertDeltaToHtml(delta);

console.log(html) ; // '<p>hello, <strong>world</strong></p>'

License

MIT License Copyright (c) 2018 Joel Colucci

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].