Strict Standards: Non-static method Protector::getInstance() should not be called statically in /home/suehirogari/suehirogari.com/xoops_trust_path/modules/protector/include/precheck_functions.php on line 12

Strict Standards: Non-static method XCube_Root::getSingleton() should not be called statically in /home/suehirogari/suehirogari.com/public_html/include/common.php on line 18

Deprecated: Non-static method XCube_Root::getSingleton() should not be called statically, assuming $this from incompatible context in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 13
linksモジュール で FCK Editor を使う。 | 社内SEのウェブ制作

2010.11.19xoopsズープス

linksモジュール で FCK Editor を使う。

編集するファイル
■編集するテンプレート
links_submit.html
links_edit.html

■編集するファイル
xoops_trust_path/modules/links/class/links_Link.class.php
 

★link_submit.htmlの変更箇所
--最上部へ追加--
<script type="text/javascript" src="<{$smarty.const.XOOPS_URL}>/common/fckeditor/fckeditor.js"></script>
<script type="text/javascript"><!--
function fckeditor_exec() {
var oFCKeditor = new FCKeditor("desc", "100%", "500", "Default");
oFCKeditor.BasePath = "<{$smarty.const.XOOPS_URL}>/common/fckeditor/";
oFCKeditor.ReplaceTextarea();
}
//--></script>

--変更--

<{xoopsdhtmltarea name="desc" cols="50" rows="7" value=$desc pre_style="display:none;" post_style="display:none;"}>
から
<textarea id="desc" name="desc"><{$desc}></textarea><script>fckeditor_exec();</script>

★link_edit.htmlの変更箇所
--最上部へ追加--
<script type="text/javascript" src="<{$smarty.const.XOOPS_URL}>/common/fckeditor/fckeditor.js"></script>
<script type="text/javascript"><!--
function fckeditor_exec() {
var oFCKeditor = new FCKeditor("desc", "100%", "500", "Default");
oFCKeditor.BasePath = "<{$smarty.const.XOOPS_URL}>/common/fckeditor/";
oFCKeditor.ReplaceTextarea();
}
//--></script>

--変更--

  <{xoopsdhtmltarea name="desc" cols="50" rows="7" pre_style="display:none;" post_style="display:none;" value=$link.description}>
から
<textarea id="desc" name="desc"><{$link.description}></textarea><script>fckeditor_exec();</script>


xoops_trust_path/modules/links/class/links_Link.class.php の変更 } else {
$description = $myts->makeTareaData4Show($row['description'],0); から
$description = $myts->displayTarea($row['description'], 1, 1, 1, 1, 0);

 


このカテゴリの人気記事



  • コメント (0)
  • トラックバック (0)
  • 閲覧 (17961)

トラックバック

トラックバックpingアドレス http://www.suehirogari.com/modules/blog/tb.php/137

コメントの投稿

コメント投稿に関するルール : コメントは全て承認が必要

キーワードでサイト内を検索
人気のエントリ