Skip to content

Build your personal knowledge base with Trilium Notes

Fix selection after entering inline expression

Sauli Anto2fea2e2ffb21
diff --git a/src/mathcommand.js b/src/mathcommand.js
index 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' );
} );
}