我们如何使用Javascript检查TinyMCE编辑器是否在我们的网页上初始化?

时间:2017-07-03 07:53:15

标签: javascript tinymce tinymce-plugins

我需要将一个插件集成到TinyMCE编辑器中。为此,我需要检查TinyMCE编辑器是否存在于任何页面中。如果我们能够使用Javascript检查它,它会很好。只有我在这一步取得成功,我才能前进。请尽早帮我找到解决方案。

1 个答案:

答案 0 :(得分:1)

您可以简单地测试由tinyMCE脚本创建的tinyMCE全局变量。

只要您在脚本声明之后,它似乎在准备就绪之前可用。如果您担心脚本放在页面底部,请使用ready事件。

>>> perf custom Building
Your kernel version is too old and does not have the perf tool.
At least kernel 2.6.31 must be used.
package/pkg-generic.mk:184: recipe for target recipe for target '[..]/buildroot/output/build/perf-custom/.stamp_built' failed
make: *** [ [..]/buildroot/output/build/perf-custom/.stamp_built] Error 1