TinyMCE execCommand return undefined

前端 未结 1 1438
死守一世寂寞
死守一世寂寞 2021-02-08 18:38

I\'m trying to remove tinyMCE from a specific textarea that I have created earlier but the following command kept on producing \"undefined\" error (checked using firebug console

相关标签:
1条回答
  • 2021-02-08 18:55

    You get undefined because in 4.x they removed mceRemoveControl and mceAddControl (I'm not sure about mceFocus) so use mceAddEditor and mceRemoveEditor instead.

    Because these codes did the same stuff they removed mceRemoveControl and mceAddControl in the cleanup.

    And also don't forget you need to use tinymce in lower case from now.

    0 讨论(0)
提交回复
热议问题