Skip to content

addAtom only works when editor is focused #121

@benkingcode

Description

@benkingcode

I have some buttons in my editor toolbar that add an atom to the editor. Here's the code:

<button class="btn tag tag-info" {{action editor.addAtom 'message-tag' 'example'}}>example</button>

However, the button only works when the editor is actively focused. If the user presses a button while the editor is not focused, nothing happens. The ideal behaviour would be appending the atom to the end of the document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions