<?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>4's symfony blog &#187; fck</title>
	<atom:link href="http://www.foolbirds.com/t/fck/feed" rel="self" type="application/rss+xml" />
	<link>http://www.foolbirds.com</link>
	<description>all about symfony</description>
	<lastBuildDate>Fri, 14 Oct 2011 12:36:02 +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>FCK编辑器操作参数</title>
		<link>http://www.foolbirds.com/fck%e7%bc%96%e8%be%91%e5%99%a8%e6%93%8d%e4%bd%9c%e5%8f%82%e6%95%b0.html</link>
		<comments>http://www.foolbirds.com/fck%e7%bc%96%e8%be%91%e5%99%a8%e6%93%8d%e4%bd%9c%e5%8f%82%e6%95%b0.html#comments</comments>
		<pubDate>Wed, 04 Mar 2009 07:25:11 +0000</pubDate>
		<dc:creator>zhuozi</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[fck]]></category>

		<guid isPermaLink="false">http://www.foolbirds.com/?p=637</guid>
		<description><![CDATA[本来是计划用tinyMCE的，可是tinyMCE不支持文件上传，只好换成了FCK，可是发觉FCK有一点不是很方便，也可能是自己一直没有找到，设置的办法。
官方js中的配置
this.InstanceName	= instanceName ;
this.Width			= width			&#124;&#124; &#8216;100%&#8217; ;
this.Height			= height		&#124;&#124; &#8216;200&#8242; ;
this.ToolbarSet		= toolbarSet	&#124;&#124; &#8216;Default&#8217; ;
this.Value			= value			&#124;&#124; &#8221; ;
this.BasePath		= FCKeditor.BasePath ;
this.CheckBrowser	= true ;
this.DisplayErrors	= true ;
通过上面的设置我们可以发现，没有多语言这个选项，没有办法，只有修改源码的配置文件了。把下面显示自动检测浏览器的设置改为false，默认语言设置成自己想用的就可以了。
FCKconfig 配置文件主要内容
Save				: &#8220;保存&#8221;,
NewPage				: &#8220;新建&#8221;,
Preview				: &#8220;预览&#8221;,
Cut					: &#8220;剪切&#8221;,
Copy				: &#8220;复制&#8221;,
Paste				: &#8220;粘贴&#8221;,
PasteText			: &#8220;粘贴为无格式文本&#8221;,
PasteWord			: &#8220;从 MS Word 粘贴&#8221;,
Print				: &#8220;打印&#8221;,
SelectAll			: &#8220;全选&#8221;,
RemoveFormat		: &#8220;清除格式&#8221;,
InsertLinkLbl		: &#8220;超链接&#8221;,
InsertLink			: &#8220;插入/编辑超链接&#8221;,
RemoveLink			: &#8220;取消超链接&#8221;,
VisitLink			: &#8220;打开超链接&#8221;,
Anchor				: &#8220;插入/编辑锚点链接&#8221;,
AnchorDelete		: &#8220;清除锚点链接&#8221;,
InsertImageLbl		: &#8220;图象&#8221;,
InsertImage			: &#8220;插入/编辑图象&#8221;,
InsertFlashLbl		: &#8220;Flash&#8221;,
InsertFlash			: &#8220;插入/编辑 Flash&#8221;,
InsertTableLbl		: &#8220;表格&#8221;,
InsertTable			: &#8220;插入/编辑表格&#8221;,
InsertLineLbl		: &#8220;水平线&#8221;,
InsertLine			: &#8220;插入水平线&#8221;,
InsertSpecialCharLbl: &#8220;特殊符号&#8221;,
InsertSpecialChar	: &#8220;插入特殊符号&#8221;,
InsertSmileyLbl		: &#8220;表情符&#8221;,
InsertSmiley		: &#8220;插入表情图标&#8221;,
About				: [...]]]></description>
			<content:encoded><![CDATA[<p>本来是计划用tinyMCE的，可是tinyMCE不支持文件上传，只好换成了FCK，可是发觉FCK有一点不是很方便，也可能是自己一直没有找到，设置的办法。<br />
官方js中的配置<br />
this.InstanceName	= instanceName ;<br />
this.Width			= width			|| &#8216;100%&#8217; ;<br />
this.Height			= height		|| &#8216;200&#8242; ;<br />
this.ToolbarSet		= toolbarSet	|| &#8216;Default&#8217; ;<br />
this.Value			= value			|| &#8221; ;<br />
this.BasePath		= FCKeditor.BasePath ;<br />
this.CheckBrowser	= true ;<br />
this.DisplayErrors	= true ;<br />
通过上面的设置我们可以发现，没有多语言这个选项，没有办法，只有修改源码的配置文件了。把下面显示自动检测浏览器的设置改为false，默认语言设置成自己想用的就可以了。<br />
FCKconfig 配置文件主要内容<br />
Save				: &#8220;保存&#8221;,<br />
NewPage				: &#8220;新建&#8221;,<br />
Preview				: &#8220;预览&#8221;,<br />
Cut					: &#8220;剪切&#8221;,<br />
Copy				: &#8220;复制&#8221;,<br />
Paste				: &#8220;粘贴&#8221;,<br />
PasteText			: &#8220;粘贴为无格式文本&#8221;,<br />
PasteWord			: &#8220;从 MS Word 粘贴&#8221;,<br />
Print				: &#8220;打印&#8221;,<br />
SelectAll			: &#8220;全选&#8221;,<br />
RemoveFormat		: &#8220;清除格式&#8221;,<br />
InsertLinkLbl		: &#8220;超链接&#8221;,<br />
InsertLink			: &#8220;插入/编辑超链接&#8221;,<br />
RemoveLink			: &#8220;取消超链接&#8221;,<br />
VisitLink			: &#8220;打开超链接&#8221;,<br />
Anchor				: &#8220;插入/编辑锚点链接&#8221;,<br />
AnchorDelete		: &#8220;清除锚点链接&#8221;,<br />
InsertImageLbl		: &#8220;图象&#8221;,<br />
InsertImage			: &#8220;插入/编辑图象&#8221;,<br />
InsertFlashLbl		: &#8220;Flash&#8221;,<br />
InsertFlash			: &#8220;插入/编辑 Flash&#8221;,<br />
InsertTableLbl		: &#8220;表格&#8221;,<br />
InsertTable			: &#8220;插入/编辑表格&#8221;,<br />
InsertLineLbl		: &#8220;水平线&#8221;,<br />
InsertLine			: &#8220;插入水平线&#8221;,<br />
InsertSpecialCharLbl: &#8220;特殊符号&#8221;,<br />
InsertSpecialChar	: &#8220;插入特殊符号&#8221;,<br />
InsertSmileyLbl		: &#8220;表情符&#8221;,<br />
InsertSmiley		: &#8220;插入表情图标&#8221;,<br />
About				: &#8220;关于 FCKeditor&#8221;,<br />
Bold				: &#8220;加粗&#8221;,<br />
Italic				: &#8220;倾斜&#8221;,<br />
Underline			: &#8220;下划线&#8221;,<br />
StrikeThrough		: &#8220;删除线&#8221;,<br />
Subscript			: &#8220;下标&#8221;,<br />
Superscript			: &#8220;上标&#8221;,<br />
LeftJustify			: &#8220;左对齐&#8221;,<br />
CenterJustify		: &#8220;居中对齐&#8221;,<br />
RightJustify		: &#8220;右对齐&#8221;,<br />
BlockJustify		: &#8220;两端对齐&#8221;,<br />
DecreaseIndent		: &#8220;减少缩进量&#8221;,<br />
IncreaseIndent		: &#8220;增加缩进量&#8221;,<br />
Blockquote			: &#8220;块引用&#8221;,<br />
CreateDiv			: &#8220;新增 Div 标籤&#8221;,<br />
EditDiv				: &#8220;更改 Div 标籤&#8221;,<br />
DeleteDiv			: &#8220;删除 Div 标籤&#8221;,<br />
Undo				: &#8220;撤消&#8221;,<br />
Redo				: &#8220;重做&#8221;,<br />
NumberedListLbl		: &#8220;编号列表&#8221;,<br />
NumberedList		: &#8220;插入/删除编号列表&#8221;,<br />
BulletedListLbl		: &#8220;项目列表&#8221;,<br />
BulletedList		: &#8220;插入/删除项目列表&#8221;,<br />
ShowTableBorders	: &#8220;显示表格边框&#8221;,<br />
ShowDetails			: &#8220;显示详细资料&#8221;,<br />
Style				: &#8220;样式&#8221;,<br />
FontFormat			: &#8220;格式&#8221;,<br />
Font				: &#8220;字体&#8221;,<br />
FontSize			: &#8220;大小&#8221;,<br />
TextColor			: &#8220;文本颜色&#8221;,<br />
BGColor				: &#8220;背景颜色&#8221;,<br />
Source				: &#8220;源代码&#8221;,<br />
Find				: &#8220;查找&#8221;,<br />
Replace				: &#8220;替换&#8221;,<br />
SpellCheck			: &#8220;拼写检查&#8221;,<br />
UniversalKeyboard	: &#8220;软键盘&#8221;,<br />
PageBreakLbl		: &#8220;分页符&#8221;,<br />
PageBreak			: &#8220;插入分页符&#8221;,</p>
<p>Form			: &#8220;表单&#8221;,<br />
Checkbox		: &#8220;复选框&#8221;,<br />
RadioButton		: &#8220;单选按钮&#8221;,<br />
TextField		: &#8220;单行文本&#8221;,<br />
Textarea		: &#8220;多行文本&#8221;,<br />
HiddenField		: &#8220;隐藏域&#8221;,<br />
Button			: &#8220;按钮&#8221;,<br />
SelectionField	: &#8220;列表/菜单&#8221;,<br />
ImageButton		: &#8220;图像域&#8221;,</p>
<p>FitWindow		: &#8220;全屏编辑&#8221;,<br />
ShowBlocks		: &#8220;显示区块&#8221;,</p>
<p>FCKConfig.CustomConfigurationsPath = &#8221; ; // 自定义配置文件路径和名称<br />
FCKConfigFCKConfig.EditorAreaCSS = FCKConfig.BasePath + &#8216;css/fck_editorarea.css&#8217;; // 编辑区的样式表文件 FCKConfig.EditorAreaStyles = &#8221; ; // 编辑区的样式表风格<br />
FCKConfig.ToolbarComboPreviewCSS =&#8221;; //工具栏预览CSS<br />
FCKConfig.DocType = &#8221; ;//文档类型<br />
FCKConfig.BaseHref = &#8221;; // 相对链接的基地址<br />
FCKConfig.FullPage = false ; //是否允许编辑整个HTML文件,还是仅允许编辑BODY间的内容 FCKConfig.StartupShowBlocks = false ;//决定是否启用&#8221;显示模块&#8221;<br />
FCKConfig.Debug = false ;//是否开启调试功能<br />
FCKConfigFCKConfig.SkinPath = FCKConfig.BasePath + &#8217;skins/default/&#8217; ; //皮肤路径<br />
FCKConfig.PreloadImages=&#8230; //预装入的图片<br />
FCKConfigFCKConfig.PluginsPath = FCKConfig.BasePath + &#8216;plugins/&#8217; ; //插件路径<br />
<code><br />
FCKConfig.AutoDetectLanguage = true ; //是否自动检测语言<br />
FCKConfig.DefaultLanguage = 'zh-cn' ; //默认语言<br />
</code><br />
FCKConfig.ContentLangDirection = &#8216;ltr&#8217; ; //默认的文字方向,可选&#8221;ltr/rtl&#8221;,即从左到右或从右到左 FCKConfig.ProcessHTMLEntities = true ; //处理HTML实体<br />
FCKConfig.IncludeLatinEntities = true ; //包括拉丁文<br />
FCKConfig.IncludeGreekEntities = true ;//包括希腊文<br />
FCKConfig.ProcessNumericEntities = false ;//处理数字实体<br />
FCKConfig.AdditionalNumericEntities = &#8221; ; //附加的数字实体<br />
FCKConfig.FillEmptyBlocks = true ; //是否填充空块<br />
FCKConfig.FormatSource = true ; //在切换到代码视图时是否自动格式化代码<br />
FCKConfig.FormatOutput = true ; //当输出内容时是否自动格式化代码<br />
FCKConfig.FormatIndentator = &#8216; &#8216; ; //当在源码格式下缩进代码使用的字符<br />
FCKConfig.StartupFocus = false ; //开启时焦点是否到编辑器,即打开页面时光标是否停留在fckeditor上 FCKConfig.ForcePasteAsPlainText = false ; //是否强制粘贴为纯文件内容<br />
FCKConfig.AutoDetectPasteFromWord = true ; //是否自动探测从word粘贴文件,仅支持IE<br />
FCKConfig.ShowDropDialog = true ;//是否显示下拉菜单<br />
FCKConfig.ForceSimpleAmpersand = false ;//是否不把&#038;符号转换为XML实体<br />
FCKConfig.TabSpaces = 0 ;//按下Tab键时光标跳格数,默认值为零为不跳格<br />
FCKConfig.ShowBorders = true ;//合并边框<br />
FCKConfig.SourcePopup = false ;//弹出<br />
FCKConfig.ToolbarStartExpanded = true ;//启动fckeditor工具栏默认是否展开<br />
FCKConfig.ToolbarCanCollapse = true ;//是否允许折叠或展开工具栏<br />
FCKConfig.IgnoreEmptyParagraphValue = true ;//是否忽略空的段落值<br />
FCKConfig.FloatingPanelsZIndex = 10000 ;//浮动面板索引<br />
FCKConfig.HtmlEncodeOutput = false ;//是否将HTML编码输出<br />
FCKConfig.TemplateReplaceAll = true ;//是否替换所有模板<br />
FCKConfig.ToolbarLocation = &#8216;In&#8217; ;//工具栏位置, </p>
<h3  class="related_post_title">随机日志</h3><ul class="related_post"><li><a href="http://www.foolbirds.com/url-in-other-apps-one.html" title="怎么在app中构造其它app的链接(一)">怎么在app中构造其它app的链接(一)</a></li><li><a href="http://www.foolbirds.com/symfony-1-4-database-utf8.html" title="symfony 1.4 数据库 utf8设置">symfony 1.4 数据库 utf8设置</a></li><li><a href="http://www.foolbirds.com/1072.html" title="打鸟游戏修改版">打鸟游戏修改版</a></li><li><a href="http://www.foolbirds.com/vim-colors-schema.html" title="精选vim的配色">精选vim的配色</a></li><li><a href="http://www.foolbirds.com/about-upload-images-path.html" title="关于上传图片后显示上传图片的路径问题">关于上传图片后显示上传图片的路径问题</a></li><li><a href="http://www.foolbirds.com/git-show-version.html" title="git中使用$Id$显示版本号">git中使用$Id$显示版本号</a></li><li><a href="http://www.foolbirds.com/url-in-other-apps2.html" title="怎么在app中构造其它app的链接(二)">怎么在app中构造其它app的链接(二)</a></li><li><a href="http://www.foolbirds.com/%e4%bd%bf%e7%94%a8bit-ly%e7%9f%ad%e7%bd%91%e5%9d%80%e6%9c%8d%e5%8a%a1api%e7%ae%80%e5%8c%96url.html" title="使用Bit.ly短网址服务API简化URL">使用Bit.ly短网址服务API简化URL</a></li><li><a href="http://www.foolbirds.com/%e5%88%a4%e6%96%ad%e6%90%9c%e7%b4%a2%e5%bc%95%e6%93%8e%e7%88%ac%e8%99%ab.html" title="判断搜索引擎爬虫">判断搜索引擎爬虫</a></li><li><a href="http://www.foolbirds.com/symfony-cmd.html" title="symfony命令行详解">symfony命令行详解</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.foolbirds.com/fck%e7%bc%96%e8%be%91%e5%99%a8%e6%93%8d%e4%bd%9c%e5%8f%82%e6%95%b0.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

