WebRoot/admin/assets/plugins/summernote/js/summernote.js
(开头部分) 115KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* Super simple wysiwyg editor on Bootstrap v0.5.2
* http://hackerwins.github.io/summernote/
*
* summernote.js
* Copyright 2013 Alan Hong. and outher contributors
* summernote may be freely distributed under the MIT license./
*
* Date: 2014-05-05T12:16Z
*/
(function (factory) {
/* global define */
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery', 'codemirror'], factory);
} else {
// Browser globals: jQuery, CodeMirror
factory(window.jQuery, window.CodeMirror);
}
}(function ($, CodeMirror) {
if ('function' !== typeof Array.prototype.reduce) {
/**
* Array.prototype.reduce fallback
*
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce
*/
Array.prototype.reduce = function (callback, optInitialValue) {
var idx, value, length = this.length >>> 0, isValueSet = false;
if (1 < arguments.length) {
value = optInitialValue;
isValueSet = true;
}
for (idx = 0; length > idx; ++idx) {
if (this.hasOwnProperty(idx)) {
if (isValueSet) {
value = callback(value, this[idx], idx, this);
} else {
value = this[idx];
isValueSet = true;
}
}
}
if (!isValueSet) {
throw new TypeError('Reduce of empty array with no initial value');
}
return value;
};
}
/**
* Object which check platform and agent
*/
var agent = {
bMac: navigator.appVersion.indexOf('Mac') > -1,
bMSIE: navigator.userAgent.indexOf('MSIE') > -1 || navigator.userAgent.indexOf('Trident') > -1,
bFF: navigator.userAgent.indexOf('Firefox') > -1,
jqueryVersion: parseFloat($.fn.jquery),
后面还有 3537 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。