【问题标题】:How to call a function on blur event for a tiny mce如何为tinymce调用模糊事件的函数
【发布时间】:2010-07-20 10:25:29
【问题描述】:

我想编写一个函数来保存 tiny mce 的内容并销毁 tiny mce 的当前实例,当 mce 失去焦点时将调用该实例。

【问题讨论】:

    标签: tinymce


    【解决方案1】:

    这样的事情应该可以工作:

    // Code to be inserted into the init function of a plugin
    ed.onDeactivate.add(function(ed) {
        ed.save();  // or whatever you want to do to save the editor content
        ed.remove(); // removes tinymce instance
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-08
      • 1970-01-01
      相关资源
      最近更新 更多