mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 10:45:58 +08:00
feat(math): support more attributes
This commit is contained in:
parent
5f38d52f20
commit
d49ce7c289
1 changed files with 2 additions and 2 deletions
|
|
@ -59,12 +59,12 @@ export default class MathEditing extends Plugin {
|
|||
allowWhere: '$text',
|
||||
isInline: true,
|
||||
isObject: true,
|
||||
allowAttributes: [ 'equation', 'type', 'display', 'fontSize' ]
|
||||
allowAttributes: [ 'equation', 'type', 'display', 'fontSize', 'fontColor', 'fontBackgroundColor' ]
|
||||
} );
|
||||
|
||||
schema.register( 'mathtex-display', {
|
||||
inheritAllFrom: '$blockObject',
|
||||
allowAttributes: [ 'equation', 'type', 'display' ]
|
||||
allowAttributes: [ 'equation', 'type', 'display', 'fontSize', 'fontColor' ]
|
||||
} );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue