mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
Config: Optional classes previewClassName and popupClassName
This commit is contained in:
@@ -3,12 +3,13 @@ import View from '@ckeditor/ckeditor5-ui/src/view';
|
||||
import { renderEquation } from '../utils';
|
||||
|
||||
export default class MathView extends View {
|
||||
constructor( engine, lazyLoad, locale, previewUid ) {
|
||||
constructor( engine, lazyLoad, locale, previewUid, previewClassName ) {
|
||||
super( locale );
|
||||
|
||||
this.engine = engine;
|
||||
this.lazyLoad = lazyLoad;
|
||||
this.previewUid = previewUid;
|
||||
this.previewClassName = previewClassName;
|
||||
|
||||
this.set( 'value', '' );
|
||||
this.set( 'display', false );
|
||||
@@ -31,7 +32,7 @@ export default class MathView extends View {
|
||||
}
|
||||
|
||||
updateMath() {
|
||||
renderEquation( this.value, this.element, this.engine, this.lazyLoad, this.display, true, this.previewUid );
|
||||
renderEquation( this.value, this.element, this.engine, this.lazyLoad, this.display, true, this.previewUid, this.previewClassName );
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user