kindeditor/kindeditor.js
(开头部分) 135KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2010 Longhao Luo
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
* @version 3.5.1 (2010-07-18)
*******************************************************************************/
(function (undefined) {
var KE = {};
KE.version = '3.5.1 (2010-07-18)';
KE.scriptPath = (function() {
var elements = document.getElementsByTagName('script');
for (var i = 0, len = elements.length; i < len; i++) {
if (elements[i].src && elements[i].src.match(/kindeditor[\w\-\.]*\.js/)) {
return elements[i].src.substring(0, elements[i].src.lastIndexOf('/') + 1);
}
}
return '';
})();
KE.browser = (function() {
var ua = navigator.userAgent.toLowerCase();
return {
VERSION: ua.match(/(msie|firefox|webkit|opera)[\/:\s](\d+)/) ? RegExp.$2 : '0',
IE: (ua.indexOf('msie') > -1 && ua.indexOf('opera') == -1),
GECKO: (ua.indexOf('gecko') > -1 && ua.indexOf('khtml') == -1),
WEBKIT: (ua.indexOf('applewebkit') > -1),
OPERA: (ua.indexOf('opera') > -1)
};
})();
KE.setting = {
wyswygMode : true,
loadStyleMode : true,
resizeMode : 2,
filterMode : false,
autoSetDataMode : true,
shadowMode : true,
urlType : '',
skinType : 'default',
newlineTag : 'p',
dialogAlignType : 'page',
cssPath : '',
skinsPath : KE.scriptPath === '' ? '' : KE.scriptPath + 'skins/',
pluginsPath : KE.scriptPath === '' ? '' : KE.scriptPath + 'plugins/',
minWidth : 200,
minHeight : 100,
minChangeSize : 5,
toolbarLineHeight : 24,
statusbarHeight : 11,
items : [
'source', '|', 'fullscreen', 'undo', 'redo', 'print', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
后面还有 4382 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
