You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I see the comment from bustle/mobiledoc-kit#405 and I am able to find a solution by storing the last focusedCursor position and reapplying the cursor position before the atom is added. I hope that helps for anyone else who encounters this issue :)
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.
The text was updated successfully, but these errors were encountered: