kindeditor.options.filtermode = true直接在ajax裡面賦值;kindeditor.ready(function (k)
});});頁面
editore1.html(data[0]);你們自己可以擴充套件其他內容,這裡注意3點:
1點:
csspath: root + '/assets/global/plugins/kindeditor/plugins/code/prettify.css'這個我頁面的加上去了沒有用,還要這裡加乙個才ok;我也不知道,搜尋參考的,
2點:
type="hidden"
id="token_str2"
name=
"token_str2"
value="$
"
uploadjson: root + '/pics;jsessionid=' + $("#token_str2").val(),跳轉頁面時候
string token_str = request.getsession().getid();model.addattribute("token_str"
, token_str);批量上傳關鍵這裡的session,這是固定寫法;ok;我也不知道,搜尋參考的
3點:aftercreate: function () 這裡是將
kindeditor富文字內容給textarea文字域,你後台獲取的是textarea的內容而不是
kindeditor富文字內容
要不然你獲取的就是空「」,
注意:我的是bootstrap模版上model上使用富文字,文字框失效,這個我不知道怎麼去掉富文字的遮蔽,
有人說可以在model層彈出來後再載入富文字,關閉model層後又移除富文字,腦袋大啊,不知道怎麼搞。
以下是搜尋到的別人寫的,我無法移植:
//顯示modal $('#mymodal').modal('show');
//show完畢前執行 $('#mymodal').on('shown', function
() );
}) //
hide完畢前執行 $('#mymodal').on('hidden', function
() )
KindEditor簡單的Demo使用
一般的做 後台都會用到富文字編輯器,網上也有很多優秀的富文字編輯器,這裡是開源中國的富文字編輯器推薦 好了說了這麼進入正題 把這些檔案複製進入你的專案 對應的前台 c autoeventwireup true codebehind default.aspx.cs inherits kindeidto...
kindeditor使用方法
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!二 部署編輯器 ps 可以根據需求刪除以下目錄後上傳到伺服器。asp asp程式 asp.net asp.net程式 php php程式 examples 演示檔案 三 修改html頁面 1 在需要顯示編輯器的位置新增textarea輸入框 2 在...
kindeditor使用方法
分享一下我老師大神的人工智慧教程。零基礎!通俗易懂!風趣幽默!還帶黃段子!希望你也加入到我們人工智慧的隊伍中來!二 部署編輯器 ps 可以根據需求刪除以下目錄後上傳到伺服器。asp asp程式 asp.net asp.net程式 php php程式 examples 演示檔案 三 修改html頁面 ...