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: core/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -367,6 +367,14 @@ import { ViewUpdate } from '@codemirror/view';
367
367
exportinterfaceStatistics {
368
368
/** Get the number of lines in the editor. */
369
369
lineCount:number;
370
+
/** total length of the document */
371
+
length:number;
372
+
/** Get the proper [line-break](https://codemirror.net/docs/ref/#state.EditorState^lineSeparator) string for this state. */
373
+
lineBreak:string;
374
+
/** Returns true when the editor is [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only. */
375
+
readOnly:boolean;
376
+
/** The size (in columns) of a tab in the document, determined by the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet. */
377
+
tabSize:number;
370
378
/** Cursor Position */
371
379
selection:EditorSelection;
372
380
/** Retrieves a list of all current selections. */
Copy file name to clipboardExpand all lines: core/src/utils.ts
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,14 @@ import { ViewUpdate } from '@codemirror/view';
4
4
exportinterfaceStatistics{
5
5
/** Get the number of lines in the editor. */
6
6
lineCount: number;
7
+
/** total length of the document */
8
+
length: number;
9
+
/** Get the proper [line-break](https://codemirror.net/docs/ref/#state.EditorState^lineSeparator) string for this state. */
10
+
lineBreak: string;
11
+
/** Returns true when the editor is [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only. */
12
+
readOnly: boolean;
13
+
/** The size (in columns) of a tab in the document, determined by the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet. */
14
+
tabSize: number;
7
15
/** Cursor Position */
8
16
selection: EditorSelection;
9
17
/** Retrieves a list of all current selections. */
0 commit comments