NEW_CKEDITOR.plugins.add("devtools",{lang:"ar,az,bg,ca,cs,cy,da,de,de-ch,el,en,en-au,en-gb,eo,es,es-mx,et,eu,fa,fi,fr,fr-ca,gl,gu,he,hr,hu,id,it,ja,km,ko,ku,lt,lv,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,tr,tt,ug,uk,vi,zh,zh-cn",init:function(t){t._.showDialogDefinitionTooltips=1},onLoad:function(){NEW_CKEDITOR.document.appendStyleText(NEW_CKEDITOR.config.devtools_styles||"#edi_tooltip { padding: 5px; border: 2px solid #333; background: #ffffff }#edi_tooltip h2 { font-size: 1.1em; border-bottom: 1px solid; margin: 0; padding: 1px; }#edi_tooltip ul { padding: 0pt; list-style-type: none; }")}}),function(){function t(t,o,e,n){t=t.lang.devtools;var i='<a href="https://ckeditor.com/docs/ckeditor4/latest/api/NEW_CKEDITOR_dialog_definition_'+(e?"text"==e.type?"textInput":e.type:"content")+'.html" target="_blank" rel="noopener noreferrer">'+(e?e.type:"content")+"</a>";return o="<h2>"+t.title+"</h2><ul><li><strong>"+t.dialogName+"</strong> : "+o.getName()+"</li><li><strong>"+t.tabName+"</strong> : "+n+"</li>",e&&(o+="<li><strong>"+t.elementId+"</strong> : "+e.id+"</li>"),(o+="<li><strong>"+t.elementType+"</strong> : "+i+"</li>")+"</ul>"}function o(t,o,n,i,l,d){var r=o.getDocumentPosition(),s={"z-index":NEW_CKEDITOR.dialog._.currentZIndex+10,top:r.y+o.getSize("height")+"px"};e.setHtml(t(n,i,l,d)),e.show(),"rtl"==n.lang.dir?(t=NEW_CKEDITOR.document.getWindow().getViewPaneSize(),s.right=t.width-r.x-o.getSize("width")+"px"):s.left=r.x+"px",e.setStyles(s)}var e;NEW_CKEDITOR.on("reset",(function(){e&&e.remove(),e=null})),NEW_CKEDITOR.on("dialogDefinition",(function(n){var i=n.editor;if(i._.showDialogDefinitionTooltips){e||((e=NEW_CKEDITOR.dom.element.createFromHtml('<div id="edi_tooltip" tabindex="-1" style="position: absolute"></div>',NEW_CKEDITOR.document)).hide(),e.on("mouseover",(function(){this.show()})),e.on("mouseout",(function(){this.hide()})),e.appendTo(NEW_CKEDITOR.document.getBody()));var l=n.data.definition.dialog,d=i.config.devtools_textCallback||t;l.on("load",(function(){for(var t,n=l.parts.tabs.getChildren(),r=0,s=n.count();r<s;r++)(t=n.getItem(r)).on("mouseover",(function(){var t=this.$.id;o(d,this,i,l,null,t.substring(4,t.lastIndexOf("_")))})),t.on("mouseout",(function(){e.hide()}));l.foreach((function(t){if(!(t.type in{hbox:1,vbox:1})){var n=t.getElement();n&&(n.on("mouseover",(function(){o(d,this,i,l,t,l._.currentTabId)})),n.on("mouseout",(function(){e.hide()})))}}))}))}}))}();