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
import { toDOC } from 'ngx-editor'; this.jsonDoc = toDOC(htmlString); // schema is optional, use it if you modified the default schemathis.jsonDoc = toDOC(htmlString, schema);