SalesSystemOnline/ckeditor_3.6/ckeditor/_source/plugins/table/dialogs/table.js
(开头部分) 20KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var widthPattern = /^(\d+(?:\.\d+)?)(px|%)$/,
heightPattern = /^(\d+(?:\.\d+)?)px$/;
var commitValue = function( data )
{
var id = this.id;
if ( !data.info )
data.info = {};
data.info[id] = this.getValue();
};
function tableDialog( editor, command )
{
var makeElement = function( name )
{
return new CKEDITOR.dom.element( name, editor.document );
};
var dialogadvtab = editor.plugins.dialogadvtab;
return {
title : editor.lang.table.title,
minWidth : 310,
minHeight : CKEDITOR.env.ie ? 310 : 280,
onLoad : function()
{
var dialog = this;
var styles = dialog.getContentElement( 'advanced', 'advStyles' );
if ( styles )
{
styles.on( 'change', function( evt )
{
// Synchronize width value.
var width = this.getStyle( 'width', '' ),
txtWidth = dialog.getContentElement( 'info', 'txtWidth' ),
cmbWidthType = dialog.getContentElement( 'info', 'cmbWidthType' ),
isPx = 1;
if ( width )
{
isPx = ( width.length < 3 || width.substr( width.length - 1 ) != '%' );
width = parseInt( width, 10 );
}
txtWidth && txtWidth.setValue( width, true );
cmbWidthType && cmbWidthType.setValue( isPx ? 'pixels' : 'percents', true );
// Synchronize height value.
var height = this.getStyle( 'height', '' ),
txtHeight = dialog.getContentElement( 'info', 'txtHeight' );
后面还有 612 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。