MyOAExx/Scripts/js/jwysiwyg/jquery.wysiwyg.js
(开头部分) 50KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* WYSIWYG - jQuery plugin 0.97
* (0.97.2 - From infinity)
*
* Copyright (c) 2008-2009 Juan M Martinez, 2010-2011 Akzhan Abdulin and all contributors
* https://github.com/akzhan/jwysiwyg
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
/*jslint browser: true, forin: true */
(function ($) {
"use strict";
/* Wysiwyg namespace: private properties and methods */
var console = window.console ? window.console : {
log: $.noop,
error: function (msg) {
$.error(msg);
}
};
var supportsProp = (('prop' in $.fn) && ('removeProp' in $.fn)); // !(/^[01]\.[0-5](?:\.|$)/.test($.fn.jquery));
function Wysiwyg() {
this.controls = {
bold: {
groupIndex: 0,
visible: true,
tags: ["b", "strong"],
css: {
fontWeight: "bold"
},
tooltip: "Bold",
hotkey: {"ctrl": 1, "key": 66}
},
copy: {
groupIndex: 8,
visible: false,
tooltip: "Copy"
},
createLink: {
groupIndex: 6,
visible: true,
exec: function () {
var self = this;
if ($.wysiwyg.controls && $.wysiwyg.controls.link) {
$.wysiwyg.controls.link.init(this);
} else if ($.wysiwyg.autoload) {
$.wysiwyg.autoload.control("wysiwyg.link.js", function () {
self.controls.createLink.exec.apply(self);
});
} else {
console.error("$.wysiwyg.controls.link not defined. You need to include wysiwyg.link.js file");
}
后面还有 1946 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。