CMS DesignerłFCKeditor̎g

CMS DesignerFCKeditor𗘗p邱Ƃł܂B
FCKeditoŕAHTML̃tH[vfb`HTMLGfB^ɕς邱ƂłI[v\[XJavascriptCuŁAFCKeditor̃CZX͈͓̗̔płΖŗp邱Ƃł܂BFrederico Caldeira Knabbenɂ http://www.fckeditor.net/ ŊJEzzĂ܂BFCKeditor̃CZXɂĂFCKeditor̃TCgipjKÃCZXɏ]ėpĉB

CMS DesignerFCKeditor{̂𓯍Ă܂̂ŁAFCKeditor̃TCgŐVł擾đgݍޕKv܂Bgݍ݂͊ȒPŁA_E[hzipt@CfkceditortH_ɓWJAfckconfig.jsɈꕔǋL邾łB

gݍݎ菇

(1) LTCgFCKeditor̍ŐVł_E[hĉB
@http://www.fckeditor.net/download
@
@̃t@CMĂ鎞_ł́AFCKeditor 2.6.3ŐVƂȂĂ܂B

(2) _E[hziptar.gzt@CWJA

@/cmsdesigner/fckeditor/
@
@̒ɃRs[ĉiǂ݂̂̃eLXgt@CtH_łjB
@̍ہAfckeditor.jstH_Ɋɑ݂܂A̓_~[̃t@Cł̂ŏ㏑ĉB
@
(3) fckconfig.jst@CGfB^ŊJāAL̏ꏊɒǋLĉB

FCKConfig.ToolbarSets["Basic"] = [
	['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;

L̏ꏊ̉ɁAȉǉĉB

// ---- CMS Designer settings start ----
FCKConfig.ToolbarSets["CMSD_Full"] = [
	['Source'],
	['Cut','Copy','Paste','PasteText','PasteWord'],
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
	'/',
	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
	['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
	['Link','Unlink','Anchor'],
	['Table','Rule','Smiley'],
	'/',
	['FontFormat','FontSize'],
	['TextColor','BGColor'],
	['FitWindow','ShowBlocks'] // No comma for the last row.
];

FCKConfig.ToolbarSets["CMSD_Simple"] = [
	['Bold','Italic','Underline'],
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
	['Link','Unlink'],
	['Undo','Redo'],
	'/',
	['FontSize','TextColor'],
	['Source']
];

FCKConfig.ToolbarSets["CMSD_Normal"] = [
	['Bold','Italic','Underline'],
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
	['Link','Unlink'],
	['Undo','Redo'],
	['Table','Smiley'],
	'/',
	['FontSize','TextColor','BGColor'],
	['Source','FitWindow']
];

// "CMSD_Normal", "CMSD_Simple", or "CMSD_Full"
FCKConfig.ToolbarSets["CMSD"] = FCKConfig.ToolbarSets["CMSD_Normal"];

// ---- CMS Designer setting end ----

@܂łłB

@L̃\[X́AFCKeditoŕuc[o[v̓e`Ă܂B
@
@ԍŌ̍sA

// "CMSD_Normal", "CMSD_Simple", or "CMSD_Full"
FCKConfig.ToolbarSets["CMSD"] = FCKConfig.ToolbarSets["CMSD_Normal"];

@̕A

// "CMSD_Normal", "CMSD_Simple", or "CMSD_Full"
FCKConfig.ToolbarSets["CMSD"] = FCKConfig.ToolbarSets["CMSD_Full"];

@A

// "CMSD_Normal", "CMSD_Simple", or "CMSD_Full"
FCKConfig.ToolbarSets["CMSD"] = FCKConfig.ToolbarSets["CMSD_Simple"];

@ɂ邱ƂŁAc[o[VvɂA@\ɂ肷邱Ƃł܂B
@̐ݒiCMSD_Normal,CMSD_Full,CMSD_Simplej́AAEfUC[NXŎ̑ÎłAKvɉăJX^}CYĒč\܂BFCKeditor̃TCg̐ipjǂŁAŕsvȃ{^ǉł܂BAACMS DesignerƂ̑AɒǉĈӖ̂{^͂قƂǂ܂iuTemplatesv@\ɂẮAݒ肪ʓ|łAĈlɂ͂߂łBڂFCKeditor̃TCgjB

@fckconfig.jsҏWăAbv[hĂAuEŨLbVɌÂ̂c܂܂ɂȂĂ܂̂ŁA̓sxAuEŨLbV폜悤ɂĉB


(4) ȏŏ͊łB
@ŁAtextareaڂFCKeditor𗘗p邱Ƃł܂B
@FCKeditor͑SĂtextareaڂɓKp̂ł͂ȂAoutput"html1"݂̂̂̂ɑ΂ĎIFCKeditorKp܂B
@
@b`GfB^Kptextareaڂɑ΂āAoutput"html1"ɂĉB

@A܂"html2"ڂ"html1"ɕύXƁAsĂ̂sȂȂ܂̂ŁAf[^ƂŉsĂKv܂BxsĂ܂ƁA"html2"ɖ߂ۂɓdɉs邱ƂɂȂ܂̂ŁA̍ڂ"html1"ɕύXۂɂ͂ӉB

gȗ΍
(1) html1ɂAωȂB
fckeditorAbv[hĂɂւ炸AωȂꍇAuEŨLbVɃ_~[fckeditor.jscĂ\܂BuEŨLbVNAĂēxB
LbVNAĂωȂꍇAfckeditor̃Rs[悪ԈĂ\܂Bgݍݎ菇ēxmFAu/cmsdesigner/fckeditorvtH_ɃRs[Ă邩mFB

(2) uFCKConfig.ToolbarSets["CMSD"]`Ă܂vƂG[oB
gݍݎ菇(3)sĂȂA̓Abv[hĂȂA̓uEŨLbVɌÂfckconfig.jscĂ\܂BǋLAbv[hsĂꍇɂ̓uEŨLbVNAĂēxB

2008N1118 AEfUC[NX