X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/d55db06c01302c8a2e597c91620fbfb8ddfc6982..HEAD:/resources/js/markdown/inputs/interface.ts diff --git a/resources/js/markdown/inputs/interface.ts b/resources/js/markdown/inputs/interface.ts index 66a8c07e7..1f7474a50 100644 --- a/resources/js/markdown/inputs/interface.ts +++ b/resources/js/markdown/inputs/interface.ts @@ -65,9 +65,9 @@ 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.