codemirror: add Doc.findMarks

This commit is contained in:
jeremyhayes
2015-02-28 22:13:50 -05:00
parent 3882d337bb
commit 6ea56ebe07

View File

@@ -544,6 +544,9 @@ declare module CodeMirror {
insertLeft?: boolean;
}): CodeMirror.TextMarker;
/** Returns an array of all the bookmarks and marked ranges found between the given positions. */
findMarks(from: CodeMirror.Position, to: CodeMirror.Position): TextMarker[];
/** Returns an array of all the bookmarks and marked ranges present at the given position. */
findMarksAt(pos: CodeMirror.Position): TextMarker[];