MT增加在线编辑器FCKeditor

| 2 Comments | No TrackBacks

给mt增加WYSIWYG编辑器FCKeditor

在胡同上面加个编辑器,是去年的想法,偷懒了差不多半年;今天找了一下资料,弄了个FCKeditor;

1。到FCKeditor去下载最新的版本,然后在blog的根目录建立一个FCKeditor目录,然后把软件包里的文件都传到这个目录,当然_packager _samples _testcases 3个目录不用上传。
2。然后修改cgi-bin/tmpl/cms/edit_entry.tmpl ,记得备份哦:)
在文件开头,<TMPL_INCLUDE NAME="header.tmpl"> 的下方添加下面的代码:

<head>
<script type="text/javascript" src="http://你的网站/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
 {
 var oFCKeditor = new FCKeditor( 'text' ) ;
  oFCKeditor.Height = "600" ;
  oFCKeditor.Width = "577" ;
  oFCKeditor.ReplaceTextarea() ;
}
    </script>
</head>

No TrackBacks

TrackBack URL: http://www.wujianrong.com/mt-tb.cgi/560

2 Comments


Yo! Cool stuff! Thanks for being here. Would you please also visit my site?

Keep up this great resource. best greetings. free ringtones free sprint ringtones motorola ringtones mp3 ringtones nokia ringtones samsung ringtones sprint ringtones Thanks, bye!

Leave a comment

About this Entry

This page contains a single entry by kevinwu published on April 9, 2006 3:30 PM.

2005中国商业网站100强 was the previous entry in this blog.

2006中国Web2.0值得关注的百家企业名单(表) is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.