@talrace/ngx-noder 0.0.29 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12187,7 +12187,7 @@ class EditSession {
12187
12187
  createRestoreFromSlice(paragraphStart, indexInStart, paragraphEnd, indexInEnd) {
12188
12188
  const startIndex = ContentHelper.paragraphToDocumentIndex(this.displayData.paragraphs, paragraphStart, indexInStart);
12189
12189
  const endIndex = ContentHelper.paragraphToDocumentIndex(this.displayData.paragraphs, paragraphEnd, indexInEnd);
12190
- return ContentsOperationsHelper.GetRestoreFromSlice(this.model, startIndex, endIndex);
12190
+ return ContentsOperationsHelper.GetRestoreFromSlice(this.model, startIndex, endIndex - startIndex);
12191
12191
  }
12192
12192
  addComponent(customElements, model, componentType) {
12193
12193
  const customElement = this.customContentService.componentService.createComponent(componentType, {