UNPKG

substance

Version:

Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing system. It is developed to power our online editing platform [Substance](http://substance.io).

12 lines (10 loc) 261 B
import { HTMLExporter } from 'substance' export default class TestHTMLExporter extends HTMLExporter { convertDocument (doc) { let el = this.createElement('div') el.append( this.convertContainer(doc, ['body', 'nodes']) ) return el } }