hvlads / django-ckeditor-5

Django CKEditor 5 integration.
Other
145 stars 59 forks source link

Error Couldn't upload file: file.text/html; charset=utf-8 #246

Closed anton1k closed 3 weeks ago

anton1k commented 1 month ago

When I try to insert application/rtf content that contains a link, ckeditor tries to download the contents of the link and upload it to the server, which causes the error "Couldn't upload file: file.text/html; charset=utf-8" How can I make ckeditor not try to download, but simply insert rtf? изображение_2024-09-13_151104953

goapunk commented 1 month ago

@anton1k could you provide an example of that rtf content so we can test it?

anton1k commented 1 month ago

@goapunk You can simply create a link in the editor, copy it and paste it next to it, you get an error.

goapunk commented 1 month ago

opened https://github.com/hvlads/django-ckeditor-5/pull/247 which should hopefully fix it