读书人

怎么灵活调用FCKeditorV2控件

发布时间: 2011-12-22 23:36:25 作者: rapoo

如何灵活调用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']] ; 

读书人网 >asp.net

热点推荐