WebRoot/frame/js/form/CLEditor/images/jquery.cleditor.table.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
@preserve CLEditor Table Plugin v1.0
http://premiumsoftware.net/cleditor
requires CLEditor v1.2 or later
Copyright 2010, Chris Landowski, Premium Software, LLC
Dual licensed under the MIT or GPL Version 2 licenses.
*/
// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
// @output_file_name jquery.cleditor.table.min.js
// ==/ClosureCompiler==
(function($) {
// ● Define the table button
$.cleditor.buttons.table = {
name: "table",
image: "table.gif",
title: "Insert Table",
command: "inserthtml",
popupName: "table",
popupClass: "cleditorPrompt",
popupContent:
"<table cellpadding=0 cellspacing=0><tr>" +
"<td>Cols:<br><input type=text value=4 size=6></td>" +
"<td>Rows:<br><input type=text value=4 size=6></td>" +
"</tr></table><input type=button value=Submit>",
buttonClick: tableButtonClick
};
// ● Add the button to the default controls
$.cleditor.defaultOptions.controls = $.cleditor.defaultOptions.controls
.replace("rule ", "rule table ");
// ● Table button click event handler
function tableButtonClick(e, data) {
// Wire up the submit button click event handler
$(data.popup).children(":button")
.unbind("click")
.bind("click", function(e) {
// Get the editor
var editor = data.editor;
// Restore internet explorer selection
editor.restoreSelection();
// Get the column and row count
var $text = $(data.popup).find(":text"),
cols = parseInt($text[0].value),
rows = parseInt($text[1].value);
// Build the html
var html;
if (cols > 0 && rows > 0) {
html = "<table cellpadding=2 cellspacing=2 border=1>";
for (y = 0; y < rows; y++) {
后面还有 22 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
