FreeTextBox(版本3.1.6)在ASP.Net 2.0中使用方法
更新时间:2009年11月15日 22:34:13 作者:
在ASP.Net 2.0中使用,只需要2个文件:FreeTextBox.DLL和ftb.imagegallery.aspx
1。下载最新版FreeTextBox(版本3.1.6),解压
FreeTextBox 3.1.6 (2007/10/17)
作者网站下载地址:http://freetextbox.com/download/
详细版本有哪些改进和修改历史可以看这里:http://freetextbox.com/download/changelog.aspx
FreeTextBox 3.1.6 (2006/07/18)
* BUG: Firefox postback problems (due to IE specific code)
* CHANGE: createlink now requires text to be selected
* BUG: FontSizesMenuList now functions correctly
* BUG: IE users would see the tag path of the entire document
* BUG: bug in FF vs. IE DOM handling of extra \n tag
Free版本的收费版本的区别可以看这里:http://freetextbox.com/features/
2。打开ASP.Net2.0项目,添加引用。(如果添加过以前版本的FreeTextBox,先删除以前版本的引用)
2.1。拷贝ftb.imagegallery.aspx到你要使用FreeTextBox的目录(当然可以是其他,但是可能要设置路径)
3。将FreeTextBox添加到工具栏。(工具栏〉常规〉选择项〉浏览到DLL文件,添加)
4。可以将工具栏上的控件拖入到你的页面了
<FTB:FreeTextBox ID="Free1" ImageGalleryPath="~/ImageAdmin"
runat="server" Text='<%# Bind("Contents") %>'
ButtonDownImage="True"
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">
FTB:FreeTextBox>
4.1。修改ImageGalleryPath属性为你图片的放置目录。
5。Q&A
5.1。Q:怎么不能新建目录,上传文件等?
A:修改ftb.imagegallery.aspx页面可以做到
<FTB:ImageGallery id="ImageGallery1"
SupportFolder="~/aspnet_client/FreeTextBox/"
AllowImageDelete="true" AllowImageUpload="true"
AllowDirectoryCreate="true" AllowDirectoryDelete="true" runat="Server" />
修改AllowImageDelete等属性
5.2。Q:怎么没有看到“从图片库插入图片”这个图标?
A:修改的ToolbarLayout属性,添加一个InsertImageFromGallery,上面代码的例子就是已经添加好的。
5.3。Q:按钮怎么是英文提示?
A:有个属性叫做Language,把默认的en-US改称zh-CN吧,就是中文简体了,听说这个版本带了25种语言呢。
asp.net 网页编辑器 FreeTextBox 3.2.2 简体中文版示例源码
https://www.jb51.net/codes/22580.html
FreeTextBox 3.1.6 (2007/10/17)
作者网站下载地址:http://freetextbox.com/download/
详细版本有哪些改进和修改历史可以看这里:http://freetextbox.com/download/changelog.aspx
FreeTextBox 3.1.6 (2006/07/18)
* BUG: Firefox postback problems (due to IE specific code)
* CHANGE: createlink now requires text to be selected
* BUG: FontSizesMenuList now functions correctly
* BUG: IE users would see the tag path of the entire document
* BUG: bug in FF vs. IE DOM handling of extra \n tag
Free版本的收费版本的区别可以看这里:http://freetextbox.com/features/
2。打开ASP.Net2.0项目,添加引用。(如果添加过以前版本的FreeTextBox,先删除以前版本的引用)
2.1。拷贝ftb.imagegallery.aspx到你要使用FreeTextBox的目录(当然可以是其他,但是可能要设置路径)
3。将FreeTextBox添加到工具栏。(工具栏〉常规〉选择项〉浏览到DLL文件,添加)
4。可以将工具栏上的控件拖入到你的页面了
复制代码 代码如下:
<FTB:FreeTextBox ID="Free1" ImageGalleryPath="~/ImageAdmin"
runat="server" Text='<%# Bind("Contents") %>'
ButtonDownImage="True"
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">
FTB:FreeTextBox>
4.1。修改ImageGalleryPath属性为你图片的放置目录。
5。Q&A
5.1。Q:怎么不能新建目录,上传文件等?
A:修改ftb.imagegallery.aspx页面可以做到
复制代码 代码如下:
<FTB:ImageGallery id="ImageGallery1"
SupportFolder="~/aspnet_client/FreeTextBox/"
AllowImageDelete="true" AllowImageUpload="true"
AllowDirectoryCreate="true" AllowDirectoryDelete="true" runat="Server" />
修改AllowImageDelete等属性
5.2。Q:怎么没有看到“从图片库插入图片”这个图标?
A:修改的ToolbarLayout属性,添加一个InsertImageFromGallery,上面代码的例子就是已经添加好的。
5.3。Q:按钮怎么是英文提示?
A:有个属性叫做Language,把默认的en-US改称zh-CN吧,就是中文简体了,听说这个版本带了25种语言呢。
asp.net 网页编辑器 FreeTextBox 3.2.2 简体中文版示例源码
https://www.jb51.net/codes/22580.html
相关文章
asp.net core标签助手的高级用法TagHelper+Form
这篇文章主要为大家详细介绍了asp.net core标签助手的高级用法TagHelper+Form,具有一定的参考价值,感兴趣的小伙伴们可以参考一下2017-07-07
ASP.NET MVC5网站开发之业务逻辑层的架构和基本功能(四)
这篇文章主要为大家详细介绍了ASP.NET MVC5网站开发之业务逻辑层的架构和基本功能,感兴趣的小伙伴们可以参考一下2016-08-08
asp.net中将js的返回值赋给asp.net控件的小例子
要做一个显示用户在线停留时间的功能,拖了一个label控件用于显示时间,而时间是通过js来实现的,现在要把js的返回值赋给label,方法如下:2013-03-03


最新评论