Skip to content

JavaScript error when clicking on a non editable Node #293

@dpobel

Description

@dpobel

That's fairly easy to reproduce. Run AlloyEditor on a DOM Node containing a node with contenteditable="false" and click on it. The console displays:

Uncaught TypeError: Cannot read property 'startNode' of undefined

This is happening because the code behind getSelectionData (called in uicore.js when firing the editorInteraction) assumes the caret is always there while that's not the case if you have non editable region in the editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions