mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-06 12:02:45 +03:00
MD Editor: Worked to improve/fix positioning code
Still pending testing. Old logic did not work when lines would wrap, so changing things to a character/line measuring technique. Fixed some other isues too while testing shortcuts.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user