TIMath23 / TIM

TIM (The Interactive Material) is an open-source cloud-based platform for creating interactive learning documents.
https://tim.education/view/about/en-US
MIT License
0 stars 0 forks source link

Preview click move cursor #188

Open juanrein opened 1 year ago

juanrein commented 1 year ago

When clicking some element like image or text block in preview move cursor to that in TIM-editor.

janmatla commented 1 year ago

Currently csPlugin.ts and pareditor.ts have handleSelectFormulaFromPreview methods, which can move the cursor to a formula. The methods are called when a formula is double clicked in the preview window. Calls are located in parEditor.html and csPlugin.ts. handleSelectFormulaFromPreview method then calls the selectFormulaFromPreview method in math-editor/formula-utils.ts, which has the logic to move the cursor.