Skip to content

Commit ce47303

Browse files
committed
Do not strip blank: true when converting the view model to the model
1 parent 549f90f commit ce47303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SIL.XForge.Scripture/ClientApp/src/app/shared/text/text-view-model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,8 @@ export class TextViewModel implements OnDestroy, LynxTextModelConverter {
952952
}
953953
} else if (
954954
cloneOp.insert != null &&
955-
(cloneOp.insert['note-thread-embed'] != null || cloneOp.insert['blank'] != null)
955+
// Only remove notes or the view model created blanks
956+
(cloneOp.insert['note-thread-embed'] != null || cloneOp.insert['blank'] === false)
956957
) {
957958
cloneOp = undefined;
958959
}
@@ -1070,7 +1071,6 @@ export class TextViewModel implements OnDestroy, LynxTextModelConverter {
10701071
// Update the segments
10711072
const updateDelta = this.updateSegments(this.editor, adjustedDelta);
10721073
if (updateDelta.ops != null && updateDelta.ops.length > 0) {
1073-
// Clean up blanks in quill editor. This may result in re-entering the update() method.
10741074
return adjustedDelta.compose(updateDelta);
10751075
}
10761076

0 commit comments

Comments
 (0)