mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
Add engine option
This commit is contained in:
@@ -57,7 +57,10 @@ export default class MathUI extends Plugin {
|
||||
_createFormView() {
|
||||
const editor = this.editor;
|
||||
const mathCommand = editor.commands.get( 'math' );
|
||||
const engine = 'mathjax';
|
||||
|
||||
const mathConfig = editor.config.get( 'math' );
|
||||
// Todo: better checks
|
||||
const engine = typeof mathConfig !== 'undefined' && typeof mathConfig.engine !== 'undefined' ? mathConfig.engine : 'mathjax';
|
||||
|
||||
const formView = new MainFormView( editor.locale, engine );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user