hasChildNodes不是一个函数,小老鼠编辑器js错误


hasChildNodes is not a function tiny mice editor js error

我在我的应用程序中使用小鼠标编辑器,但它会给js错误,有时像

Uncaught TypeError: D.hasChildNodes is not a function 

我已经检查了下面的链接Link1 Link2,但它不适合我。

这个错误出现在Firefox, Chrome和IE中,错误js文件显示的是editor_template.js。请帮我解决这个js错误

看一下使用CakePHP所见即所得插件加载TinyMCE(或其他所见即所得编辑器)。它将负责大部分的设置和配置,并使加载TinyMCE非常容易,就像:

echo $this->Wysiwyg->textarea('ModelName.fieldName', $inputOptions, $helperOptions);