[英]Joomla 3.7 - TinyMCE - Uncaught TypeError: Cannot read property 'replaceSelection' of undefined
当editors-xtd插件在TinyMCE中使用函数“ jInsertEditorText”时,会发生此错误。
版本> = Joomla 3.7.3(从TinyMCE更新到4.5.7)。
有关信息,函数“ jInsertEditorText”是正确的,但是生成此错误的原因是tinymce.min.js中“ jInsertEditorText”调用的“ replaceSelection”。
在此先感谢您的帮助
我在使用phocadownload按钮更新后遇到了这个问题(Joomla 3.7.5,TinyMCE 4.5.7,Phoca Download 3.0.6),文件view.html.php
存在错误,位于:
/administrator/components/com_phocadownload/views/phocadownloadlinkfile
在第121行的底部
插入此:
$this->assignRef('tmpl', $tmpl);
代替:
$this->assignRef('tmpl', $this->t);
有同样的问题。 我以这种方式修复了它:
jInsertEditorText(result, 'jform_articletext');
只需将$name
替换$name
'jform_articletext'
对我来说很好
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.