matthiask / django-prose-editor

ProseMirror-based HTML editor for Django
https://django-prose-editor.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
97 stars 6 forks source link

insert media #3

Closed saeedmasoudie closed 4 months ago

saeedmasoudie commented 4 months ago

i didn't see anything about inserting pictures or video and i didn't find that in default options can you help me about it?

matthiask commented 4 months ago

Hey

That's currently not supported. Generally speaking: I prefer adding such content types in areas of their own, not within a rich text editor (see https://github.com/matthiask/django-prose-editor/?tab=readme-ov-file#about-rich-text-editors) -- most often I have a content editor plugin for the text and others for pictures and other content types (https://django-content-editor.readthedocs.io/en/latest/)

Also, I can avoid everything related to uploading and handling assets that way.

I have written a <figure> editing plugin for ProseMirror in the past. It's definitely not all that hard, but I myself do not have a use for it in the general case.

saeedmasoudie commented 4 months ago

thank you