feat(ckeditor5-math): use dynamic import to reduce loading time

This commit is contained in:
Elian Doran 2026-01-10 21:49:16 +02:00
parent c834c01c8e
commit f503c4ca6c
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View File

@ -1,9 +1,6 @@
import ckeditor from './../theme/icons/math.svg?raw';
import './augmentation.js';
import "../theme/mathform.css";
import 'mathlive';
import 'mathlive/fonts.css';
import 'mathlive/static.css';
import '../theme/mathform.css';
export { default as Math } from './math.js';
export { default as MathUI } from './mathui.js';

View File

@ -2,6 +2,7 @@
// and keeps them in sync for the CKEditor 5 math dialog.
import { View, type Locale, type FocusableView } from 'ckeditor5';
import 'mathlive/fonts.css'; // Auto-bundles offline fonts
import 'mathlive/static.css'; // Static styles for mathlive
declare global {
interface Window {