Open Deutrix opened 2 months ago
Please share the information about the used version of the editor and integration packages.
Using following versions:
"ckeditor5": "^43.0.0" "@ckeditor/ckeditor5-vue": "^7.2.0" "vite": "5.3.5" with "vite-svg-loader": "5.1.0"
I wonder it it's an SVG issue, CKEditor inlines all SVGs in the build process currently. Could you prepare a reproducible sample for us?
I’m experiencing an issue with loading SVG defaultImport as raw in the custom build editor.
I'm using
vite-svg-loader
and it works as expected when set to 'raw'. However, I need to use a different loader for other purposes, and this is where the problem happens.I attempted using
vite-raw-plugin
, but it didn’t resolve the issue. I'm receiving the following error when trying to toolbar with an SVG in CKEditor:It seems related to CKEditor’s handling of SVGs, particularly the getAttribute method failing or this.content.trim(). Is there any solution or workaround to load SVGs differently while keeping CKEditor functional?
Any help or suggestions would be appreciated!