(转载)FreeTextBox工具条编辑教程

这样还不足够我们使用,最起码我们也应该能上传个图片啥的,默认情况下,FreeTextBox是没有这个按钮的,需要我们稍微的配置一下,就是在你刚刚引用FreeTextBox的地方,也就是

<form runat="server">

      <FTB:FreeTextBox

        ToolbarLayout="........"

        runat="Server" />

   </form>

看到了没,是不是多了个ToolbarLayout,你可以在这里填写:

ParagraphMenu, FontFacesMenu, FontSizesMenu, FontForeColorsMenu,

FontForeColorPicker, FontBackColorsMenu, FontBackColorPicker, Bold, Italic, Underline,

Strikethrough, Superscript, Subscript, InsertImageFromGallery, CreateLink, Unlink,

RemoveFormat, JustifyLeft, JustifyRight, JustifyCenter, JustifyFull, BulletedList,

NumberedList, Indent, Outdent, Cut, Copy, Paste, Delete, Undo, Redo, Print, Save,

ieSpellCheck, StyleMenu, SymbolsMenu, InsertHtmlMenu, InsertRule, InsertDate,

InsertTime, WordClean, InsertImage, InsertTable, EditTable, InsertTableRowBefore,

InsertTableRowAfter, DeleteTableRow, InsertTableColumnBefore, InsertTableColumnAfter,

DeleteTableColumn, InsertForm, InsertForm, InsertTextBox, InsertTextArea,

InsertRadioButton, InsertCheckBox, InsertDropDownList, InsertButton, InsertDiv,

InsertImageFromGallery, Preview, SelectAll, EditStyle

这么多种按钮,中间用可以用","(逗号)";"(分号)"|"(管道符)隔开,想知道有什么区别,嘿嘿,那就自己试吧...一般使用下面几个

        <FTB:FreeTextBox runat="server" ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage,InsertImageFromGallery,InsertRule|Cut,Copy,Paste;Undo,Redo,Print" Language="zh-CN" BreakMode="LineBreak" >         </FTB:FreeTextBox>


文章出处:http://www.diybl.com/course/4_webprogram/asp.net/asp_netshl/2008620/127012.html

posted @ 2008-10-21 10:55  冷风醉饮  阅读(615)  评论(0)    收藏  举报