From d49ce7c2894654ace5217ef6c3e904f7310e1a7a Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 2 Oct 2025 18:32:46 +0300 Subject: [PATCH] feat(math): support more attributes --- packages/ckeditor5-math/src/mathediting.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ckeditor5-math/src/mathediting.ts b/packages/ckeditor5-math/src/mathediting.ts index 166b209e4..a5f1a11db 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' ] } ); }