X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/5ffec2c52d6b6c1cf61e53813fe4bfbece3da1aa..HEAD:/resources/js/markdown/inputs/interface.ts diff --git a/resources/js/markdown/inputs/interface.ts b/resources/js/markdown/inputs/interface.ts index c0397ecd0..1f7474a50 100644 --- a/resources/js/markdown/inputs/interface.ts +++ b/resources/js/markdown/inputs/interface.ts @@ -65,12 +65,17 @@ export interface MarkdownEditorInput { getLineRangeFromPosition(position: number): MarkdownEditorInputSelection; /** - * Convert the given screen coords to a selection position within the input. + * Convert the given event position to a selection position within the input. */ - coordsToSelection(x: number, y: number): MarkdownEditorInputSelection; + eventToPosition(event: MouseEvent): MarkdownEditorInputSelection; /** * Search and return a line range which includes the provided text. */ searchForLineContaining(text: string): MarkdownEditorInputSelection|null; + + /** + * Tear down the input. + */ + teardown(): void; } \ No newline at end of file