-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Missing Event object when observing editableInput events on link addition #1153
Comments
@suexID my first question is, have you considered sharing any of those custom extensions with the rest of us? If you have any of them shared as open-source projects/modules, we would love to call them out in our documentation and our landing page 😄 Regarding the In this case, there is a bunch of custom logic within medium-editor for inserting links consistently in a wide variety of use cases. Some of this logic would trigger the There are other cases with other events where we've run into this issue. It's not clear what the right thing to do is, and I've personally gone back and forth between whether the editor should pass the native browser Event whenever it has access to it, or purposefully not including the native Event object in favor of always being consistent. Let me know if you have any thoughts about this, or perhaps you could describe what properties of the Event you need and maybe we can ensure that all custom events will expose those properties (the code already ensures that the |
This issue is fairly old and there hasn't been much activity on it. Closing, but please re-open if it still occurs. |
I think this issue is worth leaving open as this can be a potential headache for people. I didn't feel great about the solution and would definitely be open to suggestions/recommendations on a better way to standardize the signature of our custom event triggering logic. |
I also came across this event. Currently working on @franzskuffka/vue-medium-editor and had this issue during testing. So it would be a great help if we could sort this out. I have the gut feeling that this will come bouncing back to me in a short while. I would love to help out but I am afraid I have to too little knowledge of the architecture to contribute right here. |
Has anyone found a solution to this? |
I am currently having issues with this. |
Just letting you know that this bug was reported for franzskuffka/vue-medium-editor quite a few times now. |
Description
Hi! We're working on a full WYSIYWG editor solution to a client which uses the text-editing capabilities of the MediumEditor along with 3rd party and self-coded extensions. We're listening to
editableInput
events to continously update a CodeMirror editor with the HTML source of what the user edits in MediumEditor and we noticed while inserting a link to a document firest the editableInput event but the event doesn't expose the usualEvent
object just an empty one.Steps to reproduce
editableInput
event firest and you can see the Event object with target attribute in placeeditableInput
event firest but theEvent
object is empty and doesn't contain a target attributeExpected behavior: An
Event
object should be available with target attributeActual behavior: An empty
Object
is available without any contextLink to an example: https://jsfiddle.net/qn1aqqc5/
Versions
The text was updated successfully, but these errors were encountered: