mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +02:00
feat(math): support more attributes
This commit is contained in:
parent
5f38d52f20
commit
d49ce7c289
@ -59,12 +59,12 @@ export default class MathEditing extends Plugin {
|
|||||||
allowWhere: '$text',
|
allowWhere: '$text',
|
||||||
isInline: true,
|
isInline: true,
|
||||||
isObject: true,
|
isObject: true,
|
||||||
allowAttributes: [ 'equation', 'type', 'display', 'fontSize' ]
|
allowAttributes: [ 'equation', 'type', 'display', 'fontSize', 'fontColor', 'fontBackgroundColor' ]
|
||||||
} );
|
} );
|
||||||
|
|
||||||
schema.register( 'mathtex-display', {
|
schema.register( 'mathtex-display', {
|
||||||
inheritAllFrom: '$blockObject',
|
inheritAllFrom: '$blockObject',
|
||||||
allowAttributes: [ 'equation', 'type', 'display' ]
|
allowAttributes: [ 'equation', 'type', 'display', 'fontSize', 'fontColor' ]
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user