I am trying to implement a text editor with wave.I have generated
client side OT using GWT.Now the deltas from server are send as
ProtocolDocumentOperation json as shown below.
{"component": [{"element_start": {"type": "P","attribute": [{"key":
"align
","value": "center"},{"key": "bgcolor","value": "red"}]}},
{"characters": "ABCD"},{"element_end": tru
e},{"retain_item_count": 1},{"update_attributes": {"attribute_update":
[{"key": "bgcolor","old_value
": "red","new_value": "green"}]}},{"retain_item_count": 1},
{"delete_characters": "D"},{"delete_eleme
nt_start": {"type": "TEST"}},{"delete_characters": "TEST"},
{"delete_element_end": true},{"replace_at
tributes": {"old_attribute": [{"key": "test","value":
"false"}],"new_attribute": [{"key": "notest","
value": "true"}]}},{"retain_item_count": 6},{"element_start": {"type":
"P"}},{"annotation_boundary":
{"change": [{"key": "style/fontStyle","new_value": "underline"}]}},
{"characters": "Google"},{"annot
ation_boundary": {"change": [{"key": "style/fontStyle","old_value":
"underline"}]}},{"characters": "
Wave"},{"annotation_boundary": {"end": ["style/fontStyle"]}},
{"element_end": true}]}
How can I get BufferedDocOp from this JSON in order to be used in
client OT or compose?
Thanks,
krithi
--
You received this message because you are subscribed to the Google Groups "Wave
Protocol" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/wave-protocol?hl=en.