Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Fix selection after entering inline expression
Sauli Anto2fea2e2ffb21
diff --git a/src/mathcommand.js b/src/mathcommand.jsindex 11c540164c..8773406006 100644--- a/src/mathcommand.js+++ b/src/mathcommand.js@@ -24,7 +24,6 @@ export default class MathCommand extends Command {mathtex = writer.createElement( display ? 'mathtex-display' : 'mathtex-inline', { equation, type: outputType, display } );}model.insertContent( mathtex );- writer.setSelection( mathtex, 'on' );} );}