freetextbox 1.6.3使用中的一点总结

来源:互联网 发布:汉堡妈日本代购 知乎 编辑:程序博客网 时间:2024/05/16 01:41

<FTB:FreeTextBox ID="ftbNewsItemContent" Width="100%" runat="server"  ButtonPath="../images/ftb/office2003/" HelperFilesPath="HelperFilesPath"  ImageGalleryPath="uploadFiles/admin/news"   ToolbarLayout="ParagraphMenu, FontFacesMenu, FontSizesMenu, FontForeColorsMenu,
 
FontBackColorsMenu, FontForeColorPicker, FontBackColorPicker|InsertImageFromGallery| Bold, Italic, Underline,Strikethrough| JustifyLeft, JustifyRight, JustifyCenter,JustifyFull; BulletedList, NumberedList, Indent, Outdent; CreateLink, Unlink, InsertImage| Cut,Copy, Paste, Delete, Undo, Redo" >
                        </FTB:FreeTextBox>

 

1.freetextbox中的许多功能都是通过HelperFilesPath文件夹下的三个文件来间接实现的ftb.colorpicker.aspx   ftb.imagegallery.aspx   ftb.inserttable.aspx

2 ImageGalleryPath="uploadFiles/admin"  指的是根目录下的uploadFiles/admin文件夹  HelperFilesPath="HelperFilesPath"指的是与本页面同级的目录下的HelperFilesPath,当然可以设成HelperFilesPath="~HelperFilesPath",以从根目录下提取对应的ftb.imagegallery.aspx文件,使用该文件中的代码上传文件(当然要通过对ftb中ImageGalleryPath的设置)

3.如果对于HelperFilesPath、ImageGalleryPath是动态属性值,则可放到程序中赋值

例如:

  protected void Page_Load(object sender, EventArgs e)
    {
       
     
         ftbConent.ImageGalleryPath = "uploadFiles/" + User.Identity.Name;
    }

4.即使不写ToolbarLayout的众多属性,绝大多数的工具栏按钮依然可以出现

 

其他信息可看我另一篇:http://blog.csdn.net/goodshot/article/details/8170034

 

原创粉丝点击