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 systems.
17 lines (12 loc) • 314 B
JavaScript
import { XMLExporter } from 'substance'
class TestXMLExporter extends XMLExporter {
convertDocument(doc) {
var articleEl = this.createElement('article')
var body = doc.get('body')
articleEl.append(
this.convertContainer(body)
)
return articleEl
}
}
export default TestXMLExporter