mirror of
https://github.com/zadam/trilium.git
synced 2026-01-14 18:44:25 +01:00
feat(ckeditor5-math): use dynamic import to reduce loading time
This commit is contained in:
parent
c834c01c8e
commit
f503c4ca6c
@ -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';
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user