chore(dx/client): fix SVG icons causing errors in CKEditor

This commit is contained in:
Elian Doran
2025-08-31 19:26:47 +03:00
parent 46cb869237
commit 5f1d2f02ee
18 changed files with 31 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
import ckeditor from './../theme/icons/math.svg';
import ckeditor from './../theme/icons/math.svg?raw';
import './augmentation.js';
import "../theme/mathform.css";

View File

@@ -1,6 +1,6 @@
import MathEditing from './mathediting.js';
import MainFormView from './ui/mainformview.js';
import mathIcon from '../theme/icons/math.svg';
import mathIcon from '../theme/icons/math.svg?raw';
import { Plugin, ClickObserver, ButtonView, ContextualBalloon, clickOutsideHandler, CKEditorError, uid } from 'ckeditor5';
import { getBalloonPositionData } from './utils.js';
import MathCommand from './mathcommand.js';
@@ -54,10 +54,10 @@ export default class MathUI extends Plugin {
this._addFormView();
this._balloon.showStack( 'main' );
requestAnimationFrame(() => {
this.formView?.mathInputView.fieldView.element?.focus();
});
});
}
private _createFormView() {