Skip to content

Missing Event object when observing editableInput events on link addition #1153

Open
@suexID

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 editableInputevents 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 Eventobject just an empty one.

Steps to reproduce

  1. Subscribe to editableInput events
  2. Type something into the MediumEditor or modify styles of existing elements (eg.: make a text bold)
  3. An editableInputevent firest and you can see the Event object with target attribute in place
  4. Insert a link via the provided toolbar
  5. An editableInputevent firest but the Eventobject is empty and doesn't contain a target attribute

Expected behavior: An Eventobject should be available with target attribute

Actual behavior: An empty Objectis 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions