How do you set the focus of a TinyMCE textarea element?

后端 未结 13 2050
慢半拍i
慢半拍i 2020-12-29 20:33

I\'m using TinyMCE for a textarea on a page but it doesn\'t play nice in the tabbing order of the other elements.

I can use the following code to capture when I tab

13条回答
  •  渐次进展
    2020-12-29 20:40

    I've got it to work with TinyMCE 4.x by using the following:

    tinymce.EditorManager.get('id_of_editor_instance').focus();

提交回复
热议问题