devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
15 lines (14 loc) • 469 B
JavaScript
export class ContentInsertedSubDocumentChange {
constructor(subDocumentId, position, length) {
this.subDocumentId = subDocumentId;
this.position = position;
this.length = length;
}
canContinuesWith(nextChange) {
if (nextChange.subDocumentId != this.subDocumentId)
return false;
if (nextChange.position != (this.position + this.length))
return false;
return true;
}
}