Skip to content

Build your personal knowledge base with Trilium Notes

feat(math): support more attributes

Elian Dorand49ce7c28946
diff --git a/packages/ckeditor5-math/src/mathediting.ts b/packages/ckeditor5-math/src/mathediting.ts
index 166b209e40..a5f1a11db0 100644
--- a/packages/ckeditor5-math/src/mathediting.ts
+++ b/packages/ckeditor5-math/src/mathediting.ts
@@ -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' ]
} );
}