Open juanrein opened 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.
When clicking some element like image or text block in preview move cursor to that in TIM-editor.