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).

13 lines (11 loc) 318 B
import { XMLExporter } from 'substance' export default class TestXMLExporter extends XMLExporter { convertDocument (doc) { var articleEl = this.createElement('article') var body = doc.get('body') articleEl.append( this.convertContainer(doc, body.getContentPath()) ) return articleEl } }