feat(math): support more attributes

This commit is contained in:
Elian Doran 2025-10-02 18:32:46 +03:00
parent 5f38d52f20
commit d49ce7c289
No known key found for this signature in database

View File

@ -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' ]
} );
}