Working with HTML/JSON doc
Generate HTML from JSON
import { toHTML } from 'ngx-editor';
const html = toHTML(this.jsonDoc); // -> html string
// schema is optional, use it if you modified the default schemaconst html = toHTML(this.jsonDoc, schema); // -> html string
Generating JSON from HTML
import { toDOC } from 'ngx-editor';
this.jsonDoc = toDOC(htmlString);
// schema is optional, use it if you modified the default schemathis.jsonDoc = toDOC(htmlString, schema);