mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
Add hash to math preview
This commit is contained in:
@@ -3,10 +3,11 @@ import View from '@ckeditor/ckeditor5-ui/src/view';
|
||||
import { renderEquation } from '../utils';
|
||||
|
||||
export default class MathView extends View {
|
||||
constructor( engine, locale ) {
|
||||
constructor( engine, locale, previewUid ) {
|
||||
super( locale );
|
||||
|
||||
this.engine = engine;
|
||||
this.previewUid = previewUid;
|
||||
|
||||
this.set( 'value', '' );
|
||||
this.set( 'display', false );
|
||||
@@ -29,7 +30,7 @@ export default class MathView extends View {
|
||||
}
|
||||
|
||||
updateMath() {
|
||||
renderEquation( this.value, this.element, this.engine, this.display, true );
|
||||
renderEquation( this.value, this.element, this.engine, this.display, true, this.previewUid );
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user