简体   繁体   English

如何添加一个事件监听器,该事件监听器在tinymce get函数被调用时触发?

[英]How do you add an Event Listener that fires when tinymce get function gets called?

This tinymce get function returns an Editor instance when passed an id. 传递id时,此tinymce get函数将返回Editor实例。 I would like to have an event fire (or a callback) every time this function is called: 我想每次调用此函数时都会触发事件(或回调):

tinymce.get('mytextbox')

I have tried: 我努力了:

tinymce.on('Get', function(e){console.log('Get called!',e);});

But that didn't work. 但这没有用。 Is there anything built into tinymce for this? 为此,tinymce中内置了什么吗?

不幸的是,Tinymce中没有内置这种功能。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何返回事件侦听器调用的函数的值? - How do I return the values of a function that's called by an event listener? 在 Chrome 扩展中,当 URL 的一部分是动态的时,如何为 URL 添加事件侦听器? - Within a Chrome Extension how do you add an event listener for a URL when part of the URL is dynamic? 如何将两个函数添加到一个事件监听器 - how do you add two functions to one event listener 事件侦听器多次调用Javascript函数 - Javascript function gets called multiple times by event listener 当表格发布时,您如何从Tinymce获取内容? - How do you get the content from Tinymce when the form is posted? onclick事件触发时调用的函数中的Javascript开关语句 - Javascript switch statement within a function that is called when the onclick event fires 如何使用带参数的函数添加和删除事件侦听器? - How do I add and remove an event listener using a function with parameters? 如何在Reactjs中创建一个不被事件监听器调用的function? - How to create a function in Reactjs that is not called by an event Listener? 当evr DOMContentLoaded 事件触发时,函数restClient(url) 如何不被调用? - How the function restClient(url) is not being called whenevr DOMContentLoaded event fires? 如何向 cookie 添加事件侦听器,以便在 cookie 更新或过期时发出通知 - how to add event listener to cookie so that to notify when a cookie gets updated or expired
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM