flymis/WebRoot/dojojs/src/widget/Editor2Plugin/InsertTableDialog.js
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.Editor2Plugin.InsertTableDialog");
dojo.widget.defineWidget(
"dojo.widget.Editor2InsertTableDialog",
dojo.widget.Editor2DialogContent,
{
templatePath: dojo.uri.dojoUri("src/widget/templates/Editor2/Dialog/inserttable.html"),
editableAttributes: ['summery', 'height', 'cellspacing', 'cellpadding', 'border', 'align'],
loadContent: function(){
var curInst = dojo.widget.Editor2Manager.getCurrentInstance();
this.tableNode = dojo.withGlobal(curInst.window, "getSelectedElement", dojo.html.selection);
if(!this.tableNode || this.tableNode.tagName.toLowerCase() != 'table'){
this.tableNode = dojo.withGlobal(curInst.window, "getAncestorElement", dojo.html.selection, ['table']);
}
var tableAttributes = {};
this.extraAttribText = "";
if(this.tableNode){
this["table_rows"].value = this.tableNode.rows.length;
this["table_rows"].disabled = true;
this["table_cols"].value = this.tableNode.rows[0].cells.length;
this["table_cols"].disabled = true;
if (this.tableNode.caption){
this["table_caption"].value = this.tableNode.caption.innerHTML;
}else{
this["table_caption"].value = "";
}
var width = this.tableNode.style.width || this.tableNode.width;
if(width){
this["table_width"].value = parseInt(width);
if (width.indexOf('%') > -1){
this["table_widthtype"].value = "percent";
}else{
this["table_widthtype"].value = "pixels";
}
}else{
this["table_width"].value = "100";
}
var height = this.tableNode.style.height || this.tableNode.height;
if(height){
this["table_height"].value = parseInt(width);
}else{
this["table_height"].value = "";
}
后面还有 87 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。