3 ms·
Thanks. One issue I believe ProseMirror has yet to solve well is the concept of embeddable widgets. For example, I should be able to embed a "video object", wh
by lobster_johnson 10y ago
Thanks. One issue I believe ProseMirror has yet to solve well is the concept of embeddable widgets.
For example, I should be able to embed a "video object", which represents some content that isn't directly editable, and which may exist somewhere else, and is perhaps internally represented using opaque ID that references some backing store. I want to be able to render this as a nice little video renderer that has a little edit button or a context-menu, and which can be edited to change its size, select a time subrange, subtitles and so on. The document editor should treat it as an opaque object that can render itself and marshal/unmarshal itself somehow, and which can be copied, pasted and moved around. Ideally it should also be possible to offer UI interactions, such as mouse clicks (for resizing).
Does Quill handle this better?
- jhchen 10y agoQuill does let you define Embed blots which essentially hand back complete control over the corresponding DOM node container. For example the formula module uses KaTeX to render formulas and it does not care what KaTeX does to descendant DOM nodes. You could attach listeners and add editing UIs within this if desired. I believe this approach should allow you to implement what you are describing.