|
|
@ -225,6 +225,8 @@ class Document { |
|
|
|
op.attributes != null ? Style.fromJson(op.attributes) : null; |
|
|
|
op.attributes != null ? Style.fromJson(op.attributes) : null; |
|
|
|
|
|
|
|
|
|
|
|
if (op.isInsert) { |
|
|
|
if (op.isInsert) { |
|
|
|
|
|
|
|
// Must normalize data before inserting into the document, makes sure |
|
|
|
|
|
|
|
// that any embedded objects are converted into EmbeddableObject type. |
|
|
|
_root.insert(offset, _normalize(op.data), style); |
|
|
|
_root.insert(offset, _normalize(op.data), style); |
|
|
|
} else if (op.isDelete) { |
|
|
|
} else if (op.isDelete) { |
|
|
|
_root.delete(offset, op.length); |
|
|
|
_root.delete(offset, op.length); |
|
|
|