Commit f08a168
committed
fix(sync): process document state from push response
Do not process document state from create response.
During create the editor has not been initialized fully
and the cursor position is 0 - which is invalid
as it is not inside a node with inline content.
(It is inside the doc before the initial paragraph.)
This also allows processing document state later on
in order to recover from out of sync situations.
But we do not make use of that yet.
Signed-off-by: Max <max@nextcloud.com>1 parent 620ac7a commit f08a168
1 file changed
Lines changed: 9 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 125 | | |
136 | 126 | | |
137 | 127 | | |
| |||
186 | 176 | | |
187 | 177 | | |
188 | 178 | | |
189 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
190 | 188 | | |
191 | 189 | | |
192 | 190 | | |
| |||
0 commit comments