to 阿駕~~小弟試了lss 大,在迴響加入tinymce 的方法,可是沒成功~~~
不曉得是那裡有問題~~~
我把commentform.template 跟tiny_mce-commentform.js 的程式碼po 出來 ,可以幫我看一下那邊沒設定好嗎?
----------commentform.template 的內容----------------\\
<script language="javascript" type="text/javascript" xsrc="{$url->getBaseUrl()}/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<form action="{$url->getIndexUrl()}" method="post" id="NewComment" name="NewComment">
<p>
{$locale->pr("comment_topic")}<br/><input type="text" name="commentTopic" value=""/><br/>
{$locale->pr("comment_text")} <br/><textarea rows="10" cols="37" name="commentText"></textarea><br/>
{$locale->pr("comment_username")}<br/> <input type="text" name="userName" value=""/><br/>
{$locale->pr("comment_email")}<br/> <input type="text" name="userEmail" value=""/><br/>
{$locale->pr("comment_url")}<br/> <input type="text" name="userUrl" value=""/><br/>
<input type="submit" value="{$locale->pr("comment_send")}" name="Add"/><br/><br/>
<input type="hidden" name="op" value="AddComment"/>
<input type="hidden" name="articleId" value="{$post->getId()}"/>
<input type="hidden" name="blogId" value="{$blog->getId()}"/>
<input type="hidden" name="parentId" value="{$parentId}"/>
</p>
</form>
--------------tiny_mce-comentform.js 的內容-----------\\
<script language="javascript" type="text/javascript" xsrc="{$url->getTemplateFile("tiny_mce-commentform.js")}"></script>
tinyMCE.init({
mode : "textareas",
relative_urls : false,
plugins : " emotions",
theme_advanced_buttons1 : ""
+"bold,italic,underline,strikethrough,outdent,indent,link,unlink,emotions",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
force_p_newlines : false
})