-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG loading issue with Vite #320
Labels
pending:feedback
This issue is blocked by necessary feedback.
Comments
Please share the information about the used version of the editor and integration packages. |
Using following versions: "ckeditor5": "^43.0.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? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!
The text was updated successfully, but these errors were encountered: