给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>

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!