<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>H&#38;R &#187; fck</title>
	<atom:link href="http://www.humker.com/tag/fck/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.humker.com</link>
	<description>humker's blog 抱拥朝阳</description>
	<lastBuildDate>Sun, 15 Aug 2010 09:28:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>fckeditor2.6rc精简探讨</title>
		<link>http://www.humker.com/2008/03/30/fck26rc-lite/</link>
		<comments>http://www.humker.com/2008/03/30/fck26rc-lite/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 11:03:03 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[fck]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=36</guid>
		<description><![CDATA[一，使用js脚本压缩类似与zend optimizerfckeditor2.6rc核心JS代码的精简方法简述：用EmEditor打开核心JS代码的两个文件：fckeditor\editor\js\fckeditorcode_ie.jsfckeditor\editor\js\fckeditorcode_gecko.js先将两个文件的前面的/* &#8230; */注释删除然后打开&#8220;替换&#8221;对话框（或按Ctrl+H），打勾&#8220;正则表达式&#8221;，在&#8220;查找&#8221;文本框中输入：^(.)在&#8220;替换&#8221;文本框中输入：;\1再按&#8220;全部替换&#8221;按钮，完成替换后。Ctrl+A全选，Ctrl+C复制，然后打开下面的链接http://dean.edwards.name/packer/粘贴到上面的 Paste 文本框中，并打勾 Base62 encode ，然后按&#8220;Pack&#8221;按钮，稍等片刻，将 Copy 文本框的文本全选并粘贴回刚才的JS文件中，然后Ctrl+S保存！加密后代码执行速度有待考虑，自己本地感觉是慢了，是不是decode需要时间呢？
二，删除多余的table和if判断，去除不常用的功能，以减少代码体积。这是一个技术活，可以根本上减少核心代码
]]></description>
			<content:encoded><![CDATA[<p>一，使用js脚本压缩类似与zend optimizer<br />fckeditor2.6rc核心JS代码的精简方法简述：<br />用EmEditor打开核心JS代码的两个文件：<br />fckeditor\editor\js\fckeditorcode_ie.js<br />fckeditor\editor\js\fckeditorcode_gecko.js<br />先将两个文件的前面的/* &#8230; */注释删除<br />然后打开&ldquo;替换&rdquo;对话框（或按Ctrl+H），打勾&ldquo;正则表达式&rdquo;，<br />在&ldquo;查找&rdquo;文本框中输入：<br />^(.)<br />在&ldquo;替换&rdquo;文本框中输入：<br />;\1<br />再按&ldquo;全部替换&rdquo;按钮，完成替换后。Ctrl+A全选，Ctrl+C复制，然后打开下面的链接<br /><a href="http://dean.edwards.name/packer/" target="_blank">http://dean.edwards.name/packer/</a><br />粘贴到上面的 Paste 文本框中，并打勾 Base62 encode ，然后按&ldquo;Pack&rdquo;按钮，稍等片刻，将 Copy 文本框的文本全选并粘贴回刚才的JS文件中，然后Ctrl+S保存！<br />加密后代码执行速度有待考虑，自己本地感觉是慢了，是不是decode需要时间呢？</p>
<p>二，删除多余的table和if判断，去除不常用的功能，以减少代码体积。这是一个技术活，可以根本上减少核心代码</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/03/30/fck26rc-lite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ecms fck 半自动 实现图片上传插入</title>
		<link>http://www.humker.com/2008/03/28/ecms-fck-success/</link>
		<comments>http://www.humker.com/2008/03/28/ecms-fck-success/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 23:41:40 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>
		<category><![CDATA[fck]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=30</guid>
		<description><![CDATA[fck用php整合
php整合方法：1，下载官方的文件，include(&#34;fckeditor/fckeditor.php&#34;);//fck类加载$oFCKeditor = new FCKeditor(&#39;newstext&#39;) ;&#160; // 创建FCKeditor实例$oFCKeditor-&#62;BasePath = &#39;fckeditor/&#39;;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // 设置FCKeditor目录地址$FCKeditor-&#62;Width=&#39;100%&#39;;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //设置显示宽度$FCKeditor-&#62;Height=&#39;300px&#39;;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //设置显示高度的高度$oFCKeditor-&#62;Create() ;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // 创建编辑器2，需要修改部分文件fckeditor_php5.php文件中的// Render the linked hidden field下面的input改为textareafckeditor_php4.php也做相应修改3，利用sablog的启发，调用fck的api在addnews.php中加入下面的东西&#60;script&#62;//sablogfunction addhtml(newstext){&#160;var oEditor = FCKeditorAPI.GetInstance(&#39;newstext&#39;);&#160;if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG ) {&#160;&#160;oEditor.InsertHtml(newstext) ;&#160;} else {&#160;&#160;alert(&#39;请先转换到所见即所得模式&#39;) ;&#160;}}var smdirurl = &#39;http://localhost&#39;;//插入表情function insertsmiley(icon){&#160;addhtml(&#39;&#60;img src=&#34;&#39;+smdirurl+icon+&#39;&#34; border=&#34;0&#34; alt=&#34;&#34; /&#62;&#39;);}&#60;/script&#62;4，在html/1.php中的合适位置增加&#60;tr&#62;&#60;td&#62;图片插入工具：&#60;/td&#62;&#60;td&#62;&#160;&#60;img src=&#34;/images/smiles/angry.gif&#34; alt=&#34;&#34; onclick=&#34;javascript:insertsmiley(document.add.titlepic.value)&#34; /&#62;&#60;/td&#62;&#60;/tr&#62;5，做合适的修改，这是使用缩略图的对话框实现的，就是有些笨，用着还可以。
]]></description>
			<content:encoded><![CDATA[<p>fck用php整合</p>
<p>php整合方法：<br />1，下载官方的文件，<br />include(&quot;fckeditor/fckeditor.php&quot;);//fck类加载<br />$oFCKeditor = new FCKeditor(&#39;newstext&#39;) ;&nbsp; // 创建FCKeditor实例<br />$oFCKeditor-&gt;BasePath = &#39;fckeditor/&#39;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 设置FCKeditor目录地址<br />$FCKeditor-&gt;Width=&#39;100%&#39;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //设置显示宽度<br />$FCKeditor-&gt;Height=&#39;300px&#39;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //设置显示高度的高度<br />$oFCKeditor-&gt;Create() ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 创建编辑器<br />2，需要修改部分文件<br />fckeditor_php5.php文件中的<br />// Render the linked hidden field下面的input改为textarea<br />fckeditor_php4.php也做相应修改<br />3，利用sablog的启发，调用fck的api<br />在addnews.php中加入下面的东西<br />&lt;script&gt;<br />//sablog<br />function addhtml(newstext){<br />&nbsp;var oEditor = FCKeditorAPI.GetInstance(&#39;newstext&#39;);<br />&nbsp;if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG ) {<br />&nbsp;&nbsp;oEditor.InsertHtml(newstext) ;<br />&nbsp;} else {<br />&nbsp;&nbsp;alert(&#39;请先转换到所见即所得模式&#39;) ;<br />&nbsp;}<br />}<br />var smdirurl = &#39;http://localhost&#39;;<br />//插入表情<br />function insertsmiley(icon){<br />&nbsp;addhtml(&#39;&lt;img src=&quot;&#39;+smdirurl+icon+&#39;&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&#39;);<br />}<br />&lt;/script&gt;<br />4，在html/1.php中的合适位置增加<br />&lt;tr&gt;&lt;td&gt;图片插入工具：&lt;/td&gt;&lt;td&gt;<br />&nbsp;<br />&lt;img src=&quot;/images/smiles/angry.gif&quot; alt=&quot;&quot; onclick=&quot;javascript:insertsmiley(document.add.titlepic.value)&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;<br />5，做合适的修改，这是使用缩略图的对话框实现的，就是有些笨，用着还可以。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/03/28/ecms-fck-success/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fck完美整合ecms改动最小</title>
		<link>http://www.humker.com/2008/03/28/ecms-fck-integrate-simple/</link>
		<comments>http://www.humker.com/2008/03/28/ecms-fck-integrate-simple/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 23:35:40 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>
		<category><![CDATA[fck]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=33</guid>
		<description><![CDATA[4月1日，今天通过努力自己可以添加fck的按钮，当然是按钮直接连接到ecms的上传组件，经过了两三次js和php间的传值，特别麻烦，还是下面的外挂式整合来的轻松，这就是天使不在他的精简编辑器中不加入上传自己的原因，其中的漏洞也没有人知道。&#160;
参考了http://blog.csdn.net/flying_huang/archive/2007/03/23/1539206.aspxhttp://www.javaeye.com/topic/150487
在/html/1.php合适位置加入&#60;a onclick=&#34;window.open(&#39;editor/file.php?userid=&#60;?=$logininid?&#62;&#38;username=&#60;?=$loginin?&#62;&#38;rnd=&#60;?=$loginrnd?&#62;&#38;type=1&#38;classid=&#60;?=$classid?&#62;&#38;filepass=&#60;?=$filepass?&#62;&#39;,&#39;&#39;,&#39;width=700,height=550,scrollbars=yes&#39;);&#34; title=&#34;上传图片&#34;&#62;&#60;img src=&#34;editor/images/img.gif&#34; /&#62;&#60;/a&#62;&#60;a onclick=&#34;window.open(&#39;editor/file.php?userid=&#60;?=$logininid?&#62;&#38;username=&#60;?=$loginin?&#62;&#38;rnd=&#60;?=$loginrnd?&#62;&#38;type=2&#38;classid=&#60;?=$classid?&#62;&#38;filepass=&#60;?=$filepass?&#62;&#39;,&#39;&#39;,&#39;width=700,height=550,scrollbars=yes&#39;);&#34; title=&#34;上传FLASH&#34;&#62;&#60;img src=&#34;editor/images/flash.gif&#34; /&#62;&#60;/a&#62;&#60;a onclick=&#34;window.open(&#39;editor/file.php?userid=&#60;?=$logininid?&#62;&#38;username=&#60;?=$loginin?&#62;&#38;rnd=&#60;?=$loginrnd?&#62;&#38;type=0&#38;classid=&#60;?=$classid?&#62;&#38;filepass=&#60;?=$filepass?&#62;&#39;,&#39;&#39;,&#39;width=700,height=550,scrollbars=yes&#39;);&#34; title=&#34;上传附件&#34;&#62;&#60;img src=&#34;editor/images/file.gif&#34; /&#62;&#60;/a&#62;&#60;a onclick=&#34;window.open(&#39;editor/file.php?userid=&#60;?=$logininid?&#62;&#38;username=&#60;?=$loginin?&#62;&#38;rnd=&#60;?=$loginrnd?&#62;&#38;type=3&#38;classid=&#60;?=$classid?&#62;&#38;filepass=&#60;?=$filepass?&#62;&#39;,&#39;&#39;,&#39;width=700,height=550,scrollbars=yes&#39;);&#34; title=&#34;上传多媒体文件&#34;&#62;&#60;img src=&#34;editor/images/rm.gif&#34; /&#62;&#60;/a&#62;&#60;a onclick=&#34;window.open(&#39;editor/TranMore.php?userid=&#60;?=$logininid?&#62;&#38;username=&#60;?=$loginin?&#62;&#38;rnd=&#60;?=$loginrnd?&#62;&#38;type=1&#38;classid=&#60;?=$classid?&#62;&#38;filepass=&#60;?=$filepass?&#62;&#39;,&#39;&#39;,&#39;width=700,height=550,scrollbars=yes&#39;);&#34; title=&#34;上传多图片&#34;&#62;&#60;img src=&#34;editor/images/tranmoreimg.gif&#34; /&#62;&#60;/a&#62;
充分利用帝国自身的文件
在file.php加入function DoFile(html1){&#160;var oEditor = opener.FCKeditorAPI.GetInstance(&#39;newstext&#39;) ;&#160;&#160;&#160;&#160;&#160;oEditor.InsertHtml(html1); 
&#160;}function InsertFile(filename,fname,fileid,filesize,filetype,fileno,dotype){&#160;var vstr=&#34;&#34;;&#160;if(dotype!=undefined)&#160;{&#160;&#160;vstr=showModalDialog(&#34;popups/insertfile.php?ecms=&#34;+dotype+&#34;&#38;fname=&#34;+fname+&#34;&#38;fileid=&#34;+fileid+&#34;&#38;filesize=&#34;+filesize+&#34;&#38;filetype=&#34;+filetype+&#34;&#38;filename=&#34;+filename, &#34;&#34;, &#34;dialogWidth:45.5em; dialogHeight:27.5em; status:0&#34;);&#160;&#160;if(vstr==undefined)&#160;&#160;{&#160;&#160;&#160;return false;&#160;&#160;}&#160;&#160;&#160;&#160;}&#160;DoFile(vstr);
&#160;window.close();}
其他的参看其他帖子
]]></description>
			<content:encoded><![CDATA[<p>4月1日，今天通过努力自己可以添加fck的按钮，当然是按钮直接连接到ecms的上传组件，经过了两三次js和php间的传值，特别麻烦，还是下面的外挂式整合来的轻松，这就是天使不在他的精简编辑器中不加入上传自己的原因，其中的漏洞也没有人知道。&nbsp;</p>
<p>参考了<br /><a href="http://blog.csdn.net/flying_huang/archive/2007/03/23/1539206.aspx">http://blog.csdn.net/flying_huang/archive/2007/03/23/1539206.aspx</a><br /><a href="http://www.javaeye.com/topic/150487">http://www.javaeye.com/topic/150487</a></p>
<p>在/html/1.php合适位置加入<br />&lt;a onclick=&quot;window.open(&#39;editor/file.php?userid=&lt;?=$logininid?&gt;&amp;username=&lt;?=$loginin?&gt;&amp;rnd=&lt;?=$loginrnd?&gt;&amp;type=1&amp;classid=&lt;?=$classid?&gt;&amp;filepass=&lt;?=$filepass?&gt;&#39;,&#39;&#39;,&#39;width=700,height=550,scrollbars=yes&#39;);&quot; title=&quot;上传图片&quot;&gt;&lt;img src=&quot;editor/images/img.gif&quot; /&gt;&lt;/a&gt;&lt;a onclick=&quot;window.open(&#39;editor/file.php?userid=&lt;?=$logininid?&gt;&amp;username=&lt;?=$loginin?&gt;&amp;rnd=&lt;?=$loginrnd?&gt;&amp;type=2&amp;classid=&lt;?=$classid?&gt;&amp;filepass=&lt;?=$filepass?&gt;&#39;,&#39;&#39;,&#39;width=700,height=550,scrollbars=yes&#39;);&quot; title=&quot;上传FLASH&quot;&gt;&lt;img src=&quot;editor/images/flash.gif&quot; /&gt;&lt;/a&gt;&lt;a onclick=&quot;window.open(&#39;editor/file.php?userid=&lt;?=$logininid?&gt;&amp;username=&lt;?=$loginin?&gt;&amp;rnd=&lt;?=$loginrnd?&gt;&amp;type=0&amp;classid=&lt;?=$classid?&gt;&amp;filepass=&lt;?=$filepass?&gt;&#39;,&#39;&#39;,&#39;width=700,height=550,scrollbars=yes&#39;);&quot; title=&quot;上传附件&quot;&gt;&lt;img src=&quot;editor/images/file.gif&quot; /&gt;&lt;/a&gt;&lt;a onclick=&quot;window.open(&#39;editor/file.php?userid=&lt;?=$logininid?&gt;&amp;username=&lt;?=$loginin?&gt;&amp;rnd=&lt;?=$loginrnd?&gt;&amp;type=3&amp;classid=&lt;?=$classid?&gt;&amp;filepass=&lt;?=$filepass?&gt;&#39;,&#39;&#39;,&#39;width=700,height=550,scrollbars=yes&#39;);&quot; title=&quot;上传多媒体文件&quot;&gt;&lt;img src=&quot;editor/images/rm.gif&quot; /&gt;&lt;/a&gt;&lt;a onclick=&quot;window.open(&#39;editor/TranMore.php?userid=&lt;?=$logininid?&gt;&amp;username=&lt;?=$loginin?&gt;&amp;rnd=&lt;?=$loginrnd?&gt;&amp;type=1&amp;classid=&lt;?=$classid?&gt;&amp;filepass=&lt;?=$filepass?&gt;&#39;,&#39;&#39;,&#39;width=700,height=550,scrollbars=yes&#39;);&quot; title=&quot;上传多图片&quot;&gt;&lt;img src=&quot;editor/images/tranmoreimg.gif&quot; /&gt;&lt;/a&gt;</p>
<p>充分利用帝国自身的文件</p>
<p>在file.php加入<br />function DoFile(html1)<br />{&nbsp;var oEditor = opener.FCKeditorAPI.GetInstance(&#39;newstext&#39;) ;<br />&nbsp;<br />&nbsp;<br />&nbsp;<br />&nbsp;&nbsp;oEditor.InsertHtml(html1); </p>
<p>&nbsp;<br />}<br />function InsertFile(filename,fname,fileid,filesize,filetype,fileno,dotype){<br />&nbsp;var vstr=&quot;&quot;;<br />&nbsp;if(dotype!=undefined)<br />&nbsp;{<br />&nbsp;&nbsp;vstr=showModalDialog(&quot;popups/insertfile.php?ecms=&quot;+dotype+&quot;&amp;fname=&quot;+fname+&quot;&amp;fileid=&quot;+fileid+&quot;&amp;filesize=&quot;+filesize+&quot;&amp;filetype=&quot;+filetype+&quot;&amp;filename=&quot;+filename, &quot;&quot;, &quot;dialogWidth:45.5em; dialogHeight:27.5em; status:0&quot;);<br />&nbsp;&nbsp;if(vstr==undefined)<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;return false;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;<br />&nbsp;<br />&nbsp;}<br />&nbsp;DoFile(vstr);</p>
<p>&nbsp;window.close();<br />}</p>
<p>其他的参看其他帖子</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/03/28/ecms-fck-integrate-simple/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>fck完美整合ecms</title>
		<link>http://www.humker.com/2008/03/27/ecms-fck-integrate/</link>
		<comments>http://www.humker.com/2008/03/27/ecms-fck-integrate/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 12:06:59 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>
		<category><![CDATA[fck]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=32</guid>
		<description><![CDATA[突然想了一个问题，在fckeditor.html那动手加几个按钮，还真不如在1.html那里加，修改的文件最少，自己绕了一个大圈子。
呵呵。&#160;
还是有些问题，上传多图插不进去，涉及到帝国的核心库，发出来，WM肯定不让。其他的基本ok了，有问题跟帖使用的是ecms的上传组件，代码插入到fck编辑器中，有不符合xhtml标准的，涉及到帝国的核心库，没办法改。ecms开源后就可以改改了，那样就更个性化了。一，准备工作1,fck官方下载fckeditor2，删除fck一些没有用的文件，_samples，_source，filemanager（使用帝国的上传，故删除）文件夹3，将fck放在ecms的e/admin目录下二，修改必要的文件1，addnews.php头部&#8220;//html编辑器&#8221;至&#8220;//强制签发权限&#8221;之间注释或删除；页面开始位置加入include(&#34;fckeditor/fckeditor.php&#34;);2，修改e/data/html/1.php自己找到那个textarea修改为下面的东西&#60;textarea id=&#34;newstext&#34; name=&#34;newstext&#34; style=&#34;height: 30em; width: 100%;display:none;&#34;&#62;&#60;?=$ecmsfirstpost==1?&#34;&#34;:stripSlashes($newstext)?&#62;&#60;/textarea&#62;&#60;iframe id=&#34;newstext___Frame&#34;&#160;src=&#34;fckeditor/editor/fckeditor.php?InstanceName=newstext&#38;Toolbar=Default&#38;userid=&#60;?=$logininid?&#62;&#38;username=&#60;?=$loginin?&#62;&#38;rnd=&#60;?=$loginrnd?&#62;&#38;type=1&#38;classid=&#60;?=$classid?&#62;&#38;filepass=&#60;?=$filepass?&#62;&#34; &#160;&#160;&#160;&#160;&#160;&#160;&#160; width=&#34;100%&#34; height=&#34;600&#34; frameborder=&#34;0&#34; scrolling=&#34;no&#34;&#62;&#60;/iframe&#62;3，将fckeditor/editor/fckeditor.html后缀改为php，进行变量传递。4，修改fckeditor/editor/fckeditor.php，加按钮5，还有一些慢慢加,先放出来了三，第二步，你可以不用做，直接上传，覆盖文件。注意！！！如果你以前改过文件还是先备份。
&#160;帝国的坛子传不上去，现在这里放着，两天后删除。希望版主上传至帝国的坛子，自己这里是虚拟主机，带宽受不了。
下载：
http://www.humker.com/file_download/1/fck%E6%95%B4%E5%90%88%E5%B8%9D%E5%9B%BD.rar
]]></description>
			<content:encoded><![CDATA[<p>突然想了一个问题，在fckeditor.html那动手加几个按钮，还真不如在1.html那里加，修改的文件最少，自己绕了一个大圈子。</p>
<p>呵呵。&nbsp;</p>
<p>还是有些问题，上传多图插不进去，涉及到帝国的核心库，发出来，WM肯定不让。<br />其他的基本ok了，有问题跟帖<br />使用的是ecms的上传组件，代码插入到fck编辑器中，有不符合xhtml标准的，涉及到帝国的核心库，没办法改。ecms开源后就可以改改了，那样就更个性化了。<br />一，准备工作<br />1,fck官方下载fckeditor<br />2，删除fck一些没有用的文件，_samples，_source，filemanager（使用帝国的上传，故删除）文件夹<br />3，将fck放在ecms的e/admin目录下<br />二，修改必要的文件<br />1，addnews.php头部&ldquo;//html编辑器&rdquo;至&ldquo;//强制签发权限&rdquo;之间注释或删除；<br />页面开始位置加入include(&quot;fckeditor/fckeditor.php&quot;);<br />2，修改e/data/html/1.php<br />自己找到那个textarea修改为下面的东西<br />&lt;textarea id=&quot;newstext&quot; name=&quot;newstext&quot; style=&quot;height: 30em; width: 100%;display:none;&quot;&gt;&lt;?=$ecmsfirstpost==1?&quot;&quot;:stripSlashes($newstext)?&gt;&lt;/textarea&gt;<br />&lt;iframe id=&quot;newstext___Frame&quot;&nbsp;<br />src=&quot;fckeditor/editor/fckeditor.php?InstanceName=newstext&amp;Toolbar=Default&amp;userid=&lt;?=$logininid?&gt;&amp;username=&lt;?=$loginin?&gt;&amp;rnd=&lt;?=$loginrnd?&gt;&amp;type=1&amp;classid=&lt;?=$classid?&gt;&amp;filepass=&lt;?=$filepass?&gt;&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width=&quot;100%&quot; height=&quot;600&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;<br />&lt;/iframe&gt;<br />3，将fckeditor/editor/fckeditor.html后缀改为php，进行变量传递。<br />4，修改fckeditor/editor/fckeditor.php，加按钮<br />5，还有一些慢慢加,先放出来了<br />三，第二步，你可以不用做，直接上传，覆盖文件。注意！！！如果你以前改过文件还是先备份。</p>
<p>&nbsp;帝国的坛子传不上去，现在这里放着，两天后删除。希望版主上传至帝国的坛子，自己这里是虚拟主机，带宽受不了。</p>
<p>下载：</p>
<p><a href="http://www.humker.com/file_download/1/fck&aelig;&acute;&aring;&aring;&cedil;&aring;&frac12;.rar">http://www.humker.com/file_download/1/fck%E6%95%B4%E5%90%88%E5%B8%9D%E5%9B%BD.rar</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/03/27/ecms-fck-integrate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FCKeditor的工具栏调用</title>
		<link>http://www.humker.com/2008/03/07/fck-iframe/</link>
		<comments>http://www.humker.com/2008/03/07/fck-iframe/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 21:56:17 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[fck]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=17</guid>
		<description><![CDATA[FCKeditor的工具栏调用限制的探讨]]></description>
			<content:encoded><![CDATA[<p>是用FCKeditor后可以发现实际上是产生了一个iframe<br />而这个iframe指向一个FCK组件的html地址<br />如果不使用对象方式来产生fck编辑器，而是仿造iframe及上面的写法也是可以产生FCK编辑器的<br />但是这样一来，对用户设置的限制工具栏的作用就没有了<br />按照下面的方式调用<br />&lt;iframe id=&quot;FCKeditor1___Frame&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; src=&quot;/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&amp;Toolbar=Default&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; width=&quot;100%&quot; height=&quot;200&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;<br />&lt;/iframe&gt;<br />可以获得所有的工具栏</p>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/03/07/fck-iframe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fck整合ecms的考虑</title>
		<link>http://www.humker.com/2008/02/26/fck-ecms/</link>
		<comments>http://www.humker.com/2008/02/26/fck-ecms/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 16:22:10 +0000</pubDate>
		<dc:creator>humker</dc:creator>
				<category><![CDATA[整站程序]]></category>
		<category><![CDATA[ecms]]></category>
		<category><![CDATA[fck]]></category>

		<guid isPermaLink="false">http://www.humker.com/?p=7</guid>
		<description><![CDATA[fck整合ecms的考虑]]></description>
			<content:encoded><![CDATA[<p>&nbsp;将ecms中的AddNews.php的</p>
<p>&ldquo;//html编辑器&rdquo;和&ldquo;//强制签发权限&rdquo;中的部分注释掉</p>
<p>就是用/**/括起来</p>
<p>找到&lt;/head&gt;在他的上面加上</p>
<p>&lt;!&#8211;fck&#8211;&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;/e/admin/fckeditor/fckeditor.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot;&gt;<br />window.onload = function()<br />{<br />var oFCKeditor = new FCKeditor( &#39;newstext&#39; ) ;<br />oFCKeditor.BasePath = &quot;/e/admin/fckeditor/&quot; ;<br />oFCKeditor.ReplaceTextarea() ;<br />}<br />&lt;/script&gt;<br />&lt;!&#8211;/fck&#8211;&gt;</p>
<p>这就ok了</p>
<p>还有就是将fck放到admin文件夹下，注意fck有自己的上传组件，我对他们还没有验证的控制，可以自己删除，随后我会处理。</p>
<p>本整合只是js整合</p>
<p>下载地址</p>
<h3>FCKeditor 2.5.1 (Latest Stable)</h3>
<p>
<table border="0" width="450" align="center">
<tbody>
<tr>
<td>
<div style="margin-left: 40px">ZIP File (source code included):</div>
</td>
<td><a href="http://sourceforge.net/project/downloading.php?group_id=75348&amp;filename=FCKeditor_2.5.1.zip" target="_blank">FCKeditor_2.5.1.zip</a></td>
</tr>
<tr>
<td>
<div style="margin-left: 40px">GZip File (source code included):</div>
</td>
<td><a href="http://sourceforge.net/project/downloading.php?group_id=75348&amp;filename=FCKeditor_2.5.1.tar.gz" target="_blank">FCKeditor_2.5.1.tar.gz</a></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>下面的比较简单阿js整合</p>
<p><strong>&nbsp;<a href="http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Integration/JavaScript">http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Integration/JavaScript</a></strong></p>
<p><strong>1加载fck</strong></p>
<p>&lt;script type=&quot;text/javascript&quot; src=&quot;fckeditor/fckeditor.js&quot;&gt;&lt;/script&gt;</p>
<p><strong>2调用&nbsp;</strong></p>
<p><strong>The TEXTAREA replacement method</strong>: </p>
<p>In &lt;HEAD&gt; add the &quot;onload&quot; method: </p>
<pre>&lt;script type=&quot;text/javascript&quot;&gt; window.onload = function() { var oFCKeditor = new FCKeditor( &#39;MyTextarea&#39; )&nbsp;; oFCKeditor.BasePath = &quot;/fckeditor/&quot;&nbsp;; oFCKeditor.ReplaceTextarea()&nbsp;; } &lt;/script&gt; </pre>
<p>In &lt;BODY&gt; add the below code to replace an existing TEXTAREA in the page: </p>
<pre>&lt;textarea id=&quot;MyTextarea&quot; name=&quot;MyTextarea&quot;&gt;This is &lt;b&gt;the&lt;/b&gt; initial value.&lt;/textarea&gt; </pre>
<pre>今天试验了一下php整合，改了一点代码成功了。</pre>
<pre>工具栏添加，找到一篇好文章。</pre>
<pre><a href="http://www.javaeye.com/topic/150487"><strong>http://www.javaeye.com/topic/150487</strong></a></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.humker.com/2008/02/26/fck-ecms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
