You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Api_Methods.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,13 +173,11 @@ If the cursor is before the plus this method would return:
173
173
{
174
174
latex:'a+b',
175
175
startIndex:1,
176
-
endIndex:1,
177
-
opaqueSnapshot: {...}
176
+
endIndex:1
178
177
}
179
178
```
180
179
181
-
You can pass the result of `.selection()` back into `.selection()` to restore a cursor / selection. This works by taking a snapshot of the selection you currently have and recording
182
-
enough information to restore it within `opaqueSnapshot`. You should not peek inside of `opaqueSnapshot` or permanently store it. This is valid only for this version of MathQuill. This selection is also only valid if the MQ's latex is identical. The MQ can go through changes, but when you try to restore the selection the current latex must match the latex when the selection snapshot was created.
180
+
You can pass the result of `.selection()` back into `.selection()` to restore a cursor / selection.
0 commit comments