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

后端 未结 13 1999
慢半拍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:49

    tinyMCE.get('Description').getBody().focus();

    The above works in Firefox, Chrome and IE as well. I have not tested in other browsers.

提交回复
热议问题