芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/tvc.mgaplay.com.br/web/dist/vendor/ckeditor/plugins/pastetools/filter/common.js
!function(){function t(t,e,r){for(var n=t[e+=r],o=/[\s]/;n&&o.test(n);)n=t[e+=r];return n}function e(t){return/%$/.test(t)?t:t+"px"}function r(t){var e,r,n=t.margin?"margin":!!t.MARGIN&&"MARGIN";if(n){for(e in r=CKEDITOR.tools.style.parse.margin(t[n]))t["margin-"+e]=r[e];delete t[n]}}var n,o=CKEDITOR.tools,s={};CKEDITOR.plugins.pastetools.filters.common=s,s.rules=function(t,e,r){var s=function(t){var e;return!(!(t=t.config.font_names)||!t.length)&&!!(e=CKEDITOR.tools.array.map(t.split(";"),(function(t){return-1===t.indexOf("/")?t:t.split("/")[1]}))).length&&e}(e);return{elements:{"^":function(t){if(function(t){var e,r,n="background-color:transparent;background:transparent;background-color:none;background:none;background-position:initial initial;background-repeat:initial initial;caret-color;font-family:-webkit-standard;font-variant-caps;letter-spacing:normal;orphans;widows;text-transform:none;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;text-indent:0px;margin-bottom:0in".split(";"),o=CKEDITOR.tools.parseCssText(t.attributes.style);for(e in o)r=e+":"+o[e],CKEDITOR.tools.array.some(n,(function(t){return r.substring(0,t.length).toLowerCase()===t}))&&delete o[e];""!==(o=CKEDITOR.tools.writeCssText(o))?t.attributes.style=o:delete t.attributes.style}(t),t.attributes.bgcolor){var e=CKEDITOR.tools.parseCssText(t.attributes.style);e["background-color"]||(e["background-color"]=t.attributes.bgcolor,t.attributes.style=CKEDITOR.tools.writeCssText(e))}},span:function(t){if(t.hasClass("Apple-converted-space"))return new CKEDITOR.htmlParser.text(" ")},table:function(t){t.filterChildren(r);var e,s,i=t.parent,a=i&&i.parent;if(i.name&&"div"===i.name&&i.attributes.align&&1===o.object.keys(i.attributes).length&&1===i.children.length){for(t.attributes.align=i.attributes.align,e=i.children.splice(0),t.remove(),s=e.length-1;0<=s;s--)a.add(e[s],i.getIndex());i.remove()}n.convertStyleToPx(t)},tr:function(t){t.attributes={}},td:function(t){var s=t.getAscendant("table");(a=(s=o.parseCssText(s.attributes.style,!0)).background)&&n.setStyle(t,"background",a,!0),(s=s["background-color"])&&n.setStyle(t,"background-color",s,!0);var i,a=(s=o.parseCssText(t.attributes.style,!0)).border?CKEDITOR.tools.style.border.fromCssRule(s.border):{},l=(a=o.style.border.splitCssValues(s,a),CKEDITOR.tools.clone(s));for(i in l)0==i.indexOf("border")&&delete l[i];for(var u in t.attributes.style=CKEDITOR.tools.writeCssText(l),s.background&&(i=CKEDITOR.tools.style.parse.background(s.background)).color&&(n.setStyle(t,"background-color",i.color,!0),n.setStyle(t,"background","")),a)"none"===(i=s[u]?CKEDITOR.tools.style.border.fromCssRule(s[u]):a[u]).style?n.setStyle(t,u,"none"):n.setStyle(t,u,i.toString());n.mapCommonStyles(t),n.convertStyleToPx(t),n.createStyleStack(t,r,e,/margin|text\-align|padding|list\-style\-type|width|height|border|white\-space|vertical\-align|background/i)},font:function(t){t.attributes.face&&s&&(t.attributes.face=function(t,e){var r=t.split(",");return CKEDITOR.tools.array.find(e,(function(t){for(var e=0;e