⑴ kindeditorh 上傳文件 asp版 怎麼設置
是kindeditor嗎,這個很好設置的呀,不知道你是哪裡不會設置呢
'文件保存目錄路徑
savePath
=
"../attached/"
'文件保存目錄URL
saveUrl
=
aspUrl
&
"../attached/"
上面這兩個默認是把上傳的圖片放到了編輯器所在文
件夾下了,
如果你想設置到根目錄下的upload下的話,你可以這樣的呀
'文件保存目錄路徑
savePath
=
"/upload/"
'文件保存目錄URL
saveUrl
=
"/upload/"
⑵ asp網頁kindeditor的調用,
看看你接受數據的頁面,是否request到數據了,另外一定要按照kindeditor文檔介紹或者DEMO里的格式去接收數據。
BTW,我沒用過kindeditor,但是我用過webeditor,我想他們的原理差不多。
⑶ 如何使用kindeditor插件
使用方法:
把解壓出來的 kindeditor 文件夾,放置到網站的根目錄中;注意,為了實現視頻顯示頁面位置不受限制同時不用改變視頻調用代碼,本插件文件引用均以相對跟目錄的絕對路徑,如果不放在根目錄,對應路徑需要全部修改,否則不能正常顯示;建議不要改動;
在發布文集頁面調用已加入視頻播放器插件的kindeditor,調用方法參照http://www.kindsoft.net/docs/usage.html 中的說明。如果自定義配置了輯器的工具欄的情況下,請務必在 items 加入 'insertfile',位置無要求;
如:
items : [
'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', '', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
'flash', 'media','insertVideo', 'insertfile', 'table', 'hr', 'emoticons', 'map', 'pagebreak',
'anchor', 'link', 'unlink', '|', 'about'
],
對於通過插件工具欄按鈕插入生成的代碼不要改動,均有其作用的;
在顯示文集頁面調用視頻播放器ckplayer;
<script charset="utf-8" src="/kindeditor/plugins/insertVideo/ckplayer/ckplayer.js"></script>
完成以上步驟即可,使用本插件。
⑷ kindeditor使用方法,求提供一下,基本的就行,謝謝!
使用方法
1、你要把所需的文件下載下來。把所需要的文件上傳到你的網站,接下來就是引用了。在需要顯示編輯器的位置添加textarea輸入框,注意ID在頁面中應該是唯一的。
2、在該HTML頁面添加以下腳本,第一個參數可用其它CSS選擇器,匹配多個textarea時只在第一個元素上載入編輯器。通過K.create函數的第二個參數,可以對編輯器進行配置,具體參數請參考 編輯器初始化參數 (官網有詳細介紹)。
3、如果你想獲得編輯器中的數據,可以用下面的代碼。
kindeditor(HTML可視化編輯器)
⑸ kindeditor使用方法,kindeditor怎麼設置長寬度
kindeditor的使用方法以及設置長寬度的方法如下:
首先下載kindeditor的以及和kindeditor相關的文件,如下圖所示:
⑹ asp網站後台里嵌入kindeditor在線編輯器問題
這樣包含進來肯定不行啊,你怎麼獲取表單的數據呢?
你可以去它的官網
查看使用方法,獲取相關幫助,
希望能幫助到你
⑺ kindeditor能做什麼好用嗎。主要想用於jsp
軟體介紹
KindEditor是一套開源的HTML可視化編輯器,主要用於讓用戶在網站上獲得所見即所得編輯效果,兼容IE、Firefox、Chrome、Safari、Opera等主流瀏覽器。KindEditor使用JavaScript編寫,可以無縫的於Java、.NET、PHP、ASP等程序接合。 KindEditor非常適合在CMS、商城、論壇、博客、Wiki、電子郵件等互聯網應用上使用,2006年7月首次發布2.0以來,KindEditor依靠出色的用戶體驗和領先的技術不斷擴大編輯器市場佔有率,目前在國內已經成為最受歡迎的編輯器之一。
3主要特點
1. 體積小,載入速度快,但功能十分豐富。2. 內置自定義range,完美地支持span標記。
3. 基於插件的方式設計,所有功能都是插件,增加自定義和擴展功能非常簡單。
4. 修改編輯器風格很容易,只需修改一個CSS文件。
5. 支持大部分主流瀏覽器,比如IE、Firefox、Safari、Chrome、Opera。
4使用說明
簡單使用方法
1. 下載KindEditor。下載地址在上邊
2. 解壓文件,並把所有文件上傳到您的網站程序目錄下,例如:http://你的域名/editor/。
3. 要添加編輯器的頁面頭部添加以下代碼,id為textarea控制項的ID。
-----------------------------------------------------------------------
<script type="text/javascript" charset="utf-8" src="/editor/kindeditor.js"></script>
<script type="text/javascript">
KE.show({id : 'content_1'});
</script>
-----------------------------------------------------------------------
4. 要顯示編輯器的位置添加TEXTAREA輸入框。
<textarea id="content_1" name="content" style="width:700px;height:300px;visibility:hidden;"></textarea>
<!-- 注意: 如果原來有TEXTAREA,屬性里只加id,width,height即可。 -->[2]
就是一款富文本編輯器 像編輯word一樣編輯你的網頁,當然有用的,在jsp裡面
⑻ net MVC 中怎麼使用kindeditor
Step 1. 下載KindEditor
首先到KindEditor官網下載(目前是4.1.7版本),解壓後刪除jsp、php、asp、examples文件夾,放入Asp.netMVC項目中的Scripts文件夾中。
Step 2. 添加HomeController
public class HomeController : Controller
{
//
// GET: /Home/
[ValidateInput(false)]
public ActionResult Index()
{
return View();
}
[ValidateInput(false)]
[HttpPost]
public ActionResult Index(string content)
{
ViewBag.Content = content;
return View();
}
}
注意ValidateInput特性設置為false,否則無法插入Html標記。
Step 3. 在視圖中加入KindEditor腳本
<script src="../../Scripts/kindeditor/kindeditor-min.js" type="text/javascript"></script>
<script type="text/javascript">
KindEditor.ready(function (K) {
var options = {
uploadJson: '../scripts/kindeditor/asp.net/upload_json.ashx',
fileManagerJson: '../scripts/kindeditor/asp.net/file_manager_json.ashx',
allowFileManager : true
};
window.editor = K.create('#content', options);
});
</script>
<h2>KindEditor4編輯器</h2>
@Html.Raw(@ViewBag.Content)
@using (Html.BeginForm())
{
<textarea id="content" name="content" style="width:700px;height:300px;"></textarea>
<input type="submit" value="提交" />
}
uploadJson和fileManagerJson設置值要注意路徑名稱
window.editor = K.create('#content', options);中的#content要與textarea標記的id一致
顯示輸出時,使用Html.Raw輔助方法才能正確顯示Html
Step 4. 引用LitJSON.dll
項目引用KindEditor/asp.net/bin目錄下的LitJSON.dll。
現在已經可以運行了。如果想要修改上傳文件大小的限制,必須修改upload_json.ashx程序中的maxSize以及修改項目的Web.Config,在<system.web>中加入諸如<httpRuntime maxRequestLength="20000000" executionTimeout="3600" />(此處限制上傳文件20MB)。上傳的文件放置在KindEditor/attached目錄下,如需修改,可分別在upload_json.ashx及file_manager_json.ashx中修改保存路徑。
⑼ kindeditor富文本編輯器怎麼用
kindeditor富文本編輯器的使用方法如下:
一、創建dynamic web project 項目名稱test_kindeditor
下載kindeditor.zip並解壓,將kindeditor文件夾拷貝到WebContent目錄
拷貝WebContent/kindeditor/jsp/lib下的jar包到WebContent/WEB-INF/lib下
jar包包括:commons-fileupload.jar、commons-io.jar、json_simple.jar
二、創建WebContent/index.jsp文件
將WebContent/kindeditor/jsp/demo.jsp內容拷貝進index.jsp
三、修改js和css的引用路徑,推薦使用相對路徑。
添加java語句:<%String path = request.getContextPath(); %>
path代表的就是項目根路徑。
⑽ 一個asp頁面如何調用多個kindeditor編輯器
每個多行文本框給加上個ID吧,最省事,多看人家的使用說明文檔,我敢這么說你根本沒有看或者沒用心看吧?
<textareaname="content"name="content"style="width:700px;height:400px;visibility:hidden;"></textarea>
我想再增加調用三個編輯框;如:
<textareaname="contenta"name="contenta"style="width:700px;height:400px;visibility:hidden;"></textarea>
<textareaname="contentb"name="contentb"style="width:700px;height:400px;visibility:hidden;"></textarea>
<textareaname="contentc"name="contentc"style="width:700px;height:400px;visibility:hidden;"></textarea>
vareditor1=K.create('#content,#contenta,#contentb,#contentc',{....}