1
我使用的是joomla 1.7,我製作了一個自定義按鈕(editor-xtd plugin) ,我想在當前編輯器內容中插入一些字符串。如何在Joomla中插入文本到編輯程序?
和Readmore按鈕一樣。我已經通過Readmore代碼搜查,發現:
$js = "
function insertReadmore(editor) {
var content = $getContent
if (content.match(/<hr\s+id=(\"|')system-readmore(\"|')\s*\/*>/i)) {
alert('$present');
return false;
} else {
jInsertEditorText('<hr id=\"system-readmore\" />', editor);
}
}
";
現在,當我嘗試調用jInsertEditorText,我似乎得到這就是它丟失的錯誤。 一些論壇建議我導入mootools.js,但似乎沒有辦法。
任何人都知道我在哪裏可以找到它或者是否有其他方法?
由於提前, 埃裏克
我使用的JCE編輯器,似乎並不認識它。 – 2012-01-13 16:35:05