devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
18 lines (17 loc) • 518 B
JavaScript
import { HtmlTagImporterBase } from './base';
export class HtmlDivTagImporter extends HtmlTagImporterBase {
elementTag() {
return "DIV";
}
importBefore() {
if (!this.importer.prevRunIsParagraph && this.importer.importStarted)
this.importer.addParagraphRun(this.element);
}
isImportChildren() {
return true;
}
importAfter() {
if (!this.importer.prevRunIsParagraph)
this.importer.addParagraphRun(this.element);
}
}