<p> 寮曞叆鏂囦欢: </p> <pre class="prettyprint"> &lt;link rel="stylesheet" href="../themes/default/default.css" /&gt; &lt;script charset="utf-8" src="../kindeditor.js"&gt;&lt;/script&gt; &lt;script charset="utf-8" src="../lang/zh_CN.js"&gt;&lt;/script&gt; </pre> <p> JavaScript浠ｇ爜: </p> <pre class="prettyprint"> KindEditor.ready(function(K) { K.create('textarea[name="content"]', { allowFileManager : true }); }); </pre> <p> </p>

<p> 寮曞叆鏂囦欢: </p> <pre class="prettyprint"> &lt;link rel="stylesheet" href="../themes/default/default.css" /&gt; &lt;script charset="utf-8" src="../kindeditor.js"&gt;&lt;/script&gt; &lt;script charset="utf-8" src="../lang/zh_CN.js"&gt;&lt;/script&gt; </pre> <p> JavaScript浠ｇ爜: </p> <pre class="prettyprint"> KindEditor.ready(function(K) { K.create('textarea[name="content"]', { resizeType : 1, allowPreviewEmoticons : false, allowImageUpload : false, items : [ 'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline', 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|', 'emoticons', 'image', 'link'] }); }); </pre> <p> </p>
寮曞叆鏂囦欢: <pre class="prettyprint"> &lt;link rel="stylesheet" href="../themes/default/default.css" /&gt; </pre> JavaScript浠ｇ爜: <pre class="prettyprint"> KindEditor.loadScript('../kindeditor.js', function() { KindEditor.create('#tab2 textarea'); }); </pre> <p> </p>

JavaScript浠ｇ爜: <pre class="prettyprint"> KindEditor.ready(function(K) { // English: langType : 'en' // 绠€浣扑腑鏂? langType : 'zh_CN' // 绻侀珨涓枃: langType : 'zh_TW' K.create('textarea[name="content"]', { langType : 'en' }); }); </pre> <p> </p>
JavaScript浠ｇ爜: <pre class="prettyprint"> KindEditor.ready(function(K) { var editor = K.create('textarea[name="content"]', { readonlyMode : true }); // 璁剧疆鎴愬彧璇荤姸镐? K('#tab4 input[name=readonly]').click(function() { editor.readonly(); }); // 鍙栨秷鍙钟舵€? K('#tab4 input[name=cancel]').click(function() { editor.readonly(false); }); }); </pre> <p> </p>

JavaScript浠ｇ爜: <pre class="prettyprint"> KindEditor.ready(function(K) { // P鎹㈣: newlineTag : 'p' // BR鎹㈣: newlineTag : 'br' K.create('textarea[name="content"]', { newlineTag : 'br' }); }); </pre> <p> </p>
JavaScript浠ｇ爜: <pre class="prettyprint"> KindEditor.ready(function(K) { K.create('textarea[name="content"]', { afterChange : function() { K('#tab6 .word_count1').html(this.count()); K('#tab6 .word_count2').html(this.count('text')); } }); }); </pre> <p> </p>
镇ㄥ綋鍓嶈緭鍏ヤ简 0 涓枃瀛椼€傦纸瀛楁暟缁熻鍖呭惈HTML浠ｇ爜銆傦级
镇ㄥ綋鍓嶈緭鍏ヤ简 0 涓枃瀛椼€傦纸瀛楁暟缁熻鍖呭惈绾枃链€両MG銆丒MBED锛屼笉鍖呭惈鎹㈣绗︼紝IMG鍜孍MBED绠椾竴涓枃瀛椼€傦级
JavaScript浠ｇ爜: <pre class="prettyprint"> KindEditor.ready(function(K) { K.create('textarea[name="content"]', { filterMode : true }); }); </pre> <p> </p>

<p> 鍐呴儴杩炴帴锛?img border="0" src="../plugins/emoticons/images/0.gif" /><br /> 澶栭儴杩炴帴锛?img border="0" alt="" src="http://img1.cache.netease.com/img09/logo/logo.gif" /><br /> 鍐呴儴瓒呯骇杩炴帴锛?a href="demo-19.html" target="_blank">镣瑰向杩欓噷</a><br /> 澶栭儴瓒呯骇杩炴帴锛?a href="http://www.163.com/" target="_blank">镣瑰向杩欓噷</a><br /> </p> JavaScript浠ｇ爜: <pre class="prettyprint"> KindEditor.ready(function(K) { // URL淇濇寔涓嶅彉: urlType : '' // 鐩稿URL: urlType : 'relative' // 涓嶅甫鍩熷悕镄勭粷瀵筓RL: urlType : 'absolute' // 甯﹀烟鍚岖殑缁濆URL: urlType : 'domain' K.create('textarea[name="content"]', { urlType : '' }); }); </pre> <p> </p>

JavaScript浠ｇ爜: <pre class="prettyprint"> KindEditor.ready(function(K) { // 绠€鍗曢镙? themeType : 'simple' // 榛樿椋庢牸: themeType : 'default' K.create('textarea[name="content"]', { themeType : 'simple' }); }); </pre> <p> </p>