/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/ (function(){function f©{var a=this.att;c=c&&c.hasAttribute(a)&&c.getAttribute(a)||“”;void 0!==c&&this.setValue©}function g(){for(var c,a=0;ainstanceof CKEDITOR.dom.element){c=arguments;break}if©{var a=this.att,b=this.getValue();b?c.setAttribute(a,b):c.removeAttribute(a,b)}}var k={id:1,dir:1,classes:1,styles:1};CKEDITOR.plugins.add(“dialogadvtab”,{requires:“dialog”,allowedContent:function©{c||(c=k);var a=[];c.id&&a.push(“id”);c.dir&&a.push(“dir”);var b= “”;a.length&&(b+=“”);c.classes&&(b+=“(*)”);c.styles&&(b+=“{*}”);return b},createAdvancedTab:function(c,a,b){a||(a=k);var d=c.lang.common,h={id:“advanced”,label:d.advancedTab,title:d.advancedTab,elements:[{type:“vbox”,padding:1,children:}]},e=[];if(a.id||a.dir)a.id&&e.push({id:“advId”,att:“id”,type:“text”,requiredContent:b?b+“”:null,label:d.id,setup:f,commit:g}),a.dir&&e.push({id:“advLangDir”,att:“dir”,type:“select”,requiredContent:b?b+“”:null,label:d.langDir,“default”:“”, style:“width:100%”,items:[,[d.langDirLTR,“ltr”],],setup:f,commit:g}),h.elements.children.push({type:“hbox”,widths:,children:[].concat(e)});if(a.styles||a.classes)e=,a.styles&&e.push({id:“advStyles”,att:“style”,type:“text”,requiredContent:b?b+“{cke-xyz}”:null,label:d.styles,“default”:“”,validate:CKEDITOR.dialog.validate.inlineStyle(d.invalidInlineStyle),onChange:function(){},getStyle:function(a,c){var b=this.getValue().match(new RegExp(“(?:^|;)\s*”+ a+“\s*:\s*(*)”,“i”));return b?b:c},updateStyle:function(a,b){var d=this.getValue(),e=c.document.createElement(“span”);e.setAttribute(“style”,d);e.setStyle(a,b);d=CKEDITOR.tools.normalizeCssText(e.getAttribute(“style”));this.setValue(d,1)},setup:f,commit:g}),a.classes&&e.push({type:“hbox”,widths:,children:}),h.elements.children.push({type:“hbox”, widths:,children:[].concat(e)});return h}})})();