xheditor編輯器上傳功能實現
今天幫一個CSDN上的童鞋解決該問題,還是簡單總結一下吧,主要是需要的一些檔案,這裡已整理上傳到CSDN資源中(0分下載)。
1、xheditor檔案下載
http://download.csdn.net/detail/taomanman/3574826
下載後放在根目錄下
2、上傳配置檔案下載
http://download.csdn.net/detail/taomanman/3779192
(PS:
upload.aspx檔案中如下行程式碼 string attachdir ="../upload";//是上傳路徑,根據實際引用xheditor的頁面位置,要進行相應的修改,要不然無法找到位置。
)
也放在根目錄下吧
3、在需要的頁面上,引用相應的js檔案
<head runat="server">
...
<script src="xheditor-1.1.9/jquery/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="xheditor-1.1.9/xheditor_plugins/ubb.min.js" type="text/javascript"></script>
<script src="xheditor-1.1.9/xheditor-1.1.9-zh-cn.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$('#tbtmpContent').xheditor({
upLinkUrl: "upload.aspx", upLinkExt: "zip,rar,txt",
upImgUrl: "upload.aspx", upImgExt: "jpg,jpeg,gif,png,bmp",
upFlashUrl: "upload.aspx", upFlashExt: "swf",
upMediaUrl: "upload.aspx", upMediaExt: "wmv,avi,wma,mp3,mid",
shortcuts: { 'ctrl+enter': submitForm }
});
});
function submitForm() { $('#form1').submit(); }
</script>
</head>
<body>
<form id="form1" method="post" runat="server" enctype="multipart/form-data">
<asp:TextBox ID="tbtmpContent" TextMode="MultiLine" BorderWidth="0" runat="server" Width="100%" Height="383px"></asp:TextBox>
</form>
</body>
相關文章
- springboot整合百度富文字編輯器ueditor實現圖片上傳和檔案上傳功能Spring Boot
- .net web core 如何編碼實現檔案上傳功能Web
- 使用CodeMirror實現Python3線上編輯器Python
- 協同編輯功能實現原理概述
- Qt中文字編輯器實現語法高亮功能(Qscitinlla)QT
- 檔案上傳之解析漏洞編輯器安全
- Quill編輯器實現原理初探UI
- SpringCloudGateway閘道器服務實現檔案上傳功能SpringGCCloudGateway
- onethink,怎麼delete編輯器上傳的圖片delete
- monaco-editor 實現SQL編輯器SQL
- Mac電腦上實用的字型編輯器Mac
- 自定義檔案上傳功能實現方法
- 【node】檔案上傳功能簡易實現
- node+express實現圖片上傳功能Express
- SpringBoot實現檔案上傳功能詳解Spring Boot
- 使用Spring Boot實現檔案上傳功能Spring Boot
- 10分鐘實現Typora(markdown)編輯器
- markdown編輯器typora本地圖片上傳到自己的伺服器地圖伺服器
- 程式碼線上編譯器(上)- 編輯及編譯編譯
- 富文字編輯器Quill(二)上傳圖片與視訊UI
- js-xlsx + handsontable + echarts實現excel上傳編輯然後顯示成圖表JSEchartsExcel
- CodeRunner for Mac(多功能程式碼編輯器)Mac
- [文件教程]解決sae下編輯器圖片上傳問題
- iOS使用UITableView實現的富文字編輯器iOSUIView
- TensorFlow上實現AutoEncoder自編碼器
- Keras上實現AutoEncoder自編碼器Keras
- 線上富文字編輯器初探
- 編輯功能-載荷裡空欄位沒有傳
- 多功能影片編輯器:Apeaksoft Video Editor for MacIDEMac
- FotoJet Photo Editor Mac(多功能照片編輯器)Mac
- 實時程式碼編輯器
- mac上哪裡pdf編輯器好用?Mac
- 線上程式碼編輯器選型
- 富文字編輯器CKeditor的配置和圖片上傳,看完不後悔
- 教你如何實現c#檔案上傳下載功能C#
- 前端頁面上實現表單提交檔案上傳功能前端
- CentOS 8上安裝GCC實現開發編譯功能CentOSGC編譯
- 簡單的低開編輯器(二):實現元件拖拽元件
- ThreeJs-07操控物體實現傢俱編輯器JS