<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[PHP中使用FCKeditor2.3.2配置__教程]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Mon, 28 May 2007 07:36:37 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	FCKeditor2.3.2在线编辑器非常好用，完全支持文件上传。今天baidu了一下午终于搞定了。 下载FCKeditor2.3.2，解压至FCKeditor。 <br/><br/>1首先删除不必要的文件节省空间。凡是以_开头的文件如_samples，_testcases和一些用不到的.asp、.jsp、.cfm文件统统干掉。<br/><br/>2修改fckconfig.js<br/>FCKConfig.AutoDetectLanguage = true ;//是否自动检测语言<br/>FCKConfig.DefaultLanguage &nbsp;= 'zh-cn' ;//设置语言<br/>FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;//设置皮肤<br/>FCKConfig.TabSpaces = 1 ;//tab是否有效<br/>FCKConfig.ToolbarStartExpanded = true ;//编辑工具条是否出现，等点“展开工具栏”时才出现<br/>FCKConfig.FontNames &nbsp;= '宋体;黑体;隶书;楷体_GB2312;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;//添加中文字体<br/><br/>修改FCKeditor&#92;editor&#92;CSS&#92;fck_editorarea.css<br/>设置默认字体及大小<br/>body, td<br/>&#123;<br/>font-family: Arial, Verdana, Sans-Serif;<br/>font-size: 14px;<br/>&#125;<br/><br/>3关于文件上传的设置<br/><br/>修改fckconfig.js<br/>var _FileBrowserLanguage = 'php' ; // asp &#124; aspx &#124; cfm &#124; lasso &#124; perl &#124; php <br/>var _QuickUploadLanguage = 'php' ; // asp &#124; aspx &#124; cfm &#124; lasso &#124; php<br/><br/>修改fckeditor&#92;editor&#92;filemanager&#92;browser&#92;default&#92;connectors&#92;php&#92;config.php<br/>$Config['Enabled'] = true ;<br/>$Config['UserFilesPath'] = '/UserFiles/' ;//设置上传的文件夹，可自己指定<br/><br/>修改fckeditor&#92;editor&#92;filemanager&#92;upload&#92;php&#92;config.php<br/>$Config['Enabled'] = true ;<br/>$Config['UseFileType'] = true ;<br/>$Config['UserFilesPath'] = '/UserFiles/' ;//同上要一样<br/><br/>4引入在线编辑器时只需<br/><?php<br/>include("fckeditor/fckeditor.php") ;<br/>$oFCKeditor = new FCKeditor('FCKeditor1') ;//实例化<br/>$oFCKeditor->BasePath = 'fckeditor/';//这个路径一定要和上面那个引入路径一致，否则会报错:找不到fckeditor.html页面<br/>//$oFCKeditor->Value = '' ;<br/>$oFCKeditor->Width = '100%' ; <br/>$oFCKeditor->Height = '300' ; <br/>$oFCKeditor->Create() ;<br/>?><br/><br/>JS用alert( FCKeditorAPI.GetInstance('FCKeditor1').GetXHTML( true ))得到FCKeditor1的值；<br/>PHP用$_POST['FCKeditor1']得到FCKeditor1的值。<br/><br/>Tags - <a href="http://www.dzhope.com/tags/fck/" rel="tag">fck</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] PHP中使用FCKeditor2.3.2配置__教程]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>