Open
Description
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 usual Event
object just an empty one.
Steps to reproduce
- Subscribe to editableInput events
- Type something into the MediumEditor or modify styles of existing elements (eg.: make a text bold)
- An
editableInput
event firest and you can see the Event object with target attribute in place - Insert a link via the provided toolbar
- An
editableInput
event firest but theEvent
object is empty and doesn't contain a target attribute
Expected behavior: An Event
object should be available with target attribute
Actual behavior: An empty Object
is available without any context
Link to an example: https://jsfiddle.net/qn1aqqc5/
Versions
- medium-editor: 5.21.0
- browser: Google Chrome 51.0.2704.103 m
- OS: Windows 10
Activity