һ
 ע

QQ¼

ֻһٿʼ

ƼĶ

+
̳ WEBҳǰ뿪 ǰ̨ű

jquery޷ȡkindeditor༭textareaֵĽ취

[]
11680 websjy 2013-12-23 22:25:22
| ʾȫ¥
1F

ϵ½עᣬύѣø๦ܣϴزIJޣ

Ҫ ¼ ſػ鿴ûʺţע  

x
jspҳ棺
  1. <script>
  2.   KindEditor.ready(function(K) {
  3.    K.create('textarea[id="content2"]', {
  4.     cssPath : '${pageContext.request.contextPath}/resources/kindeditor/plugins/code/prettify.css',
  5.     uploadJson : '${pageContext.request.contextPath}/resources/kindeditor/jsp/upload_json.jsp',
  6.     fileManagerJson : '${pageContext.request.contextPath}/resources/kindeditor/jsp/file_manager_json.jsp',
  7.     afterBlur: function(){this.sync();//ûһ䣬ȡidΪcontentֵհ}
  8.    });
  9.    prettyPrint();
  10.   });
  11. </script>
  12. <textarea id="content textarea>
  13. <script type="text/javascript">
  14. $("#content").val();
  15. </script>
ƴ



afterBlur: function(){this.sync();
һãʧȥʱִ this.sync();
ͬKindEditorֵtextareaı
ٷĵͣ
sync()
༭õԭtextareaؼ
:
Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ
б

ֹ

²

̳¡ͼƬѷϴվԭתԻ,µİȨԭ
վַİȨ֪ͨǵĹԱ,Ա(Email:admin@websjy.com)ʱȡȨɾ
ܾκκʽڱ̳л񹲺͹ִ!

QQ| 42011102000510|Archiver|ֻ|Դ ( ICP14013341-1

GMT+8, 2018-1-17 04:58

Powered by Discuz! X3.2

ԴԴվ  ԴAPPӦ֮

ٻظ ض б