<p> ¼dòK?óc?Åw: </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ÒW¢ï?: </p> <pre class="prettyprint"> KindEditor.ready(function(K) { K.create('textarea[name="content"]', { allowFileManager : true }); }); </pre> <p> </p>

<p> ¼dòK?óc?Åw: </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ÒW¢ï?: </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>
¼dòK?óc?Åw: <pre class="prettyprint"> &lt;link rel="stylesheet" href="../themes/default/default.css" /&gt; </pre> JavaScriptÒW¢ï?: <pre class="prettyprint"> KindEditor.loadScript('../kindeditor.js', function() { KindEditor.create('#tab2 textarea'); }); </pre> <p> </p>

JavaScriptÒW¢ï?: <pre class="prettyprint"> KindEditor.ready(function(K) { // English: langType : 'en' // ßX£áÒF¼³µÆóc? langType : 'zh_CN' // ãeË¶Ò»®þüeÌã: langType : 'zh_TW' K.create('textarea[name="content"]', { langType : 'en' }); }); </pre> <p> </p>
JavaScriptÒW¢ï?: <pre class="prettyprint"> KindEditor.ready(function(K) { var editor = K.create('textarea[name="content"]', { readonlyMode : true }); // æ¦¼@Ã¦ñiáÂÑ{æ¢¸§?Âî? K('#tab4 input[name=readonly]').click(function() { editor.readonly(); }); // îíÑïÖÇîíú©ýYÄÁ²ë£á? K('#tab4 input[name=cancel]').click(function() { editor.readonly(false); }); }); </pre> <p> </p>

JavaScriptÒW¢ï?: <pre class="prettyprint"> KindEditor.ready(function(K) { // P?¥|‘i: newlineTag : 'p' // BR?¥|‘i: newlineTag : 'br' K.create('textarea[name="content"]', { newlineTag : 'br' }); }); </pre> <p> </p>
JavaScriptÒW¢ï?: <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 ®þú§ÌãÃsÝô£á?¯ÈÃsÝçáøºý?ü~îÑ?Õ]HTMLÒW¢ï?ä±?¯Å
Âí£¶??á¬?îã?Â² 0 ®þú§ÌãÃsÝô£á?¯ÈÃsÝçáøºý?ü~îÑ?Õ]ºíý¦ÌãÃìûÃ£á?MGä±?MBEDëæÉÖÓGîÑ?Õ]?¥|‘iÚû¡lÓQIMGîÕ÷ÕMBEDßX??®þú§ÌãÃsÝô£á?¯Å
JavaScriptÒW¢ï?: <pre class="prettyprint"> KindEditor.ready(function(K) { K.create('textarea[name="content"]', { filterMode : true }); }); </pre> <p> </p>

<p> îØËæñëâYÏ´ÕFëæ?img border="0" src="../plugins/emoticons/images/0.gif" /><br /> ¿GÑæñëâYÏ´ÕFëæ?img border="0" alt="" src="http://img1.cache.netease.com/img09/logo/logo.gif" /><br /> îØËæñëÅÐËéÀbâYÏ´ÕFëæ?a href="demo-19.html" target="_blank">ôïºÀ¦VâYø¬éF</a><br /> ¿GÑæñëÅÐËéÀbâYÏ´ÕFëæ?a href="http://www.163.com/" target="_blank">ôïºÀ¦VâYø¬éF</a><br /> </p> JavaScriptÒW¢ï?: <pre class="prettyprint"> KindEditor.ready(function(K) { // URL²NéìØÓ®þ?åv: urlType : '' // öa½ZýWURL: urlType : 'relative' // ®þ?¨j??Ñ©ôð??ô\?RL: urlType : 'absolute' // Ú¬¡t·ÏÁí¹òÕÚºýåýýWURL: urlType : 'domain' K.create('textarea[name="content"]', { urlType : '' }); }); </pre> <p> </p>

JavaScriptÒW¢ï?: <pre class="prettyprint"> KindEditor.ready(function(K) { // ßX£áîà?’°Ãñ? themeType : 'simple' // ºdéÍü£ÙÊÎ·Ò~: themeType : 'default' K.create('textarea[name="content"]', { themeType : 'simple' }); }); </pre> <p> </p>