日期:2014-05-18  浏览次数:20462 次

如何灵活调用FCKeditorV2控件
我前几天用freetextbox,发现这控件蛮灵活的,在各个调用页面呈现不同的功能.现在改用FCKeditorV2,因为它功能更强大,但不灵活,调用它的页面只能呈现一个样式.不知有没有好的方法.
下面是freetextbox的调用,供参考. <FTB:FreeTextBox id="FreeTextBox1" runat="SErver" Width="99%" Height="300"
  StyleSheetUrl="sample.css" Theme="office12" Language ="zh-cn" BorderStyle ="Outset">  
  <FTB:ToolbarGroup Title="Font" >
  <FTB:ToolbarItem Name="ParagraphMenu" />
  <FTB:ToolbarItem Name="FontFacesList" />
  </FTB:ToolbarGroup>  
   
  </FTB:FreeTextBox> 
不知FCKeditorV2是如何实现的.

------解决方案--------------------
JScript code
FCKConfig.ToolbarSets["Default"] = [
    ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
    ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
    '/',
    ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
    ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
    ['Link','Unlink','Anchor'],
    ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
    '/',
    ['Style','FontFormat','FontName','FontSize'],
    ['TextColor','BGColor'],
    ['FitWindow','ShowBlocks','-','About']        // No comma for the last row.
] ;

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