Joomla 3.7 - TinyMCE - 未捕获TypeError:无法读取undefined属性'replaceSelection'
问题描述:
当editors-xtd插件对TinyMCE使用函数“jInsertEditorText”时发生此错误。Joomla 3.7 - TinyMCE - 未捕获TypeError:无法读取undefined属性'replaceSelection'
版本> = Joomla 3.7.3(从TinyMCE更新到4.5.7)。
有关信息函数“jInsertEditorText”是正确的,但是它是tinymce.min.js中由“jInsertEditorText”调用的“replaceSelection”,它会产生此错误。
在此先感谢您的帮助
答
我曾与phocadownload按钮更新后,这个问题(的Joomla 3.7.5,4.5.7 TinyMCE的,斑下载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
与'jform_articletext'
对我来说工作正常