(function(){var e=CKEDITOR.tools.cssLength;var b=function(f){var g=this.id;if(!f.info){f.info={}}f.info[g]=this.getValue()};function a(n){var k=0,h=0;for(var g=0,o,p=n.$.rows.length;gh&&(h=k)}return h}function d(f){return function(){var h=this.getValue(),g=!!(CKEDITOR.dialog.validate.integer()(h)&&h>0);if(!g){alert(f);this.select()}return g}}function c(h,j){var f=function(k){return new CKEDITOR.dom.element(k,h.document)};var g=h.editable();var i;return{title:h.lang.table.title,minWidth:310,minHeight:CKEDITOR.env.ie?310:280,onLoad:function(){var k=this;var l},onShow:function(){var q=h.getSelection(),m=q.getRanges(),r;var l=this.getContentElement("info","txtRows"),o=this.getContentElement("info","txtCols"),n=this.getContentElement("info","txtWidth"),k=this.getContentElement("info","txtHeight");if(j=="tableProperties"){var p=q.getSelectedElement();if(p&&p.is("table")){r=p}else{if(m.length>0){if(CKEDITOR.env.webkit){m[0].shrink(CKEDITOR.NODE_ELEMENT)}r=h.elementPath(m[0].getCommonAncestor(true)).contains("table",1)}}this._.selectedElement=r}if(r){this.setupContent(r);l&&l.disable();o&&o.disable()}else{l&&l.enable();o&&o.enable()}},onOk:function(){var D=h.getSelection(),z=this._.selectedElement&&D.createBookmarks();var x=this._.selectedElement||f("table"),B=this,C={};this.commitContent(C,x);if(C.info){var y=C.info;if(!this._.selectedElement){var k=x.append(f("tbody")),r=parseInt(y.txtRows,10)||0,s=parseInt(y.txtCols,10)||0;for(var v=0;v0){n=w.getFirst();for(v=0;v