- In the introduction of an external framework/function, it is usually introduced into the CSS first, and then introduced JS. The necessary attributes of CSS are rel and href, and the necessary attributes of JS are charset and SRC. JS are all JavaScript, so the CSS and JS do not need to write type.
The K-indeditor version is 4.1.11, and its sample documents are not demo.html under the root directory, but rather demo.php files in the corresponding PHP/ASP/JSP directories based on the background language you use.
Kindeditor is written with JS, the textarea tag "hidden" replacement (camouflage) for a visible rich text edit box, that is: TextArea style to set the Visibility:hidden property.
The contents of the Rich Text editor box are then synced to the textarea via the sync () method, and the HTML page is then used by the. Val () method to get the value of the text box to submit.
Kindeditor This JS object is created after the introduction of kindeditor.js this file, Lang/zh_cn.js file is to provide Chinese support, that is, some symbols of Chinese comments.
Usually kindeditor need such 4 components: Kindediotr-min.js, a plug-in directory plugins (there are several main plug-ins, such as image,file, etc.), a theme directory themes (including several major themes, such as default, simple, common theme is good, mainly some pictures and CSS files, a language directory lang in the Zh_cn.js (note is underlined)
Ke in fact is very important and commonly used, in the background when adding articles, are used to format the Add. When uploading files, must have ke in the corresponding php upload file processing files, such as upload_json.php ...
Do not make some low-level errors on "writing errors". For example, function, such as script error, and so on.
To display the website logo icon in the Web tab,
<link rel="shortcut icon" href="__PUBLIC__/favicon.ico" type="image/x-icon" />
- What we can only see in the Web page, is only concerned about the content of the root directory of the site, so you only see the root of the site Directory "/", regardless of the directory on the real server machine real directory is where.
In the same paragraph, take a blank line, use two<br /> <br />
In the KE, to use its input form, including two parts: one is in the HTML to write the corresponding input form label <input type="button" name="getHtml" value="获得html" />
, and the other is to write the corresponding JS script in JS.
Ke's usage is similar to the use of jquery, using the keyword "k" capital of K in kindeditor.js defined in the function K, cannot be lowercase k. So when you initialize, you should write the uppercase K, the uppercase K is the static object passed in by Kindeditor.
// 函数中的变量e 是event 事件参数, 你可以不用K(‘input[name=getHtml]‘).click(function(e){ // 使用的是 jquery的语法. alert(editor.html());});
How to use kindeditor4.1.11