mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 23:35:50 +01:00
Config: Optional classes previewClassName and popupClassName
This commit is contained in:
@@ -22,7 +22,7 @@ import MathView from './mathview';
|
||||
import '../../theme/mathform.css';
|
||||
|
||||
export default class MainFormView extends View {
|
||||
constructor( locale, engine, lazyLoad, previewEnabled, previewUid ) {
|
||||
constructor( locale, engine, lazyLoad, previewEnabled, previewUid, previewClassName, popupClassName ) {
|
||||
super( locale );
|
||||
|
||||
const t = locale.t;
|
||||
@@ -52,7 +52,7 @@ export default class MainFormView extends View {
|
||||
this.previewLabel.text = t( 'Equation preview' );
|
||||
|
||||
// Math element
|
||||
this.mathView = new MathView( engine, lazyLoad, locale, previewUid );
|
||||
this.mathView = new MathView( engine, lazyLoad, locale, previewUid, previewClassName );
|
||||
this.mathView.bind( 'display' ).to( this.displayButtonView, 'isOn' );
|
||||
|
||||
children = [
|
||||
@@ -74,7 +74,8 @@ export default class MainFormView extends View {
|
||||
attributes: {
|
||||
class: [
|
||||
'ck',
|
||||
'ck-math-form'
|
||||
'ck-math-form',
|
||||
...popupClassName
|
||||
],
|
||||
tabindex: '-1',
|
||||
spellcheck: 'false'
|
||||
|
||||
Reference in New Issue
Block a user