You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to set up a NodeView for iframes so when the node is selected a panel hovers over it with the option to edit the attributes or directly paste a full iframe code. The panel shows but when I click in an input, the event seems to be bubbled up and the element rerenders and I lose the focus.
I tried with the example you provide with the speech, and it happens also when I remove the content from the spec (I also have to remove the contentDOM property in the NodeView plugin config).
Finally, I made it work by copying the node-view.ts from the core, uncommenting the stopEvent function, and changing it to:
stopEvent() {
return this._selected;
}
This is working in my case but I am wondering if there is a more elegant solution that can be generalized.
I am not that proficient in ProseMIrror yet, I have tried to accomplish that with widget decorations but I couldn't make it work the way I wanted. So if you have suggestions on alternative implementations, please let me know.
Thank you!
The text was updated successfully, but these errors were encountered:
Hello,
I have been trying to set up a NodeView for iframes so when the node is selected a panel hovers over it with the option to edit the attributes or directly paste a full iframe code. The panel shows but when I click in an input, the event seems to be bubbled up and the element rerenders and I lose the focus.
I tried with the example you provide with the speech, and it happens also when I remove the
content
from the spec (I also have to remove thecontentDOM
property in the NodeView plugin config).Finally, I made it work by copying the node-view.ts from the core, uncommenting the
stopEvent
function, and changing it to:This is working in my case but I am wondering if there is a more elegant solution that can be generalized.
I am not that proficient in ProseMIrror yet, I have tried to accomplish that with widget decorations but I couldn't make it work the way I wanted. So if you have suggestions on alternative implementations, please let me know.
Thank you!
The text was updated successfully, but these errors were encountered: