mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
Fix selection after entering inline expression
This commit is contained in:
@@ -24,7 +24,6 @@ export default class MathCommand extends Command {
|
|||||||
mathtex = writer.createElement( display ? 'mathtex-display' : 'mathtex-inline', { equation, type: outputType, display } );
|
mathtex = writer.createElement( display ? 'mathtex-display' : 'mathtex-inline', { equation, type: outputType, display } );
|
||||||
}
|
}
|
||||||
model.insertContent( mathtex );
|
model.insertContent( mathtex );
|
||||||
writer.setSelection( mathtex, 'on' );
|
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user