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版本的收費版本的區(qū)別可以看這里:http://freetextbox.com/features/
2。打開ASP.Net2.0項目,添加引用。(如果添加過以前版本的FreeTextBox,先刪除以前版本的引用)
2.1??截恌tb.imagegallery.aspx到你要使用FreeTextBox的目錄(當然可以是其他,但是可能要設置路徑)
3。將FreeTextBox添加到工具欄。(工具欄〉常規(guī)〉選擇項〉瀏覽到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 簡體中文版示例源碼
http://www.dbjr.com.cn/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版本的收費版本的區(qū)別可以看這里:http://freetextbox.com/features/
2。打開ASP.Net2.0項目,添加引用。(如果添加過以前版本的FreeTextBox,先刪除以前版本的引用)
2.1??截恌tb.imagegallery.aspx到你要使用FreeTextBox的目錄(當然可以是其他,但是可能要設置路徑)
3。將FreeTextBox添加到工具欄。(工具欄〉常規(guī)〉選擇項〉瀏覽到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 簡體中文版示例源碼
http://www.dbjr.com.cn/codes/22580.html
相關文章
如何處理ASP.NET Core中HTML5客戶端路由回退的問題
這篇文章主要給大家介紹了關于如何處理ASP.NET Core中HTML5客戶端路由回退的相關資料,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧。2017-11-11Asp.net中安全退出時清空Session或Cookie的實例代碼
網站中點擊退出,如果僅僅是重定向到登錄/出頁面,此時在瀏覽器地址欄中輸入登錄后的某個頁面地址如主頁,你會發(fā)現不用登錄就能訪問,這種退出并不安全了,下面通過本文給大家介紹安全退出時清空Session或Cookie的實例代碼2016-11-11Asp.Net網站優(yōu)化系列之數據庫的優(yōu)化措施與索引優(yōu)化方法
索引的作用就類似于書的目錄,書的目錄會按照章節(jié)的順序排列,會指想某一張的位置。這樣如果在一本數百頁的書里面查找某個章節(jié)位置的時候,我們就可以只掃描書的目錄,掃描的范圍縮小了n倍,查詢的效率自然就提高了。2010-06-06