devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
6 lines (5 loc) • 450 B
JavaScript
import { HtmlDocumentImporter } from "./html-document-importer";
import { getAfterInsertCallback, getAfterInsertReject } from "../../callback-helpers";
export function insertHtmlInSubDocument(processor, subDocument, position, htmlText, callback) {
new HtmlDocumentImporter().importFromString(htmlText, processor.modelManager.richOptions, getAfterInsertCallback(processor, subDocument, position, callback), getAfterInsertReject(callback));
}