TinyMCE: How bind on event after its initialized

前端 未结 5 1519
轮回少年
轮回少年 2021-01-11 14:16

I already searched a lot but by google-fu\'ing don\'t get me any results :(

I have an already initialized tinyMCE editor which initiali

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-11 14:57

    In TinyMCE 4, onChange doesn't exist. You have to use:

    tinymce.get('myeditorname').on("change", function() { alert("stuff"); });
    

提交回复
热议问题