下载地址:http://www.51aspx.com/CV/OGOWR0LUYU096/
1:把Framework-2.0中的FreeTextBox.dll复制到自己项目中的bin
2:在工具栏中右建-选择项-添加控件 把bin目录中的FreeTextBox.dll
3:要引用控件时把控件拉出到需要的地方。(这样就自动添加引用了,如果要自己写就写成<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>)
再把<FTB:FreeTextBox ID="Free1" >里面的内容修改为:
<FTB:FreeTextBox ID="Free1"
ImageGalleryPath= "~/ImageAdmin"
runat="server" Text='<%# Bind("Contents") %>' ButtonDownImage="true"
ToolbarLayout=" ParagraphMenu, FontFacesMenu, FontSizesMenu, FontForeColorsMenu,FontBackColorsMenu, FontForeColorPicker, FontBackColorPicker,Bold, Italic, Underline,
Strikethrough, Superscript, Subscript, RemoveFormat| JustifyLeft, JustifyRight, JustifyCenter,
JustifyFull; BulletedList, NumberedList, Indent, Outdent; CreateLink, Unlink, InsertImage, Cut,
Copy, Paste, Delete, Undo, Redo, Print, Save| SymbolsMenu, StyleMenu, InsertHtmlMenu, InsertRule,
InsertDate, InsertTime,InsertTable, EditTable; InsertTableRowBefore, InsertTableRowAfter, InsertImageFromGallery, Preview, SelectAll, WordClean, EditStyle, ieSpellCheck">
</FTB:FreeTextBox>
使用逗号(,)隔开各项,分号(;)插入一个分隔线,竖线(|)将开始新的工具条。 ImageGalleryPath= "~/ImageAdmin"设置保存图片的地址。注意:如果没有,要进行新建。
按钮属性:
Bold 加粗
BulletedList 项目符号
Copy 复制
CreateLink 插入链接
Cut 剪切
Delete 删除
DeleteTableColumn 删除一列(En)
DeleteTableRow 删除一行(En)
IeSpellCheck IE拼写检查(En 需要安装拼写检查软件)
Indent 增加缩进
InsertDate 插入日期
InsertImage 插入图片
InsertRule 插入水平线(En)
InsertTable 插入表格(En)
InsertTableColumnAfter 插入表格列在后面(En)
InsertTableColumnBefore 插入表格列在前面(En)
InsertTableRowAfter 插入表格行在后面(En)
InsertTableRowBefore 插入表格行在前面(En)
InsertTime 插入时间
Italic 斜体
JustifyCenter 居中
JustifyFull 两端对齐
JustifyLeft 左对齐
JustifyRight 右对齐
NetSpell 网络拼写检查(En)
NumberedList 编号
Outdent 减少缩进
Paste 粘贴
Print 打印
Redo 重复
RemoveFormat 删除所有格式
Save 保存(En)
StrikeThrough 删除线
Subscript 下标
Superscript 上标
Underline 下划线
Undo 撤消
Unlink 删除链接
4:把aspnet_client ftb.imagegallery.aspx复制到跟所引用网站的同目录下。