Skip to content

How to scroll to bottom of editor? #846

@byronpendason

Description

@byronpendason

I am working on an app where the editor is in one "tab" (the tabs are just buttons that set the display on all other tabs as "none" and sets the display on the current tab as "block"). The editor is the default open tab. When someone goes to another tab, and then returns to the editor tab, I want to set the editor as the focus and place the cursor at the bottom of the editor textarea.

How do I set the editor as the focus and set the cursor at the bottom of the editor?

Edit: I know the autofocus sets it to focus at the editor's creation, but I'm trying to autofocus to it after changing the display from "none" to "block" when switching back to that tab.

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