# HG changeset patch # User Thierry Florac # Date 1441726051 -7200 # Node ID 472bd9195a15387e6a392aeefa1af54920b5432a # Parent 181b3a0ee15a7618fdca975ba3d254e4b438b58b Added missing minimized resources diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/AddOnManager.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/AddOnManager.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/AddOnManager",["tinymce/dom/ScriptLoader","tinymce/util/Tools"],function(d,a){var c=a.each;function b(){var e=this;e.items=[];e.urls={};e.lookup={}}b.prototype={get:function(e){if(this.lookup[e]){return this.lookup[e].instance}else{return undefined}},dependencies:function(f){var e;if(this.lookup[f]){e=this.lookup[f].dependencies}return e||[]},requireLangPack:function(e,f){var g=b.language;if(g&&b.languageLoad!==false){if(f){f=","+f+",";if(f.indexOf(","+g.substr(0,2)+",")!=-1){g=g.substr(0,2)}else{if(f.indexOf(","+g+",")==-1){return}}}d.ScriptLoader.add(this.urls[e]+"/langs/"+g+".js")}},add:function(g,e,f){this.items.push(e);this.lookup[g]={instance:e,dependencies:f};return e},createUrl:function(e,f){if(typeof f==="object"){return f}else{return{prefix:e.prefix,resource:f,suffix:e.suffix}}},addComponents:function(g,e){var f=this.urls[g];c(e,function(h){d.ScriptLoader.add(f+"/"+h)})},load:function(g,i,k,h){var e=this,f=i;function j(){var l=e.dependencies(g);c(l,function(n){var m=e.createUrl(i,n);e.load(m.resource,m,undefined,undefined)});if(k){if(h){k.call(h)}else{k.call(d)}}}if(e.urls[g]){return}if(typeof i==="object"){f=i.prefix+i.resource+i.suffix}if(f.indexOf("/")!==0&&f.indexOf("://")==-1){f=b.baseURL+"/"+f}e.urls[g]=f.substring(0,f.lastIndexOf("/"));if(e.lookup[g]){j()}else{d.ScriptLoader.add(f,j,h)}}};b.PluginManager=new b();b.ThemeManager=new b();return b}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/Compat.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/Compat.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/Compat",["tinymce/dom/DOMUtils","tinymce/dom/EventUtils","tinymce/dom/ScriptLoader","tinymce/AddOnManager","tinymce/util/Tools","tinymce/Env"],function(e,g,f,d,b,a){var c=window.tinymce;c.DOM=e.DOM;c.ScriptLoader=f.ScriptLoader;c.PluginManager=d.PluginManager;c.ThemeManager=d.ThemeManager;c.dom=c.dom||{};c.dom.Event=g.Event;b.each(b,function(i,h){c[h]=i});b.each("isOpera isWebKit isIE isGecko isMac".split(" "),function(h){c[h]=a[h.substr(2).toLowerCase()]});return{}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/Editor.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/Editor.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/Editor",["tinymce/dom/DOMUtils","tinymce/dom/DomQuery","tinymce/AddOnManager","tinymce/NodeChange","tinymce/html/Node","tinymce/dom/Serializer","tinymce/html/Serializer","tinymce/dom/Selection","tinymce/Formatter","tinymce/UndoManager","tinymce/EnterKey","tinymce/ForceBlocks","tinymce/EditorCommands","tinymce/util/URI","tinymce/dom/ScriptLoader","tinymce/dom/EventUtils","tinymce/WindowManager","tinymce/html/Schema","tinymce/html/DomParser","tinymce/util/Quirks","tinymce/Env","tinymce/util/Tools","tinymce/EditorObservable","tinymce/Shortcuts"],function(K,s,u,e,p,C,A,w,q,f,B,y,n,v,k,l,E,g,b,t,F,i,c,H){var r=K.DOM,G=u.ThemeManager,J=u.PluginManager;var h=i.extend,D=i.each,j=i.explode;var I=i.inArray,a=i.trim,m=i.resolve;var z=l.Event;var d=F.gecko,x=F.ie;function o(Q,N,P){var M=this,L,O;L=M.documentBaseUrl=P.documentBaseURL;O=P.baseURI;M.settings=N=h({id:Q,theme:"modern",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:L,add_form_submit_trigger:true,submit_patch:true,add_unload_trigger:true,convert_urls:true,relative_urls:true,remove_script_host:true,object_resizing:true,doctype:"",visual:true,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:true,padd_empty_editor:true,render_ui:true,indentation:"30px",inline_styles:true,convert_fonts_to_spans:true,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist",validate:true,entity_encoding:"named",url_converter:M.convertURL,url_converter_scope:M,ie7_compat:true},N);u.language=N.language||"en";u.languageLoad=N.language_load;u.baseURL=P.baseURL;M.id=N.id=Q;M.isNotDirty=true;M.plugins={};M.documentBaseURI=new v(N.document_base_url||L,{base_uri:O});M.baseURI=O;M.contentCSS=[];M.contentStyles=[];M.shortcuts=new H(M);M.loadedCSS={};M.editorCommands=new n(M);if(N.target){M.targetElm=N.target}M.suffix=P.suffix;M.editorManager=P;M.inline=N.inline;if(N.cache_suffix){F.cacheSuffix=N.cache_suffix.replace(/^[\?\&]+/,"")}P.fire("SetupEditor",M);M.execCallback("setup",M);M.$=s.overrideDefaults(function(){return{context:M.inline?M.getBody():M.getDoc(),element:M.getBody()}})}o.prototype={render:function(){var L=this,O=L.settings,R=L.id,Q=L.suffix;function N(){r.unbind(window,"ready",N);L.render()}if(!z.domLoaded){r.bind(window,"ready",N);return}if(!L.getElement()){return}if(!F.contentEditable){return}if(!O.inline){L.orgVisibility=L.getElement().style.visibility;L.getElement().style.visibility="hidden"}else{L.inline=true}var P=L.getElement().form||r.getParent(R,"form");if(P){L.formElement=P;if(O.hidden_input&&!/TEXTAREA|INPUT/i.test(L.getElement().nodeName)){r.insertAfter(r.create("input",{type:"hidden",name:R}),R);L.hasHiddenInput=true}L.formEventDelegate=function(S){L.fire(S.type,S)};r.bind(P,"submit reset",L.formEventDelegate);L.on("reset",function(){L.setContent(L.startContent,{format:"raw"})});if(O.submit_patch&&!P.submit.nodeType&&!P.submit.length&&!P._mceOldSubmit){P._mceOldSubmit=P.submit;P.submit=function(){L.editorManager.triggerSave();L.isNotDirty=true;return P._mceOldSubmit(P)}}}L.windowManager=new E(L);if(O.encoding=="xml"){L.on("GetContent",function(S){if(S.save){S.content=r.encode(S.content)}})}if(O.add_form_submit_trigger){L.on("submit",function(){if(L.initialized){L.save()}})}if(O.add_unload_trigger){L._beforeUnload=function(){if(L.initialized&&!L.destroyed&&!L.isHidden()){L.save({format:"raw",no_events:true,set_dirty:false})}};L.editorManager.on("BeforeUnload",L._beforeUnload)}function M(){var T=k.ScriptLoader;if(O.language&&O.language!="en"&&!O.language_url){O.language_url=L.editorManager.baseURL+"/langs/"+O.language+".js"}if(O.language_url){T.add(O.language_url)}if(O.theme&&typeof O.theme!="function"&&O.theme.charAt(0)!="-"&&!G.urls[O.theme]){var S=O.theme_url;if(S){S=L.documentBaseURI.toAbsolute(S)}else{S="themes/"+O.theme+"/theme"+Q+".js"}G.load(O.theme,S)}if(i.isArray(O.plugins)){O.plugins=O.plugins.join(" ")}D(O.external_plugins,function(V,U){J.load(U,V);O.plugins+=" "+U});D(O.plugins.split(/[ ,]/),function(U){U=a(U);if(U&&!J.urls[U]){if(U.charAt(0)=="-"){U=U.substr(1,U.length);var V=J.dependencies(U);D(V,function(X){var W={prefix:"plugins/",resource:X,suffix:"/plugin"+Q+".js"};X=J.createUrl(W,X);J.load(X.resource,X)})}else{J.load(U,{prefix:"plugins/",resource:U,suffix:"/plugin"+Q+".js"})}}});T.loadQueue(function(){if(!L.removed){L.init()}})}M()},init:function(){var T=this,ac=T.settings,P=T.getElement();var R,aa,O,W,U,L,M,ae,Z,V,Y,N=[];this.editorManager.i18n.setCode(ac.language);T.rtl=this.editorManager.i18n.rtl;T.editorManager.add(T);ac.aria_label=ac.aria_label||r.getAttrib(P,"aria-label",T.getLang("aria.rich_text_area"));if(ac.theme){if(typeof ac.theme!="function"){ac.theme=ac.theme.replace(/-/,"");L=G.get(ac.theme);T.theme=new L(T,G.urls[ac.theme]);if(T.theme.init){T.theme.init(T,G.urls[ac.theme]||T.documentBaseUrl.replace(/\/$/,""),T.$)}}else{T.theme=ac.theme}}function ad(ai){var ah=J.get(ai),ag,af;ag=J.urls[ai]||T.documentBaseUrl.replace(/\/$/,"");ai=a(ai);if(ah&&I(N,ai)===-1){D(J.dependencies(ai),function(aj){ad(aj)});af=new ah(T,ag,T.$);T.plugins[ai]=af;if(af.init){af.init(T,ag);N.push(ai)}}}D(ac.plugins.replace(/\-/g,"").split(/[ ,]/),ad);if(ac.render_ui&&T.theme){T.orgDisplay=P.style.display;if(typeof ac.theme!="function"){R=ac.width||P.style.width||P.offsetWidth;aa=ac.height||P.style.height||P.offsetHeight;O=ac.min_height||100;V=/^[0-9\.]+(|px)$/i;if(V.test(""+R)){R=Math.max(parseInt(R,10),100)}if(V.test(""+aa)){aa=Math.max(parseInt(aa,10),O)}U=T.theme.renderUI({targetNode:P,width:R,height:aa,deltaWidth:ac.delta_width,deltaHeight:ac.delta_height});if(!ac.content_editable){aa=(U.iframeHeight||aa)+(typeof aa=="number"?(U.deltaHeight||0):"");if(aa";if(ac.document_base_url!=T.documentBaseUrl){T.iframeHTML+=''}if(!F.caretAfter&&ac.ie7_compat){T.iframeHTML+=''}T.iframeHTML+='';for(Y=0;Y');T.loadedCSS[X]=true}ae=ac.body_id||"tinymce";if(ae.indexOf("=")!=-1){ae=T.getParam("body_id","","hash");ae=ae[T.id]||ae}Z=ac.body_class||"";if(Z.indexOf("=")!=-1){Z=T.getParam("body_class","","hash");Z=Z[T.id]||""}if(ac.content_security_policy){T.iframeHTML+=''}T.iframeHTML+='
';var S='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+T.id+'");document.write(ed.iframeHTML);document.close();ed.initContentBody(true);})()';if(document.domain!=location.hostname){M=S}var Q=r.create("iframe",{id:T.id+"_ifr",frameBorder:"0",allowTransparency:"true",title:T.editorManager.translate("Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help"),style:{width:"100%",height:aa,display:"block"}});Q.onload=function(){Q.onload=null;T.fire("load")};r.setAttrib(Q,"src",M||'javascript:""');T.contentAreaContainer=U.iframeContainer;T.iframeElement=Q;W=r.add(U.iframeContainer,Q);if(x){try{T.getDoc()}catch(ab){W.src=M=S}}if(U.editorContainer){r.get(U.editorContainer).style.display=T.orgDisplay;T.hidden=r.isHidden(U.editorContainer)}T.getElement().style.display="none";r.setAttrib(T.id,"aria-hidden",true);if(!M){T.initContentBody()}P=W=U=null},initContentBody:function(M){var N=this,O=N.settings,P=N.getElement(),Q=N.getDoc(),L,R;if(!O.inline){N.getElement().style.visibility=N.orgVisibility}if(!M&&!O.content_editable){Q.open();Q.write(N.iframeHTML);Q.close()}if(O.content_editable){N.on("remove",function(){var S=this.getBody();r.removeClass(S,"mce-content-body");r.removeClass(S,"mce-edit-focus");r.setAttrib(S,"contentEditable",null)});r.addClass(P,"mce-content-body");N.contentDocument=Q=O.content_document||document;N.contentWindow=O.content_window||window;N.bodyElement=P;O.content_document=O.content_window=null;O.root_name=P.nodeName.toLowerCase()}L=N.getBody();L.disabled=true;if(!O.readonly){if(N.inline&&r.getStyle(L,"position",true)=="static"){L.style.position="relative"}L.contentEditable=N.getParam("content_editable_state",true)}L.disabled=false;N.schema=new g(O);N.dom=new K(Q,{keep_values:true,url_converter:N.convertURL,url_converter_scope:N,hex_colors:O.force_hex_style_colors,class_filter:O.class_filter,update_styles:true,root_element:N.inline?N.getBody():null,collect:O.content_editable,schema:N.schema,onSetAttrib:function(S){N.fire("SetAttrib",S)}});N.parser=new b(O,N.schema);N.parser.addAttributeFilter("src,href,style,tabindex",function(S,T){var U=S.length,W,Y=N.dom,X,V;while(U--){W=S[U];X=W.attr(T);V="data-mce-"+T;if(!W.attributes.map[V]){if(T==="style"){X=Y.serializeStyle(Y.parseStyle(X),W.name);if(!X.length){X=null}W.attr(V,X);W.attr(T,X)}else{if(T==="tabindex"){W.attr(V,X);W.attr(T,null)}else{W.attr(V,N.convertURL(X,T,W.name))}}}}});N.parser.addNodeFilter("script",function(S){var T=S.length,U;while(T--){U=S[T];U.attr("type","mce-"+(U.attr("type")||"no/type"))}});N.parser.addNodeFilter("#cdata",function(S){var T=S.length,U;while(T--){U=S[T];U.type=8;U.name="#comment";U.value="[CDATA["+U.value+"]]"}});N.parser.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(T){var U=T.length,V,S=N.schema.getNonEmptyElements();while(U--){V=T[U];if(V.isEmpty(S)){V.append(new p("br",1)).shortEnded=true}}});N.serializer=new C(O,N);N.selection=new w(N.dom,N.getWin(),N.serializer,N);N.formatter=new q(N);N.undoManager=new f(N);N.forceBlocks=new y(N);N.enterKey=new B(N);N._nodeChangeDispatcher=new e(N);N.fire("PreInit");if(!O.browser_spellcheck&&!O.gecko_spellcheck){Q.body.spellcheck=false;r.setAttrib(L,"spellcheck","false")}N.fire("PostRender");N.quirks=new t(N);if(O.directionality){L.dir=O.directionality}if(O.nowrap){L.style.whiteSpace="nowrap"}if(O.protect){N.on("BeforeSetContent",function(S){D(O.protect,function(T){S.content=S.content.replace(T,function(U){return""})})})}N.on("SetContent",function(){N.addVisual(N.getBody())});if(O.padd_empty_editor){N.on("PostProcess",function(S){S.content=S.content.replace(/^(]*>( | |\s|\u00a0|)<\/p>[\r\n]*|
[\r\n]*)$/,"")})}N.load({initial:true,format:"html"});N.startContent=N.getContent({format:"raw"});N.initialized=true;N.bindPendingEventDelegates();N.fire("init");N.focus(true);N.nodeChanged({initial:true});N.execCallback("init_instance_callback",N);if(N.contentStyles.length>0){R="";D(N.contentStyles,function(S){R+=S+"\r\n"});N.dom.addStyle(R)}D(N.contentCSS,function(S){if(!N.loadedCSS[S]){N.dom.loadCSS(S);N.loadedCSS[S]=true}});if(O.auto_focus){setTimeout(function(){var S;if(O.auto_focus===true){S=N}else{S=N.editorManager.get(O.auto_focus)}if(!S.destroyed){S.focus()}},100)}P=Q=L=null},focus:function(M){var T=this,S=T.selection,P=T.settings.content_editable,L;var Q,R=T.getDoc(),N;if(!M){L=S.getRng();if(L.item){Q=L.item(0)}T._refreshContentEditable();if(!P){if(!F.opera){T.getBody().focus()}T.getWin().focus()}if(d||P){N=T.getBody();if(N.setActive){try{N.setActive()}catch(O){N.focus()}}else{N.focus()}if(P){S.normalize()}}if(Q&&Q.ownerDocument==R){L=R.body.createControlRange();L.addElement(Q);L.select()}}T.editorManager.setActive(T)},execCallback:function(M){var L=this,O=L.settings[M],N;if(!O){return}if(L.callbackLookup&&(N=L.callbackLookup[M])){O=N.func;N=N.scope}if(typeof O==="string"){N=O.replace(/\.\w+$/,"");N=N?m(N):0;O=m(O);L.callbackLookup=L.callbackLookup||{};L.callbackLookup[M]={func:O,scope:N}}return O.apply(N||L,Array.prototype.slice.call(arguments,1))},translate:function(N){var M=this.settings.language||"en",L=this.editorManager.i18n;if(!N){return""}return L.data[M+"."+N]||N.replace(/\{\#([^\}]+)\}/g,function(P,O){return L.data[M+"."+O]||"{#"+O+"}"})},getLang:function(L,M){return(this.editorManager.i18n.data[(this.settings.language||"en")+"."+L]||(M!==undefined?M:"{#"+L+"}"))},getParam:function(M,P,N){var O=M in this.settings?this.settings[M]:P,L;if(N==="hash"){L={};if(typeof O==="string"){D(O.indexOf("=")>0?O.split(/[;,](?![^=;,]*(?:[;,]|$))/):O.split(","),function(Q){Q=Q.split("=");if(Q.length>1){L[a(Q[0])]=a(Q[1])}else{L[a(Q[0])]=a(Q)}})}else{L=O}return L}return O},nodeChanged:function(L){this._nodeChangeDispatcher.nodeChanged(L)},addButton:function(M,N){var L=this;if(N.cmd){N.onclick=function(){L.execCommand(N.cmd)}}if(!N.text&&!N.icon){N.icon=M}L.buttons=L.buttons||{};N.tooltip=N.tooltip||N.title;L.buttons[M]=N},addMenuItem:function(M,N){var L=this;if(N.cmd){N.onclick=function(){L.execCommand(N.cmd)}}L.menuItems=L.menuItems||{};L.menuItems[M]=N},addCommand:function(L,N,M){this.editorCommands.addCommand(L,N,M)},addQueryStateHandler:function(L,N,M){this.editorCommands.addQueryStateHandler(L,N,M)},addQueryValueHandler:function(L,N,M){this.editorCommands.addQueryValueHandler(L,N,M)},addShortcut:function(N,O,M,L){this.shortcuts.add(N,O,M,L)},execCommand:function(O,N,M,L){return this.editorCommands.execCommand(O,N,M,L)},queryCommandState:function(L){return this.editorCommands.queryCommandState(L)},queryCommandValue:function(L){return this.editorCommands.queryCommandValue(L)},queryCommandSupported:function(L){return this.editorCommands.queryCommandSupported(L)},show:function(){var L=this;if(L.hidden){L.hidden=false;if(L.inline){L.getBody().contentEditable=true}else{r.show(L.getContainer());r.hide(L.id)}L.load();L.fire("show")}},hide:function(){var L=this,M=L.getDoc();if(!L.hidden){if(x&&M&&!L.inline){M.execCommand("SelectAll")}L.save();if(L.inline){L.getBody().contentEditable=false;if(L==L.editorManager.focusedEditor){L.editorManager.focusedEditor=null}}else{r.hide(L.getContainer());r.setStyle(L.id,"display",L.orgDisplay)}L.hidden=true;L.fire("hide")}},isHidden:function(){return !!this.hidden},setProgressState:function(L,M){this.fire("ProgressState",{state:L,time:M})},load:function(M){var L=this,O=L.getElement(),N;if(O){M=M||{};M.load=true;N=L.setContent(O.value!==undefined?O.value:O.innerHTML,M);M.element=O;if(!M.no_events){L.fire("LoadContent",M)}M.element=O=null;return N}},save:function(M){var L=this,P=L.getElement(),N,O;if(!P||!L.initialized){return}M=M||{};M.save=true;M.element=P;N=M.content=L.getContent(M);if(!M.no_events){L.fire("SaveContent",M)}N=M.content;if(!/TEXTAREA|INPUT/i.test(P.nodeName)){if(!L.inline){P.innerHTML=N}if((O=r.getParent(L.id,"form"))){D(O.elements,function(Q){if(Q.name==L.id){Q.value=N;return false}})}}else{P.value=N}M.element=P=null;if(M.set_dirty!==false){L.isNotDirty=true}return N},setContent:function(P,N){var M=this,L=M.getBody(),O;N=N||{};N.format=N.format||"html";N.set=true;N.content=P;if(!N.no_events){M.fire("BeforeSetContent",N)}P=N.content;if(P.length===0||/^\s+$/.test(P)){O=M.settings.forced_root_block;if(O&&M.schema.isValidChild(L.nodeName.toLowerCase(),O.toLowerCase())){P=x&&x<11?"":'
';P=M.dom.createHTML(O,M.settings.forced_root_block_attrs,P)}else{if(!x){P='
'}}M.dom.setHTML(L,P);M.fire("SetContent",N)}else{if(N.format!=="raw"){P=new A({},M.schema).serialize(M.parser.parse(P,{isRootContent:true}))}N.content=a(P);M.dom.setHTML(L,N.content);if(!N.no_events){M.fire("SetContent",N)}}return N.content},getContent:function(N){var M=this,O,L=M.getBody();N=N||{};N.format=N.format||"html";N.get=true;N.getInner=true;if(!N.no_events){M.fire("BeforeGetContent",N)}if(N.format=="raw"){O=L.innerHTML}else{if(N.format=="text"){O=L.innerText||L.textContent}else{O=M.serializer.serialize(L,N)}}if(N.format!="text"){N.content=a(O)}else{N.content=O}if(!N.no_events){M.fire("GetContent",N)}return N.content},insertContent:function(M,L){if(L){M=h({content:M},L)}this.execCommand("mceInsertContent",false,M)},isDirty:function(){return !this.isNotDirty},getContainer:function(){var L=this;if(!L.container){L.container=r.get(L.editorContainer||L.id+"_parent")}return L.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){if(!this.targetElm){this.targetElm=r.get(this.id)}return this.targetElm},getWin:function(){var L=this,M;if(!L.contentWindow){M=L.iframeElement;if(M){L.contentWindow=M.contentWindow}}return L.contentWindow},getDoc:function(){var L=this,M;if(!L.contentDocument){M=L.getWin();if(M){L.contentDocument=M.document}}return L.contentDocument},getBody:function(){return this.bodyElement||this.getDoc().body},convertURL:function(N,M,P){var L=this,O=L.settings;if(O.urlconverter_callback){return L.execCallback("urlconverter_callback",N,P,true,M)}if(!O.convert_urls||(P&&P.nodeName=="LINK")||N.indexOf("file:")===0||N.length===0){return N}if(O.relative_urls){return L.documentBaseURI.toRelative(N)}N=L.documentBaseURI.toAbsolute(N,O.remove_script_host);return N},addVisual:function(P){var M=this,N=M.settings,O=M.dom,L;P=P||M.getBody();if(M.hasVisual===undefined){M.hasVisual=N.visual}D(O.select("table,a",P),function(R){var Q;switch(R.nodeName){case"TABLE":L=N.visual_table_class||"mce-item-table";Q=O.getAttrib(R,"border");if((!Q||Q=="0")&&M.hasVisual){O.addClass(R,L)}else{O.removeClass(R,L)}return;case"A":if(!O.getAttrib(R,"href",false)){Q=O.getAttrib(R,"name")||R.id;L=N.visual_anchor_class||"mce-item-anchor";if(Q&&M.hasVisual){O.addClass(R,L)}else{O.removeClass(R,L)}}return}});M.fire("VisualAid",{element:P,hasVisual:M.hasVisual})},remove:function(){var L=this;if(!L.removed){L.save();L.removed=1;L.unbindAllNativeEvents();if(L.hasHiddenInput){r.remove(L.getElement().nextSibling)}if(!L.inline){if(x&&x<10){L.getDoc().execCommand("SelectAll",false,null)}r.setStyle(L.id,"display",L.orgDisplay);L.getBody().onload=null}L.fire("remove");L.editorManager.remove(L);r.remove(L.getContainer());L.destroy()}},destroy:function(N){var L=this,M;if(L.destroyed){return}if(!N&&!L.removed){L.remove();return}if(!N){L.editorManager.off("beforeunload",L._beforeUnload);if(L.theme&&L.theme.destroy){L.theme.destroy()}L.selection.destroy();L.dom.destroy()}M=L.formElement;if(M){if(M._mceOldSubmit){M.submit=M._mceOldSubmit;M._mceOldSubmit=null}r.unbind(M,"submit reset",L.formEventDelegate)}L.contentAreaContainer=L.formElement=L.container=L.editorContainer=null;L.bodyElement=L.contentDocument=L.contentWindow=null;L.iframeElement=L.targetElm=null;if(L.selection){L.selection=L.selection.win=L.selection.dom=L.selection.dom.doc=null}L.destroyed=1},_refreshContentEditable:function(){var M=this,L,N;if(M._isHidden()){L=M.getBody();N=L.parentNode;N.removeChild(L);N.appendChild(L);L.focus()}},_isHidden:function(){var L;if(!d){return 0}L=this.selection.getSel();return(!L||!L.rangeCount||L.rangeCount===0)}};h(o.prototype,c);return o}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/EditorCommands.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/EditorCommands.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/EditorCommands",["tinymce/html/Serializer","tinymce/Env","tinymce/util/Tools","tinymce/dom/ElementUtils","tinymce/dom/RangeUtils","tinymce/dom/TreeWalker"],function(l,j,e,c,h,o){var n=e.each,k=e.extend;var b=e.map,p=e.inArray,m=e.explode;var a=j.gecko,d=j.ie,g=j.ie&&j.ie<11;var f=true,i=false;return function(t){var E,K,D,w={state:{},exec:{},value:{}},G=t.settings,x;t.on("PreInit",function(){E=t.dom;K=t.selection;G=t.settings;D=t.formatter});function F(S,R,Q,L){var N,P,O=0;if(!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(S)&&(!L||!L.skip_focus)){t.focus()}L=k({},L);L=t.fire("BeforeExecCommand",{command:S,ui:R,value:Q});if(L.isDefaultPrevented()){return false}P=S.toLowerCase();if((N=w.exec[P])){N(P,R,Q);t.fire("ExecCommand",{command:S,ui:R,value:Q});return true}n(t.plugins,function(T){if(T.execCommand&&T.execCommand(S,R,Q)){t.fire("ExecCommand",{command:S,ui:R,value:Q});O=true;return false}});if(O){return O}if(t.theme&&t.theme.execCommand&&t.theme.execCommand(S,R,Q)){t.fire("ExecCommand",{command:S,ui:R,value:Q});return true}try{O=t.getDoc().execCommand(S,R,Q)}catch(M){}if(O){t.fire("ExecCommand",{command:S,ui:R,value:Q});return true}return false}function v(N){var M;if(t._isHidden()){return}N=N.toLowerCase();if((M=w.state[N])){return M(N)}try{return t.getDoc().queryCommandState(N)}catch(L){}return false}function C(N){var M;if(t._isHidden()){return}N=N.toLowerCase();if((M=w.value[N])){return M(N)}try{return t.getDoc().queryCommandValue(N)}catch(L){}}function A(L,M){M=M||"exec";n(L,function(O,N){n(N.toLowerCase().split(","),function(P){w[M][P]=O})})}function z(M,N,L){M=M.toLowerCase();w.exec[M]=function(R,Q,P,O){return N.call(L||t,Q,P,O)}}function I(M){M=M.toLowerCase();if(w.exec[M]){return true}try{return t.getDoc().queryCommandSupported(M)}catch(L){}return false}function q(M,N,L){M=M.toLowerCase();w.state[M]=function(){return N.call(L||t)}}function r(M,N,L){M=M.toLowerCase();w.value[M]=function(){return N.call(L||t)}}function s(L){L=L.toLowerCase();return !!w.exec[L]}k(this,{execCommand:F,queryCommandState:v,queryCommandValue:C,queryCommandSupported:I,addCommands:A,addCommand:z,addQueryStateHandler:q,addQueryValueHandler:r,hasCustomCommand:s});function u(N,M,L){if(M===undefined){M=i}if(L===undefined){L=null}return t.getDoc().execCommand(N,M,L)}function H(L){return D.match(L)}function J(L,M){D.toggle(L,M?{value:M}:undefined);t.nodeChanged()}function B(L){x=K.getBookmark(L)}function y(){K.moveToBookmark(x)}A({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){t.undoManager.add()},"Cut,Copy,Paste":function(P){var N=t.getDoc(),L;try{u(P)}catch(M){L=f}if(L||!N.queryCommandSupported(P)){var O=t.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");if(j.mac){O=O.replace(/Ctrl\+/g,"\u2318+")}t.windowManager.alert(O)}},unlink:function(){if(K.isCollapsed()){var L=K.getNode();if(L.tagName=="A"){t.dom.remove(L,true)}return}D.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(L){var M=L.substring(7);if(M=="full"){M="justify"}n("left,center,right,justify".split(","),function(N){if(M!=N){D.remove("align"+N)}});J("align"+M);F("mceRepaint")},"InsertUnorderedList,InsertOrderedList":function(N){var L,M;u(N);L=E.getParent(K.getNode(),"ol,ul");if(L){M=L.parentNode;if(/^(H[1-6]|P|ADDRESS|PRE)$/.test(M.nodeName)){B();E.split(M,L);y()}}},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(L){J(L)},"ForeColor,HiliteColor,FontName":function(N,M,L){J(N,L)},FontSize:function(O,N,M){var L,P;if(M>=1&&M<=7){P=m(G.font_size_style_values);L=m(G.font_size_classes);if(L){M=L[M-1]||M}else{M=P[M-1]||M}}J(O,M)},RemoveFormat:function(L){D.remove(L)},mceBlockQuote:function(){J("blockquote")},FormatBlock:function(N,M,L){return J(L||"p")},mceCleanup:function(){var L=K.getBookmark();t.setContent(t.getContent({cleanup:f}),{cleanup:f});K.moveToBookmark(L)},mceRemoveNode:function(O,N,M){var L=M||K.getNode();if(L!=t.getBody()){B();t.dom.remove(L,f);y()}},mceSelectNodeDepth:function(O,N,M){var L=0;E.getParent(K.getNode(),function(P){if(P.nodeType==1&&L++==M){K.select(P);return i}},t.getBody())},mceSelectNode:function(N,M,L){K.select(L)},mceInsertContent:function(Q,ab,ac){var P,af,U,ag,M,O;var T,S,ad,L,W,R;var Z=t.schema.getTextInlineElements();function ae(al){var ak,aj,am;ak=K.getRng(true);aj=ak.startContainer;am=ak.startOffset;function ai(an){return aj[an]&&aj[an].nodeType==3}if(aj.nodeType==3){if(am>0){al=al.replace(/^ /," ")}else{if(!ai("previousSibling")){al=al.replace(/^ /," ")}}if(am|)$/," ")}else{if(!ai("nextSibling")){al=al.replace(/( | )(
|)$/," ")}}}return al}function N(){var aj,ai,ak;aj=K.getRng(true);ai=aj.startContainer;ak=aj.startOffset;if(ai.nodeType==3&&aj.collapsed){if(ai.data[ak]==="\u00a0"){ai.deleteData(ak,1);if(!/[\u00a0| ]$/.test(ac)){ac+=" "}}else{if(ai.data[ak-1]==="\u00a0"){ai.deleteData(ak-1,1);if(!/[\u00a0| ]$/.test(ac)){ac=" "+ac}}}}}function V(ai){if(R){for(ad=ai.firstChild;ad;ad=ad.walk(true)){if(Z[ad.name]){ad.attr("data-mce-new","true")}}}}function ah(){if(R){var ai=t.getBody(),aj=new c(E);n(E.select("*[data-mce-new]"),function(al){al.removeAttribute("data-mce-new");for(var ak=al.parentNode;ak&&ak!=ai;ak=ak.parentNode){if(aj.compare(ak,al)){E.remove(al,true)}}})}}if(typeof ac!="string"){R=ac.merge;ac=ac.content}if(/^ | $/.test(ac)){ac=ae(ac)}P=t.parser;af=new l({},t.schema);W='​';O={content:ac,format:"html",selection:true};t.fire("BeforeSetContent",O);ac=O.content;if(ac.indexOf("{$caret}")==-1){ac+="{$caret}"}ac=ac.replace(/\{\$caret\}/,W);S=K.getRng();var aa=S.startContainer||(S.parentElement?S.parentElement():null);var X=t.getBody();if(aa===X&&K.isCollapsed()){if(E.isBlock(X.firstChild)&&E.isEmpty(X.firstChild)){S=E.createRng();S.setStart(X.firstChild,0);S.setEnd(X.firstChild,0);K.setRng(S)}}if(!K.isCollapsed()){t.getDoc().execCommand("Delete",false,null);N()}U=K.getNode();var Y={context:U.nodeName.toLowerCase()};M=P.parse(ac,Y);V(M);ad=M.lastChild;if(ad.attr("id")=="mce_marker"){T=ad;for(ad=ad.prev;ad;ad=ad.walk(true)){if(ad.type==3||!E.isBlock(ad.name)){if(t.schema.isValidChild(ad.parent.name,"span")){ad.parent.insert(T,ad,ad.name==="br")}break}}}if(!Y.invalid){ac=af.serialize(M);ad=U.firstChild;L=U.lastChild;if(!ad||(ad===L&&ad.nodeName==="BR")){E.setHTML(U,ac)}else{K.setContent(ac)}}else{K.setContent(W);U=K.getNode();ag=t.getBody();if(U.nodeType==9){U=ad=ag}else{ad=U}while(ad!==ag){U=ad;ad=ad.parentNode}ac=U==ag?ag.innerHTML:E.getOuterHTML(U);ac=af.serialize(P.parse(ac.replace(//i,function(){return af.serialize(M)})));if(U==ag){E.setHTML(ag,ac)}else{E.setOuterHTML(U,ac)}}ah();T=E.get("mce_marker");K.scrollIntoView(T);S=E.createRng();ad=T.previousSibling;if(ad&&ad.nodeType==3){S.setStart(ad,ad.nodeValue.length);if(!d){L=T.nextSibling;if(L&&L.nodeType==3){ad.appendData(L.data);L.parentNode.removeChild(L)}}}else{S.setStartBefore(T);S.setEndBefore(T)}E.remove(T);K.setRng(S);t.fire("SetContent",O);t.addVisual()},mceInsertRawHTML:function(N,M,L){K.setContent("tiny_mce_marker");t.setContent(t.getContent().replace(/tiny_mce_marker/g,function(){return L}))},mceToggleFormat:function(N,M,L){J(L)},mceSetContent:function(N,M,L){t.setContent(L)},"Indent,Outdent":function(O){var M,L,N;M=G.indentation;L=/[a-z%]+$/i.exec(M);M=parseInt(M,10);if(!v("InsertUnorderedList")&&!v("InsertOrderedList")){if(!G.forced_root_block&&!E.getParent(K.getNode(),E.isBlock)){D.apply("div")}n(K.getSelectedBlocks(),function(Q){if(Q.nodeName!="LI"){var P=t.getParam("indent_use_margin",false)?"margin":"padding";P+=E.getStyle(Q,"direction",true)=="rtl"?"Right":"Left";if(O=="outdent"){N=Math.max(0,parseInt(Q.style[P]||0,10)-M);E.setStyle(Q,P,N?N+L:"")}else{N=(parseInt(Q.style[P]||0,10)+M)+L;E.setStyle(Q,P,N)}}})}else{u(O)}},mceRepaint:function(){if(a){try{B(f);if(K.getSel()){K.getSel().selectAllChildren(t.getBody())}K.collapse(f);y()}catch(L){}}},InsertHorizontalRule:function(){t.execCommand("mceInsertContent",false,"
")},mceToggleVisualAid:function(){t.hasVisual=!t.hasVisual;t.addVisual()},mceReplaceContent:function(N,M,L){t.execCommand("mceInsertContent",false,L.replace(/\{\$selection\}/g,K.getContent({format:"text"})))},mceInsertLink:function(O,N,M){var L;if(typeof M=="string"){M={href:M}}L=E.getParent(K.getNode(),"a");M.href=M.href.replace(" ","%20");if(!L||!M.href){D.remove("link")}if(M.href){D.apply("link",M,L)}},selectAll:function(){var M=E.getRoot(),L;if(K.getRng().setStart){L=E.createRng();L.setStart(M,0);L.setEnd(M,M.childNodes.length);K.setRng(L)}else{L=K.getRng();if(!L.item){L.moveToElementText(M);L.select()}}},"delete":function(){u("Delete");var L=t.getBody();if(E.isEmpty(L)){t.setContent("");if(L.firstChild&&E.isBlock(L.firstChild)){t.selection.setCursorLocation(L.firstChild,0)}else{t.selection.setCursorLocation(L,0)}}},mceNewDocument:function(){t.setContent("")},InsertLineBreak:function(N,X,Z){var W=Z;var L,U,S;var R=K.getRng(true);new h(E).normalize(R);var Q=R.startOffset;var V=R.startContainer;if(V.nodeType==1&&V.hasChildNodes()){var aa=Q>V.childNodes.length-1;V=V.childNodes[Math.min(Q,V.childNodes.length-1)]||V;if(aa&&V.nodeType==3){Q=V.nodeValue.length}else{Q=0}}var O=E.getParent(V,E.isBlock);var P=O?O.nodeName.toUpperCase():"";var M=O?E.getParent(O.parentNode,E.isBlock):null;var ab=M?M.nodeName.toUpperCase():"";var Y=W&&W.ctrlKey;if(ab=="LI"&&!Y){O=M;P=ab}function T(){var af=new o(V,O),ae;var ad=t.schema.getNonEmptyElements();while((ae=af.next())){if(ad[ae.nodeName.toLowerCase()]||ae.length>0){return true}}}if(V&&V.nodeType==3&&Q>=V.nodeValue.length){if(!g&&!T()){L=E.create("br");R.insertNode(L);R.setStartAfter(L);R.setEndAfter(L);U=true}}L=E.create("br");R.insertNode(L);var ac=E.doc.documentMode;if(g&&P=="PRE"&&(!ac||ac<8)){L.parentNode.insertBefore(E.doc.createTextNode("\r"),L)}S=E.create("span",{}," ");L.parentNode.insertBefore(S,L);K.scrollIntoView(S);E.remove(S);if(!U){R.setStartAfter(L);R.setEndAfter(L)}else{R.setStartBefore(L);R.setEndBefore(L)}K.setRng(R);t.undoManager.add();return f}});A({"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(O){var M="align"+O.substring(7);var L=K.isCollapsed()?[E.getParent(K.getNode(),E.isBlock)]:K.getSelectedBlocks();var N=b(L,function(P){return !!D.matchNode(P,M)});return p(N,f)!==-1},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(L){return H(L)},mceBlockQuote:function(){return H("blockquote")},Outdent:function(){var L;if(G.inline_styles){if((L=E.getParent(K.getStart(),E.isBlock))&&parseInt(L.style.paddingLeft,10)>0){return f}if((L=E.getParent(K.getEnd(),E.isBlock))&&parseInt(L.style.paddingLeft,10)>0){return f}}return(v("InsertUnorderedList")||v("InsertOrderedList")||(!G.inline_styles&&!!E.getParent(K.getNode(),"BLOCKQUOTE")))},"InsertUnorderedList,InsertOrderedList":function(M){var L=E.getParent(K.getNode(),"ul,ol");return L&&(M==="insertunorderedlist"&&L.tagName==="UL"||M==="insertorderedlist"&&L.tagName==="OL")}},"state");A({"FontSize,FontName":function(N){var M=0,L;if((L=E.getParent(K.getNode(),"span"))){if(N=="fontsize"){M=L.style.fontSize}else{M=L.style.fontFamily.replace(/, /g,",").replace(/[\'\"]/g,"").toLowerCase()}}return M}},"value");A({Undo:function(){t.undoManager.undo()},Redo:function(){t.undoManager.redo()}})}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/EditorManager.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/EditorManager.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/EditorManager",["tinymce/Editor","tinymce/dom/DomQuery","tinymce/dom/DOMUtils","tinymce/util/URI","tinymce/Env","tinymce/util/Tools","tinymce/util/Observable","tinymce/util/I18n","tinymce/FocusManager"],function(k,c,o,f,b,a,h,l,e){var q=o.DOM;var m=a.explode,d=a.each,p=a.extend;var r=0,i,j;function n(u){var v=j.editors,t;delete v[u.id];for(var s=0;s0){d(m(A),function(D){var C;if((C=q.get(D))){u(D,x,C)}else{d(document.forms,function(E){d(E.elements,function(F){if(F.name===D){D="mce_editor_"+r++;q.setAttrib(F,"id",D);u(D,x,F)}})})}})}break;case"textareas":case"specific_textareas":d(q.select("textarea"),function(C){if(x.editor_deselector&&v(C,x.editor_deselector)){return}if(!x.editor_selector||v(C,x.editor_selector)){u(w(C),x,C)}});break}if(x.oninit){A=B=0;d(y,function(C){B++;if(!C.initialized){C.on("init",function(){A++;if(A==B){z("oninit")}})}else{A++}if(A==B){z("oninit")}})}}s.settings=x;q.bind(window,"ready",t)},get:function(s){if(!arguments.length){return this.editors}return s in this.editors?this.editors[s]:null},add:function(t){var s=this,u=s.editors;u[t.id]=t;u.push(t);s.activeEditor=t;s.fire("AddEditor",{editor:t});if(!i){i=function(){s.fire("BeforeUnload")};q.bind(window,"beforeunload",i)}return t},createEditor:function(t,s){return this.add(new k(t,s,this))},remove:function(s){var t=this,u,w=t.editors,v;if(!s){for(u=w.length-1;u>=0;u--){t.remove(w[u])}return}if(typeof s=="string"){s=s.selector||s;d(q.select(s),function(x){v=w[x.id];if(v){t.remove(v)}});return}v=s;if(!w[v.id]){return null}if(n(v)){t.fire("RemoveEditor",{editor:v})}if(!w.length){q.unbind(window,"beforeunload",i)}v.remove();return v},execCommand:function(w,v,u){var s=this,t=s.get(u);switch(w){case"mceAddEditor":if(!s.get(u)){new k(u,s.settings,s).render()}return true;case"mceRemoveEditor":if(t){t.remove()}return true;case"mceToggleEditor":if(!t){s.execCommand("mceAddEditor",0,u);return true}if(t.isHidden()){t.show()}else{t.hide()}return true}if(s.activeEditor){return s.activeEditor.execCommand(w,v,u)}return false},triggerSave:function(){d(this.editors,function(s){s.save()})},addI18n:function(t,s){l.add(t,s)},translate:function(s){return l.translate(s)},setActive:function(s){var t=this.activeEditor;if(this.activeEditor!=s){if(t){t.fire("deactivate",{relatedTarget:s})}s.fire("activate",{relatedTarget:t})}this.activeEditor=s}};p(j,h);j.setup();window.tinymce=window.tinyMCE=j;return j}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/EditorObservable.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/EditorObservable.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/EditorObservable",["tinymce/util/Observable","tinymce/dom/DOMUtils","tinymce/util/Tools"],function(a,f,c){var d=f.DOM,b;function g(j,i){if(i=="selectionchange"){return j.getDoc()}if(!j.inline&&/^mouse|click|contextmenu|drop|dragover|dragend/.test(i)){return j.getDoc().documentElement}if(j.settings.event_root){if(!j.eventRoot){j.eventRoot=d.select(j.settings.event_root)[0]}return j.eventRoot}return j.getBody()}function e(k,i){var l=g(k,i),j;if(!k.delegates){k.delegates={}}if(k.delegates[i]){return}if(k.settings.event_root){if(!b){b={};k.editorManager.on("removeEditor",function(){var m;if(!k.editorManager.activeEditor){if(b){for(m in b){k.dom.unbind(g(k,m))}b=null}}})}if(b[i]){return}j=function(q){var p=q.target,o=k.editorManager.editors,n=o.length;while(n--){var m=o[n].getBody();if(m===p||d.isChildOf(p,m)){if(!o[n].hidden){o[n].fire(i,q)}}}};b[i]=j;d.bind(l,i,j)}else{j=function(m){if(!k.hidden){k.fire(i,m)}};d.bind(l,i,j);k.delegates[i]=j}}var h={bindPendingEventDelegates:function(){var i=this;c.each(i._pendingNativeEvents,function(j){e(i,j)})},toggleNativeEvent:function(j,k){var i=this;if(i.settings.readonly){return}if(j=="focus"||j=="blur"){return}if(k){if(i.initialized){e(i,j)}else{if(!i._pendingNativeEvents){i._pendingNativeEvents=[j]}else{i._pendingNativeEvents.push(j)}}}else{if(i.initialized){i.dom.unbind(g(i,j),j,i.delegates[j]);delete i.delegates[j]}}},unbindAllNativeEvents:function(){var i=this,j;if(i.delegates){for(j in i.delegates){i.dom.unbind(g(i,j),j,i.delegates[j])}delete i.delegates}if(!i.inline){i.getBody().onload=null;i.dom.unbind(i.getWin());i.dom.unbind(i.getDoc())}i.dom.unbind(i.getBody());i.dom.unbind(i.getContainer())}};h=c.extend({},a,h);return h}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/EnterKey.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/EnterKey.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/EnterKey",["tinymce/dom/TreeWalker","tinymce/dom/RangeUtils","tinymce/Env"],function(b,d,a){var c=a.ie&&a.ie<11;return function(j){var g=j.dom,k=j.selection,e=j.settings;var m=j.undoManager,f=j.schema,h=f.getNonEmptyElements(),l=f.getMoveCaretBeforeOnEnterElements();function i(E){var z,J,n,D,y,t,P,F,s,o,r,x,M,B,G;function H(Q){return Q&&g.isBlock(Q)&&!/^(TD|TH|CAPTION|FORM)$/.test(Q.nodeName)&&!/^(fixed|absolute)/i.test(Q.style.position)&&g.getContentEditable(Q)!=="true"}function I(R){var Q;if(g.isBlock(R)){Q=k.getRng();R.appendChild(g.create("span",null,"\u00a0"));k.select(R);R.lastChild.outerHTML="";k.setRng(Q)}}function C(S){var R=S,T=[],Q;if(!R){return}while((R=R.firstChild)){if(g.isBlock(R)){return}if(R.nodeType==1&&!h[R.nodeName.toLowerCase()]){T.push(R)}}Q=T.length;while(Q--){R=T[Q];if(!R.hasChildNodes()||(R.firstChild==R.lastChild&&R.firstChild.nodeValue==="")){g.remove(R)}else{if(R.nodeName=="A"&&(R.innerText||R.textContent)===" "){g.remove(R)}}}}function q(R){var X,U,Q,T=R,S;function W(Y){while(Y){if(Y.nodeType==1||(Y.nodeType==3&&Y.data&&/[\r\n\s]/.test(Y.data))){return Y}Y=Y.nextSibling}}if(!R){return}if(a.ie&&a.ie<9&&t&&t.firstChild){if(t.firstChild==t.lastChild&&t.firstChild.tagName=="BR"){g.remove(t.firstChild)}}if(/^(LI|DT|DD)$/.test(R.nodeName)){var V=W(R.firstChild);if(V&&/^(UL|OL|DL)$/.test(V.nodeName)){R.insertBefore(g.doc.createTextNode("\u00a0"),R.firstChild)}}Q=g.createRng();if(!a.ie){R.normalize()}if(R.hasChildNodes()){X=new b(R,R);while((U=X.current())){if(U.nodeType==3){Q.setStart(U,0);Q.setEnd(U,0);break}if(l[U.nodeName.toLowerCase()]){Q.setStartBefore(U);Q.setEndBefore(U);break}T=U;U=X.next()}if(!U){Q.setStart(T,0);Q.setEnd(T,0)}}else{if(R.nodeName=="BR"){if(R.nextSibling&&g.isBlock(R.nextSibling)){if(!P||P<9){S=g.create("br");R.parentNode.insertBefore(S,R)}Q.setStartBefore(R);Q.setEndBefore(R)}else{Q.setStartAfter(R);Q.setEndAfter(R)}}else{Q.setStart(R,0);Q.setEnd(R,0)}}k.setRng(Q);g.remove(S);k.scrollIntoView(R)}function A(R){var Q=e.forced_root_block;if(Q&&Q.toLowerCase()===R.tagName.toLowerCase()){g.setAttribs(R,e.forced_root_block_attrs)}}function v(R){var T=D,V,U,Q,S=f.getTextInlineElements();if(R||x=="TABLE"){V=g.create(R||B);A(V)}else{V=t.cloneNode(false)}Q=V;if(e.keep_styles!==false){do{if(S[T.nodeName]){if(T.id=="_mce_caret"){continue}U=T.cloneNode(false);g.setAttrib(U,"id","");if(V.hasChildNodes()){U.appendChild(V.firstChild);V.appendChild(U)}else{Q=U;V.appendChild(U)}}}while((T=T.parentNode))}if(!c){Q.innerHTML='
'}return V}function u(T){var S,R,Q;if(D.nodeType==3&&(T?y>0:yD.childNodes.length-1;D=D.childNodes[Math.min(y,D.childNodes.length-1)]||D;if(G&&D.nodeType==3){y=D.nodeValue.length}else{y=0}}n=N(D);if(!n){return}m.beforeChange();if(!g.isBlock(n)&&n!=g.getRoot()){if(!B||F){O()}return}if((B&&!F)||(!B&&F)){D=p(D,y)}t=g.getParent(D,g.isBlock);r=t?g.getParent(t.parentNode,g.isBlock):null;x=t?t.nodeName.toUpperCase():"";M=r?r.nodeName.toUpperCase():"";if(M=="LI"&&!E.ctrlKey){t=r;x=M}if(/^(LI|DT|DD)$/.test(x)){if(!B&&F){O();return}if(g.isEmpty(t)){K();return}}if(x=="PRE"&&e.br_in_pre!==false){if(!F){O();return}}else{if((!B&&!F&&x!="LI")||(B&&F)){O();return}}if(B&&t===j.getBody()){return}B=B||"P";if(u()){if(/^(H[1-6]|PRE|FIGURE)$/.test(x)&&M!="HGROUP"){s=v(B)}else{s=v()}if(e.end_container_on_empty_block&&H(r)&&g.isEmpty(t)){s=g.split(r,t)}else{g.insertAfter(s,t)}q(s)}else{if(u(true)){s=t.parentNode.insertBefore(v(),t);I(s);q(t)}else{J=z.cloneRange();J.setEndAfter(t);o=J.extractContents();w(o);s=o.firstChild;g.insertAfter(o,t);C(s);L(t);q(s)}}g.setAttrib(s,"id","");j.fire("NewBlock",{newBlock:s});m.add()}j.on("keydown",function(n){if(n.keyCode==13){if(i(n)!==false){n.preventDefault()}}})}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/Env.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/Env.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/Env",[],function(){var a=navigator,l=a.userAgent;var e,k,b,h,g,d,j,f,c;e=window.opera&&window.opera.buildNumber;c=/Android/.test(l);k=/WebKit/.test(l);b=!k&&!e&&(/MSIE/gi).test(l)&&(/Explorer/gi).test(a.appName);b=b&&/MSIE (\w+)\./.exec(l)[1];h=l.indexOf("Trident/")!=-1&&(l.indexOf("rv:")!=-1||a.appName.indexOf("Netscape")!=-1)?11:false;g=(document.msElementsFromPoint&&!b&&!h)?12:false;b=b||h||g;d=!k&&!h&&/Gecko/.test(l);j=l.indexOf("Mac")!=-1;f=/(iPad|iPhone)/.test(l);if(g){k=false}var i=!f||l.match(/AppleWebKit\/(\d*)/)[1]>=534;return{opera:e,webkit:k,ie:b,gecko:d,mac:j,iOS:f,android:c,contentEditable:i,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:b!=8,range:window.getSelection&&"Range" in window,documentMode:b&&!g?(document.documentMode||7):10}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/FocusManager.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/FocusManager.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/FocusManager",["tinymce/dom/DOMUtils","tinymce/Env"],function(g,b){var c,e,d,f=g.DOM;function a(n){function i(){try{return document.activeElement}catch(o){return document.body}}function m(p,o){if(o&&o.startContainer){if(!p.isChildOf(o.startContainer,p.getRoot())||!p.isChildOf(o.endContainer,p.getRoot())){return}return{startContainer:o.startContainer,startOffset:o.startOffset,endContainer:o.endContainer,endOffset:o.endOffset}}return o}function h(q,p){var o;if(p.startContainer){o=q.getDoc().createRange();o.setStart(p.startContainer,p.startOffset);o.setEnd(p.endContainer,p.endOffset)}else{o=p}return o}function l(o){return !!f.getParent(o,a.isEditorUIElement)}function j(p){var o=p.editor;o.on("init",function(){if(o.inline||b.ie){if("onbeforedeactivate" in document&&b.ie<9){o.dom.bind(o.getBody(),"beforedeactivate",function(r){if(r.target!=o.getBody()){return}try{o.lastRng=o.selection.getRng()}catch(q){}})}else{o.on("nodechange mouseup keyup",function(r){var q=i();if(r.type=="nodechange"&&r.selectionChange){return}if(q&&q.id==o.id+"_ifr"){q=o.getBody()}if(o.dom.isChildOf(q,o.getBody())){o.lastRng=o.selection.getRng()}})}if(b.webkit&&!c){c=function(){var r=n.activeEditor;if(r&&r.selection){var q=r.selection.getRng();if(q&&!q.collapsed){o.lastRng=q}}};f.bind(document,"selectionchange",c)}}});o.on("setcontent",function(){o.lastRng=null});o.on("mousedown",function(){o.selection.lastFocusBookmark=null});o.on("focusin",function(){var q=n.focusedEditor;if(o.selection.lastFocusBookmark){o.selection.setRng(h(o,o.selection.lastFocusBookmark));o.selection.lastFocusBookmark=null}if(q!=o){if(q){q.fire("blur",{focusedEditor:o})}n.setActive(o);n.focusedEditor=o;o.fire("focus",{blurredEditor:q});o.focus(true)}o.lastRng=null});o.on("focusout",function(){window.setTimeout(function(){var q=n.focusedEditor;if(!l(i())&&q==o){o.fire("blur",{focusedEditor:null});n.focusedEditor=null;if(o.selection){o.selection.lastFocusBookmark=null}}},0)});if(!e){e=function(r){var q=n.activeEditor;if(q&&r.target.ownerDocument==document){if(q.selection&&r.target!=q.getBody()){q.selection.lastFocusBookmark=m(q.dom,q.lastRng)}if(r.target!=document.body&&!l(r.target)&&n.focusedEditor==q){q.fire("blur",{focusedEditor:null});n.focusedEditor=null}}};f.bind(document,"focusin",e)}if(o.inline&&!d){d=function(s){var r=n.activeEditor;if(r.inline&&!r.dom.isChildOf(s.target,r.getBody())){var q=r.selection.getRng();if(!q.collapsed){r.lastRng=q}}};f.bind(document,"mouseup",d)}}function k(o){if(n.focusedEditor==o.editor){n.focusedEditor=null}if(!n.activeEditor){f.unbind(document,"selectionchange",c);f.unbind(document,"focusin",e);f.unbind(document,"mouseup",d);c=e=d=null}}n.on("AddEditor",j);n.on("RemoveEditor",k)}a.isEditorUIElement=function(h){return h.className.toString().indexOf("mce-")!==-1};return a}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ForceBlocks.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ForceBlocks.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ForceBlocks",[],function(){return function(c){var b=c.settings,f=c.dom,a=c.selection;var e=c.schema,d=e.getBlockElements();function g(){var m=a.getStart(),k=c.getBody(),h;var n,s,w,u,l;var o,p=-16777215,t,i;var v,j,r;r=b.forced_root_block;if(!m||m.nodeType!==1||!r){return}while(m&&m!=k){if(d[m.nodeName]){return}m=m.parentNode}h=a.getRng();if(h.setStart){n=h.startContainer;s=h.startOffset;w=h.endContainer;u=h.endOffset;try{i=c.getDoc().activeElement===k}catch(q){}}else{if(h.item){m=h.item(0);h=c.getDoc().body.createTextRange();h.moveToElementText(m)}i=h.parentElement().ownerDocument===c.getDoc();v=h.duplicate();v.collapse(true);s=v.move("character",p)*-1;if(!v.collapsed){v=h.duplicate();v.collapse(false);u=(v.move("character",p)*-1)-s}}m=k.firstChild;j=k.nodeName.toLowerCase();while(m){if(((m.nodeType===3||(m.nodeType==1&&!d[m.nodeName])))&&e.isValidChild(j,r.toLowerCase())){if(m.nodeType===3&&m.nodeValue.length===0){o=m;m=m.nextSibling;f.remove(o);continue}if(!l){l=f.create(r,c.settings.forced_root_block_attrs);m.parentNode.insertBefore(l,m);t=true}o=m;m=m.nextSibling;l.appendChild(o)}else{l=null;m=m.nextSibling}}if(t&&i){if(h.setStart){h.setStart(n,s);h.setEnd(w,u);a.setRng(h)}else{try{h=c.getDoc().body.createTextRange();h.moveToElementText(k);h.collapse(true);h.moveStart("character",s);if(u>0){h.moveEnd("character",u)}h.select()}catch(q){}}c.nodeChanged()}}if(b.forced_root_block){c.on("NodeChange",g)}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/Formatter.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/Formatter.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/Formatter",["tinymce/dom/TreeWalker","tinymce/dom/RangeUtils","tinymce/dom/BookmarkManager","tinymce/dom/ElementUtils","tinymce/util/Tools","tinymce/fmt/Preview"],function(d,e,a,c,b,f){return function(am){var Z={},h=am.dom,A=am.selection,W=new e(h),j=am.schema.isValidChild,Q=h.isBlock,t=am.settings.forced_root_block,C=h.nodeIndex,O="\uFEFF",k=/^(src|href|style)$/,ah=false,K=true,Y,L,F=h.getContentEditable,P,r,T=a.isBookmarkNode;var ac=b.each,ak=b.grep,x=b.walk,y=b.extend;function R(an){if(an.nodeType){an=an.nodeName}return !!am.schema.getTextBlockElements()[an.toLowerCase()]}function ae(an){return/^(TH|TD)$/.test(an.nodeName)}function u(ao,an){return h.getParents(ao,an,h.getRoot())}function g(an){return an.nodeType===1&&an.id==="_mce_caret"}function p(){s({valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},defaultBlock:"div"},{selector:"img,table",collapsed:false,styles:{"float":"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},defaultBlock:"div"},{selector:"img",collapsed:false,styles:{display:"block",marginLeft:"auto",marginRight:"auto"}},{selector:"table",collapsed:false,styles:{marginLeft:"auto",marginRight:"auto"}}],alignright:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},defaultBlock:"div"},{selector:"img,table",collapsed:false,styles:{"float":"right"}}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},defaultBlock:"div"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:true},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:true},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},links:true,remove_similar:true},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:true,remove_similar:true},fontname:{inline:"span",styles:{fontFamily:"%value"}},fontsize:{inline:"span",styles:{fontSize:"%value"}},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:true,deep:true,onmatch:function(){return true},onformat:function(ap,an,ao){ac(ao,function(ar,aq){h.setAttrib(ap,aq,ar)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:true,expand:false,block_expand:true,deep:true},{selector:"span",attributes:["style","class"],remove:"empty",split:true,expand:false,deep:true},{selector:"*",attributes:["style","class"],split:false,expand:false,deep:true}]});ac("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),function(an){s(an,{block:an,remove:"all"})});s(am.settings.formats)}function ag(){am.addShortcut("meta+b","bold_desc","Bold");am.addShortcut("meta+i","italic_desc","Italic");am.addShortcut("meta+u","underline_desc","Underline");for(var an=1;an<=6;an++){am.addShortcut("access+"+an,"",["FormatBlock",false,"h"+an])}am.addShortcut("access+7","",["FormatBlock",false,"p"]);am.addShortcut("access+8","",["FormatBlock",false,"div"]);am.addShortcut("access+9","",["FormatBlock",false,"address"])}function af(an){return an?Z[an]:Z}function s(an,ao){if(an){if(typeof an!=="string"){ac(an,function(aq,ap){s(ap,aq)})}else{ao=ao.length?ao:[ao];ac(ao,function(ap){if(ap.deep===L){ap.deep=!ap.selector}if(ap.split===L){ap.split=!ap.selector||ap.inline}if(ap.remove===L&&ap.selector&&!ap.inline){ap.remove="none"}if(ap.selector&&ap.inline){ap.mixed=true;ap.block_expand=true}if(typeof ap.classes==="string"){ap.classes=ap.classes.split(/\s+/)}});Z[an]=ao}}}function G(an){if(an&&Z[an]){delete Z[an]}return Z}function o(ao){var an;am.dom.getParent(ao,function(ap){an=am.dom.getStyle(ap,"text-decoration");return an&&an!=="none"});return an}function U(an){var ao;if(an.nodeType===1&&an.parentNode&&an.parentNode.nodeType===1){ao=o(an.parentNode);if(am.dom.getStyle(an,"color")&&ao){am.dom.setStyle(an,"text-decoration",ao)}else{if(am.dom.getStyle(an,"text-decoration")===ao){am.dom.setStyle(an,"text-decoration",null)}}}}function aj(ap,aw,ar){var at=af(ap),ax=at[0],av,ao,au=!ar&&A.isCollapsed();function an(aC,aA){aA=aA||ax;if(aC){if(aA.onformat){aA.onformat(aC,aA,aw,ar)}ac(aA.styles,function(aE,aD){h.setStyle(aC,aD,z(aE,aw))});if(aA.styles){var aB=h.getAttrib(aC,"style");if(aB){aC.setAttribute("data-mce-style",aB)}}ac(aA.attributes,function(aE,aD){h.setAttrib(aC,aD,z(aE,aw))});ac(aA.classes,function(aD){aD=z(aD,aw);if(!h.hasClass(aC,aD)){h.addClass(aC,aD)}})}}function aq(){function aC(aI,aG){var aH=new d(aG);for(ar=aH.current();ar;ar=aH.prev()){if(ar.childNodes.length>1||ar==aI||ar.tagName=="BR"){return ar}}}var aB=am.selection.getRng();var aF=aB.startContainer;var aA=aB.endContainer;if(aF!=aA&&aB.endOffset===0){var aE=aC(aF,aA);var aD=aE.nodeType==3?aE.length:aE.childNodes.length;aB.setEnd(aE,aD)}return aB}function ay(aB,aD,aG){var aA=[],aF,aC,aE=true;aF=ax.inline||ax.block;aC=h.create(aF);an(aC);W.walk(aB,function(aH){var aI;function aJ(aK){var aP,aN,aL,aM,aO;aO=aE;aP=aK.nodeName.toLowerCase();aN=aK.parentNode.nodeName.toLowerCase();if(aK.nodeType===1&&F(aK)){aO=aE;aE=F(aK)==="true";aM=true}if(m(aP,"br")){aI=0;if(ax.block){h.remove(aK)}return}if(ax.wrapper&&H(aK,ap,aw)){aI=0;return}if(aE&&!aM&&ax.block&&!ax.wrapper&&R(aP)&&j(aN,aF)){aK=h.rename(aK,aF);an(aK);aA.push(aK);aI=0;return}if(ax.selector){ac(at,function(aQ){if("collapsed" in aQ&&aQ.collapsed!==au){return}if(h.is(aK,aQ.selector)&&!g(aK)){an(aK,aQ);aL=true}});if(!ax.inline||aL){aI=0;return}}if(aE&&!aM&&j(aF,aP)&&j(aN,aF)&&!(!aG&&aK.nodeType===3&&aK.nodeValue.length===1&&aK.nodeValue.charCodeAt(0)===65279)&&!g(aK)&&(!ax.inline||!Q(aK))){if(!aI){aI=h.clone(aC,ah);aK.parentNode.insertBefore(aI,aK);aA.push(aI)}aI.appendChild(aK)}else{aI=0;ac(ak(aK.childNodes),aJ);if(aM){aE=aO}aI=0}}ac(aH,aJ)});if(ax.links===true){ac(aA,function(aH){function aI(aJ){if(aJ.nodeName==="A"){an(aJ,ax)}ac(ak(aJ.childNodes),aI)}aI(aH)})}ac(aA,function(aJ){var aH;function aK(aM){var aL=0;ac(aM.childNodes,function(aN){if(!l(aN)&&!T(aN)){aL++}});return aL}function aI(aL){var aN,aM;ac(aL.childNodes,function(aO){if(aO.nodeType==1&&!T(aO)&&!g(aO)){aN=aO;return ah}});if(aN&&!T(aN)&&n(aN,ax)){aM=h.clone(aN,ah);an(aM);h.replace(aM,aL,K);h.remove(aN,1)}return aM||aL}aH=aK(aJ);if((aA.length>1||!Q(aJ))&&aH===0){h.remove(aJ,1);return}if(ax.inline||ax.wrapper){if(!ax.exact&&aH===1){aJ=aI(aJ)}ac(at,function(aL){ac(h.select(aL.inline,aJ),function(aM){if(T(aM)){return}al(aL,aw,aM,aL.exact?aM:null)})});if(H(aJ.parentNode,ap,aw)){h.remove(aJ,1);aJ=0;return K}if(ax.merge_with_parents){h.getParent(aJ.parentNode,function(aL){if(H(aL,ap,aw)){h.remove(aJ,1);aJ=0;return K}})}if(aJ&&ax.merge_siblings!==false){aJ=D(M(aJ),aJ);aJ=D(aJ,M(aJ,K))}}})}if(ax){if(ar){if(ar.nodeType){ao=h.createRng();ao.setStartBefore(ar);ao.setEndAfter(ar);ay(w(ao,at),null,true)}else{ay(ar,null,true)}}else{if(!au||!ax.inline||h.select("td.mce-item-selected,th.mce-item-selected").length){var az=am.selection.getNode();if(!t&&at[0].defaultBlock&&!h.getParent(az,h.isBlock)){aj(at[0].defaultBlock)}am.selection.setRng(aq());av=A.getBookmark();ay(w(A.getRng(K),at),av);if(ax.styles&&(ax.styles.color||ax.styles.textDecoration)){x(az,U,"childNodes");U(az)}A.moveToBookmark(av);aa(A.getRng(K));am.nodeChanged()}else{ad("apply",ap,aw)}}}}function J(ap,az,ar,av){var at=af(ap),aB=at[0],ax,ao,ay=true;function aq(aG){var aF,aE,aD,aI,aH;if(aG.nodeType===1&&F(aG)){aI=ay;ay=F(aG)==="true";aH=true}aF=ak(aG.childNodes);if(ay&&!aH){for(aE=0,aD=at.length;aE=0;ao--){an=au[ao].selector;if(!an||au[ao].defaultBlock){return K}for(at=ap.length-1;at>=0;at--){if(h.is(ap[at],an)){return K}}}}return ah}function S(an,aq,ao){var ap;if(!Y){Y={};ap={};am.on("NodeChange",function(at){var ar=u(at.element),au={};ar=b.grep(ar,function(av){return av.nodeType==1&&!av.getAttribute("data-mce-bogus")});ac(Y,function(av,aw){ac(ar,function(ax){if(H(ax,aw,{},av.similar)){if(!ap[aw]){ac(av,function(ay){ay(true,{node:ax,format:aw,parents:ar})});ap[aw]=av}au[aw]=av;return false}})});ac(ap,function(av,aw){if(!au[aw]){delete ap[aw];ac(av,function(ax){ax(false,{node:at.element,format:aw,parents:ar})})}})})}ac(an.split(","),function(ar){if(!Y[ar]){Y[ar]=[];Y[ar].similar=ao}Y[ar].push(aq)});return this}function ai(an){return f.getCssText(am,an)}y(this,{get:af,register:s,unregister:G,apply:aj,remove:J,toggle:N,match:q,matchAll:E,matchNode:H,canApply:I,formatChanged:S,getCssText:ai});p();ag();am.on("BeforeGetContent",function(an){if(r&&an.format!="raw"){r()}});am.on("mouseup keydown",function(an){if(P){P(an)}});function n(an,ao){if(m(an,ao.inline)){return K}if(m(an,ao.block)){return K}if(ao.selector){return an.nodeType==1&&h.is(an,ao.selector)}}function m(ao,an){ao=ao||"";an=an||"";ao=""+(ao.nodeName||ao);an=""+(an.nodeName||an);return ao.toLowerCase()==an.toLowerCase()}function X(ao,an){return B(h.getStyle(ao,an),an)}function B(ao,an){if(an=="color"||an=="backgroundColor"){ao=h.toHex(ao)}if(an=="fontWeight"&&ao==700){ao="bold"}if(an=="fontFamily"){ao=ao.replace(/[\'\"]/g,"").replace(/,\s+/g,",")}return""+ao}function z(an,ao){if(typeof an!="string"){an=an(ao)}else{if(ao){an=an.replace(/%(\w+)/g,function(aq,ap){return ao[ap]||aq})}}return an}function l(an){return an&&an.nodeType===3&&/^([\t \r\n]+|)$/.test(an.nodeValue)}function ab(ap,ao,an){var aq=h.create(ao,an);ap.parentNode.insertBefore(aq,ap);aq.appendChild(ap);return aq}function w(an,az,aq){var aA,au,ay,ap=an.startContainer,av=an.startOffset,aD=an.endContainer,ax=an.endOffset;function aB(aK){var aF,aI,aH,aG,aE;aF=aI=aK?ap:aD;aG=aK?"previousSibling":"nextSibling";aE=h.getRoot();function aJ(aL){return aL.nodeName=="BR"&&aL.getAttribute("data-mce-bogus")&&!aL.nextSibling}if(aF.nodeType==3&&!l(aF)){if(aK?av>0:axaA?aA:av];if(ap.nodeType==3){av=0}}if(aD.nodeType==1&&aD.hasChildNodes()){aA=aD.childNodes.length-1;aD=aD.childNodes[ax>aA?aA:ax-1];if(aD.nodeType==3){ax=aD.nodeValue.length}}function aC(aF){var aE=aF;while(aE){if(aE.nodeType===1&&F(aE)){return F(aE)==="false"?aE:aF}aE=aE.parentNode}return aF}function aw(aF,aJ,aL){var aI,aG,aK,aE;function aH(aN,aP){var aQ,aM,aO=aN.nodeValue;if(typeof aP=="undefined"){aP=aL?aO.length:0}if(aL){aQ=aO.lastIndexOf(" ",aP);aM=aO.lastIndexOf("\u00a0",aP);aQ=aQ>aM?aQ:aM;if(aQ!==-1&&!aq){aQ++}}else{aQ=aO.indexOf(" ",aP);aM=aO.indexOf("\u00a0",aP);aQ=aQ!==-1&&(aM===-1||aQ0&&au.node.nodeType===3&&au.node.nodeValue.charAt(au.offset-1)===" "){if(au.offset>1){aD=au.node;aD.splitText(au.offset-1)}}}}if(az[0].inline||az[0].block_expand){if(!az[0].inline||(ap.nodeType!=3||av===0)){ap=aB(true)}if(!az[0].inline||(aD.nodeType!=3||ax===aD.nodeValue.length)){aD=aB()}}if(az[0].selector&&az[0].expand!==ah&&!az[0].inline){ap=ar(ap,"previousSibling");aD=ar(aD,"nextSibling")}if(az[0].block||az[0].selector){ap=ao(ap,"previousSibling");aD=ao(aD,"nextSibling");if(az[0].block){if(!Q(ap)){ap=aB(true)}if(!Q(aD)){aD=aB()}}}if(ap.nodeType==1){av=C(ap);ap=ap.parentNode}if(aD.nodeType==1){ax=C(aD)+1;aD=aD.parentNode}return{startContainer:ap,startOffset:av,endContainer:aD,endOffset:ax}}function i(an,ao){return ao.links&&an.tagName=="A"}function al(au,at,aq,an){var ap,ao,ar;if(!n(aq,au)&&!i(aq,au)){return ah}if(au.remove!="all"){ac(au.styles,function(aw,av){aw=B(z(aw,at),av);if(typeof av==="number"){av=aw;an=0}if(au.remove_similar||(!an||m(X(an,av),aw))){h.setStyle(aq,av,"")}ar=1});if(ar&&h.getAttrib(aq,"style")===""){aq.removeAttribute("style");aq.removeAttribute("data-mce-style")}ac(au.attributes,function(ax,av){var aw;ax=z(ax,at);if(typeof av==="number"){av=ax;an=0}if(!an||m(h.getAttrib(an,av),ax)){if(av=="class"){ax=h.getAttrib(aq,av);if(ax){aw="";ac(ax.split(/\s+/),function(ay){if(/mce\-\w+/.test(ay)){aw+=(aw?" ":"")+ay}});if(aw){h.setAttrib(aq,av,aw);return}}}if(av=="class"){aq.removeAttribute("className")}if(k.test(av)){aq.removeAttribute("data-mce-"+av)}aq.removeAttribute(av)}});ac(au.classes,function(av){av=z(av,at);if(!an||h.hasClass(an,av)){h.removeClass(aq,av)}});ao=h.getAttribs(aq);for(ap=0;apap?ap:aq]}if(an.nodeType===3&&ar&&aq>=an.nodeValue.length){an=new d(an,am.getBody()).next()||an}if(an.nodeType===3&&!ar&&aq===0){an=new d(an,am.getBody()).prev()||an}return an}function ad(ay,an,aw,ar){var az="_mce_caret",ao=am.settings.caret_debug;function ap(aD){var aC=h.create("span",{id:az,"data-mce-bogus":true,style:ao?"color:red":""});if(aD){aC.appendChild(am.getDoc().createTextNode(O))}return aC}function ax(aD,aC){while(aD){if((aD.nodeType===3&&aD.nodeValue!==O)||aD.childNodes.length>1){return false}if(aC&&aD.nodeType===1){aC.push(aD)}aD=aD.firstChild}return true}function au(aC){while(aC){if(aC.id===az){return aC}aC=aC.parentNode}}function at(aC){var aD;if(aC){aD=new d(aC,aC);for(aC=aD.current();aC;aC=aD.next()){if(aC.nodeType===3){return aC}}}}function aq(aE,aD){var aF,aC;if(!aE){aE=au(A.getStart());if(!aE){while((aE=h.get(az))){aq(aE,false)}}}else{aC=A.getRng(true);if(ax(aE)){if(aD!==false){aC.setStartBefore(aE);aC.setEndBefore(aE)}h.remove(aE)}else{aF=at(aE);if(aF.nodeValue.charAt(0)===O){aF.deleteData(0,1);if(aC.startContainer==aF&&aC.startOffset>0){aC.setStart(aF,aC.startOffset-1)}if(aC.endContainer==aF&&aC.endOffset>0){aC.setEnd(aF,aC.endOffset-1)}}h.remove(aE,1)}A.setRng(aC)}}function av(){var aE,aC,aI,aH,aF,aD,aG;aE=A.getRng(true);aH=aE.startOffset;aD=aE.startContainer;aG=aD.nodeValue;aC=au(A.getStart());if(aC){aI=at(aC)}if(aG&&aH>0&&aH=0;aH--){aE.appendChild(h.clone(aL[aH],false));aE=aE.firstChild}aE.appendChild(h.doc.createTextNode(O));aE=aE.firstChild;var aF=h.getParent(aM,R);if(aF&&h.isEmpty(aF)){aM.parentNode.replaceChild(aK,aM)}else{h.insertAfter(aK,aM)}A.setCursorLocation(aE,1);if(h.isEmpty(aM)){h.remove(aM)}}}function aB(){var aC;aC=au(A.getStart());if(aC&&!h.isEmpty(aC)){x(aC,function(aD){if(aD.nodeType==1&&aD.id!==az&&!h.isEmpty(aD)){h.setAttrib(aD,"data-mce-bogus",null)}},"childNodes")}}if(!am._hasCaretEvents){r=function(){var aC=[],aD;if(ax(au(A.getStart()),aC)){aD=aC.length;while(aD--){h.setAttrib(aC[aD],"data-mce-bogus","1")}}};P=function(aD){var aC=aD.keyCode;aq();if((aC==8&&A.isCollapsed())||aC==37||aC==39){aq(au(A.getStart()))}aB()};am.on("SetContent",function(aC){if(aC.selection){aB()}});am._hasCaretEvents=true}if(ay=="apply"){av()}else{aA()}}function aa(ao){var an=ao.startContainer,av=ao.startOffset,aq,au,at,ap,ar;if(an.nodeType==3&&av>=an.nodeValue.length){av=C(an);an=an.parentNode;aq=true}if(an.nodeType==1){ap=an.childNodes;an=ap[Math.min(av,ap.length-1)];au=new d(an,h.getParent(an,h.isBlock));if(av>ap.length-1||aq){au.next()}for(at=au.current();at;at=au.next()){if(at.nodeType==3&&!l(at)){ar=h.create("a",{"data-mce-bogus":"all"},O);at.parentNode.insertBefore(ar,at);ao.setStart(at,0);A.setRng(ao);h.remove(ar);return}}}}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/LegacyInput.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/LegacyInput.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/LegacyInput",["tinymce/EditorManager","tinymce/util/Tools"],function(b,a){var d=a.each,c=a.explode;b.on("AddEditor",function(g){var f=g.editor;f.on("preInit",function(){var i,l,k,h=f.settings;function e(n,m){d(m,function(p,o){if(p){k.setStyle(n,o,p)}});k.rename(n,"span")}function j(m){k=f.dom;if(h.convert_fonts_to_spans){d(k.select("font,u,strike",m.node),function(n){i[n.nodeName.toLowerCase()](k,n)})}}if(h.inline_styles){l=c(h.font_size_legacy_values);i={font:function(n,m){e(m,{backgroundColor:m.style.backgroundColor,color:m.color,fontFamily:m.face,fontSize:l[parseInt(m.size,10)-1]})},u:function(n,m){if(f.settings.schema==="html4"){e(m,{textDecoration:"underline"})}},strike:function(n,m){e(m,{textDecoration:"line-through"})}};f.on("PreProcess SetContent",j)}})})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/NodeChange.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/NodeChange.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/NodeChange",["tinymce/dom/RangeUtils","tinymce/Env"],function(b,a){return function(c){var e,d=[];function f(g){var h,j;j=c.$(g).parentsUntil(c.getBody()).add(g);if(j.length===d.length){for(h=j.length;h>=0;h--){if(j[h]!==d[h]){break}}if(h===-1){d=j;return true}}d=j;return false}if(!("onselectionchange" in c.getDoc())){c.on("NodeChange Click MouseUp KeyUp Focus",function(h){var i,g;i=c.selection.getRng();g={startContainer:i.startContainer,startOffset:i.startOffset,endContainer:i.endContainer,endOffset:i.endOffset};if(h.type=="nodechange"||!b.compareRanges(g,e)){c.fire("SelectionChange")}e=g})}c.on("contextmenu",function(){c.fire("SelectionChange")});c.on("SelectionChange",function(){var g=c.selection.getStart(true);if(!a.range&&c.selection.isCollapsed()){return}if(!f(g)&&c.dom.isChildOf(g,c.getBody())){c.nodeChanged({selectionChange:true})}});c.on("MouseUp",function(g){if(!g.isDefaultPrevented()){if(c.selection.getNode().nodeName=="IMG"){setTimeout(function(){c.nodeChanged()},0)}else{c.nodeChanged()}}});this.nodeChanged=function(i){var j=c.selection,k,h,g;if(c.initialized&&j&&!c.settings.disable_nodechange&&!c.settings.readonly){g=c.getBody();k=j.getStart()||g;k=k.ownerDocument!=c.getDoc()?c.getBody():k;if(k.nodeName=="IMG"&&j.isCollapsed()){k=k.parentNode}h=[];c.dom.getParent(k,function(l){if(l===g){return true}h.push(l)});i=i||{};i.element=k;i.parents=h;c.fire("NodeChange",i)}}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/Shortcuts.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/Shortcuts.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/Shortcuts",["tinymce/util/Tools","tinymce/Env"],function(c,b){var f=c.each,e=c.explode;var a={f9:120,f10:121,f11:122};var d=c.makeMap("alt,ctrl,shift,meta,access");return function(j){var i=this,g={};function h(o,p,n,m){var q,l,k;k={func:n,scope:m||j,desc:j.translate(p)};f(e(o,"+"),function(r){if(r in d){k[r]=true}else{if(/^[0-9]{2,}$/.test(r)){k.keyCode=parseInt(r,10)}else{k.charCode=r.charCodeAt(0);k.keyCode=a[r]||r.toUpperCase().charCodeAt(0)}}});q=[k.keyCode];for(l in d){if(k[l]){q.push(l)}else{k[l]=false}}k.id=q.join(",");if(k.access){k.alt=true;if(b.mac){k.ctrl=true}else{k.shift=true}}if(k.meta){if(b.mac){k.meta=true}else{k.ctrl=true;k.meta=false}}return k}j.on("keyup keypress keydown",function(k){if((k.altKey||k.ctrlKey||k.metaKey)&&!k.isDefaultPrevented()){f(g,function(l){if(l.ctrl!=k.ctrlKey||l.meta!=k.metaKey){return}if(l.alt!=k.altKey||l.shift!=k.shiftKey){return}if(k.keyCode==l.keyCode||(k.charCode&&k.charCode==l.charCode)){k.preventDefault();if(k.type=="keydown"){l.func.call(l.scope)}return true}})}});i.add=function(n,o,l,k){var m;m=l;if(typeof l==="string"){l=function(){j.execCommand(m,false,null)}}else{if(c.isArray(m)){l=function(){j.execCommand(m[0],m[1],m[2])}}}f(e(n.toLowerCase()),function(q){var p=h(q,o,l,k);g[p.id]=p});return true};i.remove=function(l){var k=h(l);if(g[k.id]){delete g[k.id];return true}return false}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/UndoManager.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/UndoManager.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/UndoManager",["tinymce/util/VK","tinymce/Env","tinymce/util/Tools","tinymce/html/SaxParser"],function(f,c,d,b){var a=d.trim,e;e=new RegExp(["]+data-mce-bogus[^>]+>[\u200B\uFEFF]+<\\/span>",'\\s?data-mce-selected="[^"]+"'].join("|"),"gi");return function(l){var p=this,m=0,i=[],j,n,o=0;function g(){var v=l.getContent({format:"raw",no_events:1});var t=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g;var q,r,x,w,s,u=l.schema;v=v.replace(e,"");s=u.getShortEndedElements();while((w=t.exec(v))){r=t.lastIndex;x=w[0].length;if(s[w[1]]){q=r}else{q=b.findEndTag(u,v,r)}v=v.substring(0,r-x)+v.substring(q);t.lastIndex=r-x}return a(v)}function k(q){l.isNotDirty=!q}function h(q){p.typing=false;p.add({},q)}l.on("init",function(){p.add()});l.on("BeforeExecCommand",function(r){var q=r.command;if(q!="Undo"&&q!="Redo"&&q!="mceRepaint"){p.beforeChange()}});l.on("ExecCommand",function(r){var q=r.command;if(q!="Undo"&&q!="Redo"&&q!="mceRepaint"){h(r)}});l.on("ObjectResizeStart",function(){p.beforeChange()});l.on("SaveContent ObjectResized blur",h);l.on("DragEnd",h);l.on("KeyUp",function(r){var q=r.keyCode;if((q>=33&&q<=36)||(q>=37&&q<=40)||q==45||q==13||r.ctrlKey){h();l.nodeChanged()}if(q==46||q==8||(c.mac&&(q==91||q==93))){l.nodeChanged()}if(n&&p.typing){if(!l.isDirty()){k(i[0]&&g()!=i[0].content);if(!l.isNotDirty){l.fire("change",{level:i[0],lastLevel:null})}}l.fire("TypingUndo");n=false;l.nodeChanged()}});l.on("KeyDown",function(s){var r=s.keyCode;if((r>=33&&r<=36)||(r>=37&&r<=40)||r==45){if(p.typing){h(s)}return}var q=(s.ctrlKey&&!s.altKey)||s.metaKey;if((r<16||r>20)&&r!=224&&r!=91&&!p.typing&&!q){p.beforeChange();p.typing=true;p.add({},s);n=true}});l.on("MouseDown",function(q){if(p.typing){h(q)}});l.addShortcut("meta+z","","Undo");l.addShortcut("meta+y,meta+shift+z","","Redo");l.on("AddUndo Undo Redo ClearUndos",function(q){if(!q.isDefaultPrevented()){l.nodeChanged()}});p={data:i,typing:false,beforeChange:function(){if(!o){j=l.selection.getBookmark(2,true)}},add:function(v,u){var r,s=l.settings,t;v=v||{};v.content=g();if(o||l.removed){return null}t=i[m];if(l.fire("BeforeAddUndo",{level:v,lastLevel:t,originalEvent:u}).isDefaultPrevented()){return null}if(t&&t.content==v.content){return null}if(i[m]){i[m].beforeBookmark=j}if(s.custom_undo_redo_levels){if(i.length>s.custom_undo_redo_levels){for(r=0;r0){k(true);l.fire("change",q)}return v},undo:function(){var q;if(p.typing){p.add();p.typing=false}if(m>0){q=i[--m];if(m===0){k(false)}l.setContent(q.content,{format:"raw"});l.selection.moveToBookmark(q.beforeBookmark);l.fire("undo",{level:q})}return q},redo:function(){var q;if(m0||(p.typing&&i[0]&&g()!=i[0].content)},hasRedo:function(){return m=C.length&&C.length){B=1;D=Math.max(0,C.length-1)}x.push(e.nodeIndex(C[D],r)+B)}for(;y&&y!=t;y=y.parentNode){x.push(e.nodeIndex(y,r))}return x}v.start=w(u,true);if(!d.isCollapsed()){v.end=w(u)}return v}if(p==2){n=d.getNode();h=n?n.nodeName:null;if(h=="IMG"){return{name:h,index:f(h,n)}}if(d.tridentSel){return d.tridentSel.getBookmark(p)}return k()}if(p){return{rng:d.getRng()}}g=d.getRng();i=e.uniqueId();m=d.isCollapsed();s="overflow:hidden;line-height:0px";if(g.duplicate||g.item){if(!g.item){j=g.duplicate();try{g.collapse();g.pasteHTML(''+l+"");if(!m){j.collapse(false);g.moveToElementText(j.parentElement());if(g.compareEndPoints("StartToEnd",j)===0){j.move("character",-1)}j.pasteHTML(''+l+"")}}catch(o){return null}}else{n=g.item(0);h=n.nodeName;return{name:h,index:f(h,n)}}}else{n=d.getNode();h=n.nodeName;if(h=="IMG"){return{name:h,index:f(h,n)}}j=q(g.cloneRange());if(!m){j.collapse(false);j.insertNode(e.create("span",{"data-mce-type":"bookmark",id:i+"_end",style:s},l))}g=q(g);g.collapse(true);g.insertNode(e.create("span",{"data-mce-type":"bookmark",id:i+"_start",style:s},l))}d.moveToBookmark({id:i,keep:1});return{id:i}};this.moveToBookmark=function(k){var f,n,h,o,l,m;function g(u){var p=k[u?"start":"end"],r,s,t,q;if(p){t=p[0];for(s=n,r=p.length-1;r>=1;r--){q=s.childNodes;if(p[r]>q.length-1){return}s=q[p[r]]}if(s.nodeType===3){t=Math.min(p[0],s.nodeValue.length)}if(s.nodeType===1){t=Math.min(p[0],s.childNodes.length)}if(u){f.setStart(s,t)}else{f.setEnd(s,t)}}return true}function i(v){var q=e.get(k.id+"_"+v),u,p,s,t,r=k.keep;if(q){u=q.parentNode;if(v=="start"){if(!r){p=e.nodeIndex(q)}else{u=q.firstChild;p=1}h=o=u;l=m=p}else{if(!r){p=e.nodeIndex(q)}else{u=q.firstChild;p=1}o=u;m=p}if(!r){t=q.previousSibling;s=q.nextSibling;c.each(c.grep(q.childNodes),function(w){if(w.nodeType==3){w.nodeValue=w.nodeValue.replace(/\uFEFF/g,"")}});while((q=e.get(k.id+"_"+v))){e.remove(q,1)}if(t&&s&&t.nodeType==s.nodeType&&t.nodeType==3&&!a.opera){p=t.nodeValue.length;t.appendData(s.nodeValue);e.remove(s);if(v=="start"){h=o=t;l=m=p}else{o=t;m=p}}}}}function j(p){if(e.isBlock(p)&&!p.innerHTML&&!a.ie){p.innerHTML='
'}return p}if(k){if(k.start){f=e.createRng();n=e.getRoot();if(d.tridentSel){return d.tridentSel.moveToBookmark(k)}if(g(true)&&g()){d.setRng(f)}}else{if(k.id){i("start");i("end");if(h){f=e.createRng();f.setStart(j(h),l);f.setEnd(j(o),m);d.setRng(f)}}else{if(k.name){d.select(e.select(k.name)[k.index])}else{if(k.rng){d.setRng(k.rng)}}}}}}}b.isBookmarkNode=function(d){return d&&d.tagName==="SPAN"&&d.getAttribute("data-mce-type")==="bookmark"};return b}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/ControlSelection.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/ControlSelection.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/ControlSelection",["tinymce/util/VK","tinymce/util/Tools","tinymce/Env"],function(c,b,a){return function(q,e){var f=e.dom,L=b.each;var n,U,G,I,S,Q;var v,t,E,D,w,B,J,j;var d,g,o=e.getDoc(),R=document,m=a.ie&&a.ie<11;var A=Math.abs,P=Math.round,s=e.getBody(),x,h;I={n:[0.5,0,0,-1],e:[1,0.5,1,0],s:[0.5,1,0,1],w:[0,0.5,-1,0],nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var u=".mce-content-body";e.contentStyles.push(u+" div.mce-resizehandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}"+u+" .mce-resizehandle:hover {background: #000}"+u+" img[data-mce-selected], hr[data-mce-selected] {outline: 1px solid black;resize: none}"+u+" .mce-clonedresizable {position: absolute;"+(a.gecko?"":"outline: 1px dashed black;")+"opacity: .5;filter: alpha(opacity=50);z-index: 10000}"+u+" .mce-resize-helper {background: #555;background: rgba(0,0,0,0.75);border-radius: 3px;border: 1px;color: white;display: none;font-family: sans-serif;font-size: 12px;white-space: nowrap;line-height: 14px;margin: 5px 10px;padding: 5px;position: absolute;z-index: 10001}");function M(W){var V=e.settings.object_resizing;if(V===false||a.iOS){return false}if(typeof V!="string"){V="table,img,div"}if(W.getAttribute("data-mce-resize")==="false"){return false}return e.dom.is(W,V)}function i(Y){var W,V,X;var aa,Z;W=Y.screenX-v;V=Y.screenY-t;d=W*S[2]+w;g=V*S[3]+B;d=d<5?5:d;g=g<5?5:g;if(n.nodeName=="IMG"&&e.settings.resize_img_proportional!==false){X=!c.modifierPressed(Y)}else{X=c.modifierPressed(Y)||(n.nodeName=="IMG"&&S[2]*S[3]!==0)}if(X){if(A(W)>A(V)){g=P(d*J);d=P(g/J)}else{d=P(g/J);g=P(d*J)}}f.setStyles(U,{width:d,height:g});aa=S.startPos.x+W;Z=S.startPos.y+V;aa=aa>0?aa:0;Z=Z>0?Z:0;f.setStyles(G,{left:aa,top:Z,display:"block"});G.innerHTML=d+" × "+g;if(S[2]<0&&U.clientWidth<=d){f.setStyle(U,"left",E+(w-d))}if(S[3]<0&&U.clientHeight<=g){f.setStyle(U,"top",D+(B-g))}W=s.scrollWidth-x;V=s.scrollHeight-h;if(W+V!==0){f.setStyles(G,{left:aa-W,top:Z-V})}if(!j){e.fire("ObjectResizeStart",{target:n,width:w,height:B});j=true}}function H(){j=false;function V(W,X){if(X){if(n.style[W]||!e.schema.isValid(n.nodeName.toLowerCase(),W)){f.setStyle(n,W,X)}else{f.setAttrib(n,W,X)}}}V("width",d);V("height",g);f.unbind(o,"mousemove",i);f.unbind(o,"mouseup",H);if(R!=o){f.unbind(R,"mousemove",i);f.unbind(R,"mouseup",H)}f.remove(U);f.remove(G);if(!m||n.nodeName=="TABLE"){C(n)}e.fire("ObjectResized",{target:n,width:d,height:g});f.setAttrib(n,"style",f.getAttrib(n,"style"));e.nodeChanged()}function C(ab,Z,X){var W,Y,V,ac,aa;T();W=f.getPos(ab,s);E=W.x;D=W.y;aa=ab.getBoundingClientRect();Y=aa.width||(aa.right-aa.left);V=aa.height||(aa.bottom-aa.top);if(n!=ab){N();n=ab;d=g=0}ac=e.fire("ObjectSelected",{target:ab});if(M(ab)&&!ac.isDefaultPrevented()){L(I,function(ag,ae){var af,ah;function ad(ai){v=ai.screenX;t=ai.screenY;w=n.clientWidth;B=n.clientHeight;J=B/w;S=ag;ag.startPos={x:Y*ag[0]+E,y:V*ag[1]+D};x=s.scrollWidth;h=s.scrollHeight;U=n.cloneNode(true);f.addClass(U,"mce-clonedresizable");f.setAttrib(U,"data-mce-bogus","all");U.contentEditable=false;U.unSelectabe=true;f.setStyles(U,{left:E,top:D,margin:0});U.removeAttribute("data-mce-selected");s.appendChild(U);f.bind(o,"mousemove",i);f.bind(o,"mouseup",H);if(R!=o){f.bind(R,"mousemove",i);f.bind(R,"mouseup",H)}G=f.add(s,"div",{"class":"mce-resize-helper","data-mce-bogus":"all"},w+" × "+B)}if(Z){if(ae==Z){ad(X)}return}af=f.get("mceResizeHandle"+ae);if(!af){ah=s;af=f.add(ah,"div",{id:"mceResizeHandle"+ae,"data-mce-bogus":"all","class":"mce-resizehandle",unselectable:true,style:"cursor:"+ae+"-resize; margin:0; padding:0"});if(a.ie){af.contentEditable=false}}else{f.show(af)}if(!ag.elm){f.bind(af,"mousedown",function(ai){ai.stopImmediatePropagation();ai.preventDefault();ad(ai)});ag.elm=af}f.setStyles(af,{left:(Y*ag[0]+E)-(af.offsetWidth/2),top:(V*ag[1]+D)-(af.offsetHeight/2)})})}else{y()}n.setAttribute("data-mce-selected","1")}function y(){var V,W;T();if(n){n.removeAttribute("data-mce-selected")}for(V in I){W=f.get("mceResizeHandle"+V);if(W){f.unbind(W);f.remove(W)}}}function z(Y){var X,V;function W(aa,Z){if(aa){do{if(aa===Z){return true}}while((aa=aa.parentNode))}}if(j){return}L(f.select("img[data-mce-selected],hr[data-mce-selected]"),function(Z){Z.removeAttribute("data-mce-selected")});V=Y.type=="mousedown"?Y.target:q.getNode();V=f.$(V).closest(m?"table":"table,img,hr")[0];if(W(V,s)){F();X=q.getStart(true);if(W(X,V)&&W(q.getEnd(true),V)){if(!m||(V!=X&&X.nodeName!=="IMG")){C(V);return}}}y()}function k(X,V,W){if(X&&X.attachEvent){X.attachEvent("on"+V,W)}}function r(X,V,W){if(X&&X.detachEvent){X.detachEvent("on"+V,W)}}function p(X){var Y=X.srcElement,ac,V,ad,ab,Z,aa,W;ac=Y.getBoundingClientRect();aa=Q.clientX-ac.left;W=Q.clientY-ac.top;for(V in I){ad=I[V];ab=Y.offsetWidth*ad[0];Z=Y.offsetHeight*ad[1];if(A(ab-aa)<8&&A(Z-W)<8){S=ad;break}}j=true;e.fire("ObjectResizeStart",{target:n,width:n.clientWidth,height:n.clientHeight});e.getDoc().selection.empty();C(Y,V,Q)}function O(W){var V=W.srcElement;if(V!=n){e.fire("ObjectSelected",{target:V});N();if(V.id.indexOf("mceResizeHandle")===0){W.returnValue=false;return}if(V.nodeName=="IMG"||V.nodeName=="TABLE"){y();n=V;k(V,"resizestart",p)}}}function N(){r(n,"resizestart",p)}function T(){for(var V in I){var W=I[V];if(W.elm){f.unbind(W.elm);delete W.elm}}}function F(){try{e.getDoc().execCommand("enableObjectResizing",false,false)}catch(V){}}function l(X){var W;if(!m){return}W=o.body.createControlRange();try{W.addElement(X);W.select();return true}catch(V){}}e.on("init",function(){if(m){e.on("ObjectResized",function(V){if(V.target.nodeName!="TABLE"){y();l(V.target)}});k(s,"controlselect",O);e.on("mousedown",function(V){Q=V})}else{F();if(a.ie>=11){e.on("mouseup",function(V){var W=V.target.nodeName;if(!j&&/^(TABLE|IMG|HR)$/.test(W)){e.selection.select(V.target,W=="TABLE");e.nodeChanged()}});e.dom.bind(s,"mscontrolselect",function(V){if(/^(TABLE|IMG|HR)$/.test(V.target.nodeName)){V.preventDefault();if(V.target.tagName=="IMG"){window.setTimeout(function(){e.selection.select(V.target)},0)}}})}}e.on("nodechange ResizeEditor",z);e.on("keydown keyup",function(V){if(n&&n.nodeName=="TABLE"){z(V)}});e.on("hide",y)});e.on("remove",T);function K(){n=U=null;if(m){N();r(s,"controlselect",O)}}return{isResizable:M,showResizeRect:C,hideResizeRect:y,updateResizeRect:z,controlSelect:l,destroy:K}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/DOMUtils.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/DOMUtils.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/DOMUtils",["tinymce/dom/Sizzle","tinymce/dom/DomQuery","tinymce/html/Styles","tinymce/dom/EventUtils","tinymce/dom/TreeWalker","tinymce/dom/Range","tinymce/html/Entities","tinymce/Env","tinymce/util/Tools","tinymce/dom/StyleSheetLoader"],function(c,g,j,f,h,r,d,b,a,m){var e=a.each,i=a.is,k=a.grep,o=a.trim;var n=b.ie;var l=/^([a-z0-9],?)+$/i;var s=/^[ \t\r\n]*$/;function p(u,w){var v={},t=w.keep_values,x;x={set:function(y,A,z){if(w.url_converter){A=w.url_converter.call(w.url_converter_scope||u,A,z,y[0])}y.attr("data-mce-"+z,A).attr(z,A)},get:function(y,z){return y.attr("data-mce-"+z)||y.attr(z)}};v={style:{set:function(y,z){if(z!==null&&typeof z==="object"){y.css(z);return}if(t){y.attr("data-mce-style",z)}y.attr("style",z)},get:function(y){var z=y.attr("data-mce-style")||y.attr("style");z=u.serializeStyle(u.parseStyle(z),y[0].nodeName);return z}}};if(t){v.href=v.src=x}return v}function q(w,u){var t=this,v;t.doc=w;t.win=window;t.files={};t.counter=0;t.stdMode=!n||w.documentMode>=8;t.boxModel=!n||w.compatMode=="CSS1Compat"||t.stdMode;t.styleSheetLoader=new m(w);t.boundEvents=[];t.settings=u=u||{};t.schema=u.schema;t.styles=new j({url_converter:u.url_converter,url_converter_scope:u.url_converter_scope},u.schema);t.fixDoc(w);t.events=u.ownEvents?new f(u.proxy):f.Event;t.attrHooks=p(t,u);v=u.schema?u.schema.getBlockElements():{};t.$=g.overrideDefaults(function(){return{context:w,element:t.getRoot()}});t.isBlock=function(y){if(!y){return false}var x=y.nodeType;if(x){return !!(x===1&&v[y.nodeName])}return !!v[y]}}q.prototype={$$:function(t){if(typeof t=="string"){t=this.get(t)}return this.$(t)},root:null,fixDoc:function(v){var u=this.settings,t;if(n&&u.schema){("abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video").replace(/\w+/g,function(w){v.createElement(w)});for(t in u.schema.getCustomElements()){v.createElement(t)}}},clone:function(v,t){var u=this,x,w;if(!n||v.nodeType!==1||t){return v.cloneNode(t)}w=u.doc;if(!t){x=w.createElement(v.nodeName);e(u.getAttribs(v),function(y){u.setAttrib(x,y.nodeName,u.getAttrib(v,y.nodeName))});return x}return x.firstChild},getRoot:function(){var t=this;return t.settings.root_element||t.doc.body},getViewPort:function(u){var t,v;u=!u?this.win:u;t=u.document;v=this.boxModel?t.documentElement:t.body;return{x:u.pageXOffset||v.scrollLeft,y:u.pageYOffset||v.scrollTop,w:u.innerWidth||v.clientWidth,h:u.innerHeight||v.clientHeight}},getRect:function(w){var t=this,v,u;w=t.get(w);v=t.getPos(w);u=t.getSize(w);return{x:v.x,y:v.y,w:u.w,h:u.h}},getSize:function(x){var u=this,t,v;x=u.get(x);t=u.getStyle(x,"width");v=u.getStyle(x,"height");if(t.indexOf("px")===-1){t=0}if(v.indexOf("px")===-1){v=0}return{w:parseInt(t,10)||x.offsetWidth||x.clientWidth,h:parseInt(v,10)||x.offsetHeight||x.clientHeight}},getParent:function(v,t,u){return this.getParents(v,t,u,false)},getParents:function(y,u,v,z){var x=this,w,t=[];y=x.get(y);z=z===undefined;v=v||(x.getRoot().nodeName!="BODY"?x.getRoot().parentNode:null);if(i(u,"string")){w=u;if(u==="*"){u=function(A){return A.nodeType==1}}else{u=function(A){return x.is(A,w)}}}while(y){if(y==v||!y.nodeType||y.nodeType===9){break}if(!u||u(y)){if(z){t.push(y)}else{return y}}y=y.parentNode}return z?t:null},get:function(u){var t;if(u&&this.doc&&typeof u=="string"){t=u;u=this.doc.getElementById(u);if(u&&u.id!==t){return this.doc.getElementsByName(t)[1]}}return u},getNext:function(u,t){return this._findSib(u,t,"nextSibling")},getPrev:function(u,t){return this._findSib(u,t,"previousSibling")},select:function(t,v){var u=this;return c(t,u.get(v)||u.settings.root_element||u.doc,[])},is:function(w,t){var u;if(w.length===undefined){if(t==="*"){return w.nodeType==1}if(l.test(t)){t=t.toLowerCase().split(/,/);w=w.nodeName.toLowerCase();for(u=t.length-1;u>=0;u--){if(t[u]==w){return true}}return false}}if(w.nodeType&&w.nodeType!=1){return false}var v=w.nodeType?[w]:w;return c(t,v[0].ownerDocument||v[0],null,v).length>0},add:function(y,v,u,x,w){var t=this;return this.run(y,function(A){var z;z=i(v,"string")?t.doc.createElement(v):v;t.setAttribs(z,u);if(x){if(x.nodeType){z.appendChild(x)}else{t.setHTML(z,x)}}return !w?A.appendChild(z):z})},create:function(u,t,v){return this.add(this.doc.createElement(u),u,t,v,1)},createHTML:function(u,t,w){var x="",v;x+="<"+u;for(v in t){if(t.hasOwnProperty(v)&&t[v]!==null&&typeof t[v]!="undefined"){x+=" "+v+'="'+this.encode(t[v])+'"'}}if(typeof w!="undefined"){return x+">"+w+""}return x+" />"},createFragment:function(u){var x,v,w=this.doc,t;t=w.createElement("div");x=w.createDocumentFragment();if(u){t.innerHTML=u}while((v=t.firstChild)){x.appendChild(v)}return x},remove:function(t,u){t=this.$$(t);if(u){t.each(function(){var v;while((v=this.firstChild)){if(v.nodeType==3&&v.data.length===0){this.removeChild(v)}else{this.parentNode.insertBefore(v,this)}}}).remove()}else{t.remove()}return t.length>1?t.toArray():t[0]},setStyle:function(v,t,u){v=this.$$(v).css(t,u);if(this.settings.update_styles){v.attr("data-mce-style",null)}},getStyle:function(v,t,u){v=this.$$(v);if(u){return v.css(t)}t=t.replace(/-(\D)/g,function(x,w){return w.toUpperCase()});if(t=="float"){t=n?"styleFloat":"cssFloat"}return v[0]&&v[0].style?v[0].style[t]:undefined},setStyles:function(u,t){u=this.$$(u).css(t);if(this.settings.update_styles){u.attr("data-mce-style",null)}},removeAllAttribs:function(t){return this.run(t,function(w){var v,u=w.attributes;for(v=u.length-1;v>=0;v--){w.removeAttributeNode(u.item(v))}})},setAttrib:function(z,v,y){var u=this,t,x,w=u.settings;if(y===""){y=null}z=u.$$(z);t=z.attr(v);if(!z.length){return}x=u.attrHooks[v];if(x&&x.set){x.set(z,y,v)}else{z.attr(v,y)}if(t!=y&&w.onSetAttrib){w.onSetAttrib({attrElm:z,attrName:v,attrValue:y})}},setAttribs:function(v,u){var t=this;t.$$(v).each(function(w,x){e(u,function(z,y){t.setAttrib(x,y,z)})})},getAttrib:function(y,u,x){var t=this,w,v;y=t.$$(y);if(y.length){w=t.attrHooks[u];if(w&&w.get){v=w.get(y,u)}else{v=y.attr(u)}}if(typeof v=="undefined"){v=x||""}return v},getPos:function(v,w){var D=this,B=0,A=0,t,C=D.doc,u=C.body,z;v=D.get(v);w=w||u;if(v){if(w===u&&v.getBoundingClientRect&&g(u).css("position")==="static"){z=v.getBoundingClientRect();w=D.boxModel?C.documentElement:u;B=z.left+(C.documentElement.scrollLeft||u.scrollLeft)-w.clientLeft;A=z.top+(C.documentElement.scrollTop||u.scrollTop)-w.clientTop;return{x:B,y:A}}t=v;while(t&&t!=w&&t.nodeType){B+=t.offsetLeft||0;A+=t.offsetTop||0;t=t.offsetParent}t=v.parentNode;while(t&&t!=w&&t.nodeType){B-=t.scrollLeft||0;A-=t.scrollTop||0;t=t.parentNode}}return{x:B,y:A}},parseStyle:function(t){return this.styles.parse(t)},serializeStyle:function(u,t){return this.styles.serialize(u,t)},addStyle:function(w){var u=this,x=u.doc,v,y;if(u!==q.DOM&&x===document){var t=q.DOM.addedStyles;t=t||[];if(t[w]){return}t[w]=true;q.DOM.addedStyles=t}y=x.getElementById("mceDefaultStyles");if(!y){y=x.createElement("style");y.id="mceDefaultStyles";y.type="text/css";v=x.getElementsByTagName("head")[0];if(v.firstChild){v.insertBefore(y,v.firstChild)}else{v.appendChild(y)}}if(y.styleSheet){y.styleSheet.cssText+=w}else{y.appendChild(x.createTextNode(w))}},loadCSS:function(u){var t=this,w=t.doc,v;if(t!==q.DOM&&w===document){q.DOM.loadCSS(u);return}if(!u){u=""}v=w.getElementsByTagName("head")[0];e(u.split(","),function(x){var y;x=a._addCacheSuffix(x);if(t.files[x]){return}t.files[x]=true;y=t.create("link",{rel:"stylesheet",href:x});if(n&&w.documentMode&&w.recalc){y.onload=function(){if(w.recalc){w.recalc()}y.onload=null}}v.appendChild(y)})},addClass:function(u,t){this.$$(u).addClass(t)},removeClass:function(u,t){this.toggleClass(u,t,false)},hasClass:function(u,t){return this.$$(u).hasClass(t)},toggleClass:function(v,t,u){this.$$(v).toggleClass(t,u).each(function(){if(this.className===""){g(this).attr("class",null)}})},show:function(t){this.$$(t).show()},hide:function(t){this.$$(t).hide()},isHidden:function(t){return this.$$(t).css("display")=="none"},uniqueId:function(t){return(!t?"mce_":t)+(this.counter++)},setHTML:function(u,t){u=this.$$(u);if(n){u.each(function(w,x){if(x.canHaveHTML===false){return}while(x.firstChild){x.removeChild(x.firstChild)}try{x.innerHTML="
"+t;x.removeChild(x.firstChild)}catch(v){g("
").html("
"+t).contents().slice(1).appendTo(x)}return t})}else{u.html(t)}},getOuterHTML:function(t){t=this.get(t);return t.nodeType==1&&"outerHTML" in t?t.outerHTML:g("
").append(g(t).clone()).html()},setOuterHTML:function(v,u){var t=this;t.$$(v).each(function(){try{if("outerHTML" in this){this.outerHTML=u;return}}catch(w){}t.remove(g(this).html(u),true)})},decode:d.decode,encode:d.encodeAllRaw,insertAfter:function(u,t){t=this.get(t);return this.run(u,function(w){var v,x;v=t.parentNode;x=t.nextSibling;if(x){v.insertBefore(w,x)}else{v.appendChild(w)}return w})},replace:function(v,u,w){var t=this;return t.run(u,function(x){if(i(x,"array")){v=v.cloneNode(true)}if(w){e(k(x.childNodes),function(y){v.appendChild(y)})}return x.parentNode.replaceChild(v,x)})},rename:function(w,u){var t=this,v;if(w.nodeName!=u.toUpperCase()){v=t.create(u);e(t.getAttribs(w),function(x){t.setAttrib(v,x.nodeName,t.getAttrib(w,x.nodeName))});t.replace(v,w,1)}return v||w},findCommonAncestor:function(v,t){var w=v,u;while(w){u=t;while(u&&w!=u){u=u.parentNode}if(w==u){break}w=w.parentNode}if(!w&&v.ownerDocument){return v.ownerDocument.documentElement}return w},toHex:function(t){return this.styles.toHex(a.trim(t))},run:function(x,w,v){var u=this,t;if(typeof x==="string"){x=u.get(x)}if(!x){return false}v=v||this;if(!x.nodeType&&(x.length||x.length===0)){t=[];e(x,function(z,y){if(z){if(typeof z=="string"){z=u.get(z)}t.push(w.call(v,z,y))}});return t}return w.call(v,x)},getAttribs:function(v){var t;v=this.get(v);if(!v){return[]}if(n){t=[];if(v.nodeName=="OBJECT"){return v.attributes}if(v.nodeName==="OPTION"&&this.getAttrib(v,"selected")){t.push({specified:1,nodeName:"selected"})}var u=/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi;v.cloneNode(false).outerHTML.replace(u,"").replace(/[\w:\-]+/gi,function(w){t.push({specified:1,nodeName:w})});return t}return v.attributes},isEmpty:function(w,u){var B=this,y,x,A,t,v,z=0;w=w.firstChild;if(w){t=new h(w,w.parentNode);u=u||(B.schema?B.schema.getNonEmptyElements():null);do{A=w.nodeType;if(A===1){if(w.getAttribute("data-mce-bogus")){continue}v=w.nodeName.toLowerCase();if(u&&u[v]){if(v==="br"){z++;continue}return false}x=B.getAttribs(w);y=x.length;while(y--){v=x[y].nodeName;if(v==="name"||v==="data-mce-bookmark"){return false}}}if(A==8){return false}if((A===3&&!s.test(w.nodeValue))){return false}}while((w=t.next()))}return z<=1},createRng:function(){var t=this.doc;return t.createRange?t.createRange():new r(this)},nodeIndex:function(w,x){var t=0,v,u;if(w){for(v=w.nodeType,w=w.previousSibling;w;w=w.previousSibling){u=w.nodeType;if(x&&u==3){if(u==v||!w.nodeValue.length){continue}}t++;v=u}}return t},split:function(x,y,u){var B=this,t=B.createRng(),z,w,A;function v(G){var E,D=G.childNodes,F=G.nodeType;function H(K){var J=K.previousSibling&&K.previousSibling.nodeName=="SPAN";var I=K.nextSibling&&K.nextSibling.nodeName=="SPAN";return J&&I}if(F==1&&G.getAttribute("data-mce-type")=="bookmark"){return}for(E=D.length-1;E>=0;E--){v(D[E])}if(F!=9){if(F==3&&G.nodeValue.length>0){var C=o(G.nodeValue).length;if(!B.isBlock(G.parentNode)||C>0||C===0&&H(G)){return}}else{if(F==1){D=G.childNodes;if(D.length==1&&D[0]&&D[0].nodeType==1&&D[0].getAttribute("data-mce-type")=="bookmark"){G.parentNode.insertBefore(D[0],G)}if(D.length||/^(br|hr|input|img)$/i.test(G.nodeName)){return}}}B.remove(G)}return G}if(x&&y){t.setStart(x.parentNode,B.nodeIndex(x));t.setEnd(y.parentNode,B.nodeIndex(y));z=t.extractContents();t=B.createRng();t.setStart(y.parentNode,B.nodeIndex(y)+1);t.setEnd(x.parentNode,B.nodeIndex(x)+1);w=t.extractContents();A=x.parentNode;A.insertBefore(v(z),x);if(u){A.replaceChild(u,y)}else{A.insertBefore(y,x)}A.insertBefore(v(w),x);B.remove(x);return u||y}},bind:function(y,u,x,w){var t=this;if(a.isArray(y)){var v=y.length;while(v--){y[v]=t.bind(y[v],u,x,w)}return y}if(t.settings.collect&&(y===t.doc||y===t.win)){t.boundEvents.push([y,u,x,w])}return t.events.bind(y,u,x,w||t)},unbind:function(y,u,x){var t=this,v;if(a.isArray(y)){v=y.length;while(v--){y[v]=t.unbind(y[v],u,x)}return y}if(t.boundEvents&&(y===t.doc||y===t.win)){v=t.boundEvents.length;while(v--){var w=t.boundEvents[v];if(y==w[0]&&(!u||u==w[1])&&(!x||x==w[2])){this.events.unbind(w[0],w[1],w[2])}}}return this.events.unbind(y,u,x)},fire:function(v,u,t){return this.events.fire(v,u,t)},getContentEditable:function(u){var t;if(!u||u.nodeType!=1){return null}t=u.getAttribute("data-mce-contenteditable");if(t&&t!=="inherit"){return t}return u.contentEditable!=="inherit"?u.contentEditable:null},getContentEditableParent:function(u){var t=this.getRoot(),v=null;for(;u&&u!==t;u=u.parentNode){v=this.getContentEditable(u);if(v!==null){break}}return v},destroy:function(){var t=this;if(t.boundEvents){var u=t.boundEvents.length;while(u--){var v=t.boundEvents[u];this.events.unbind(v[0],v[1],v[2])}t.boundEvents=null}if(c.setDocument){c.setDocument()}t.win=t.doc=t.root=t.events=t.frag=null},isChildOf:function(u,t){while(u){if(t===u){return true}u=u.parentNode}return false},dumpRng:function(t){return("startContainer: "+t.startContainer.nodeName+", startOffset: "+t.startOffset+", endContainer: "+t.endContainer.nodeName+", endOffset: "+t.endOffset)},_findSib:function(x,t,v){var u=this,w=t;if(x){if(typeof w=="string"){w=function(y){return u.is(y,t)}}for(x=x[v];x;x=x[v]){if(w(x)){return x}}}return null}};q.DOM=new q(document);return q}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/DomQuery.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/DomQuery.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/DomQuery",["tinymce/dom/EventUtils","tinymce/dom/Sizzle","tinymce/util/Tools","tinymce/Env"],function(l,i,f,g){var H=document,n=Array.prototype.push,w=Array.prototype.slice;var t=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/;var G=l.Event,h;function c(I){return typeof I!=="undefined"}function q(I){return typeof I==="string"}function B(I){return I&&I==I.window}function v(K,J){var M,L,I;J=J||H;I=J.createElement("div");M=J.createDocumentFragment();I.innerHTML=K;while((L=I.firstChild)){M.appendChild(L)}return M}function s(I,L,M,J){var K;if(q(L)){L=v(L,r(I[0]))}else{if(L.length&&!L.nodeType){L=j.makeArray(L);if(J){for(K=L.length-1;K>=0;K--){s(I,L[K],M,J)}}else{for(K=0;K"&&I.length>=3){K=[null,I,null]}else{K=t.exec(I)}if(K){if(K[1]){M=v(I,r(L)).firstChild;while(M){n.call(J,M);M=M.nextSibling}}else{M=r(L).getElementById(K[2]);if(!M){return J}if(M.id!==K[2]){return J.find(I)}J.length=1;J[0]=M}}else{return j(L).find(I)}}else{this.add(I,false)}return J},toArray:function(){return f.toArray(this)},add:function(K,M){var J=this,I,L;if(q(K)){return J.add(j(K))}if(M!==false){I=j.unique(J.toArray().concat(j.makeArray(K)));J.length=I.length;for(L=0;L1){K=j.unique(K);if(I.indexOf("parents")===0){K=K.reverse()}}K=j(K);if(L){return K.filter(L)}return K}});k({parentsUntil:function(I,J){return u(I,"parentNode",J)},nextUntil:function(I,J){return A(I,"nextSibling",1,J).slice(1)},prevUntil:function(I,J){return A(I,"previousSibling",1,J).slice(1)}},function(I,J){j.fn[I]=function(L,N){var M=this,K=[];M.each(function(){var O=J.call(K,this,L,K);if(O){if(j.isArray(O)){K.push.apply(K,O)}else{K.push(O)}}});if(this.length>1){K=j.unique(K);if(I.indexOf("parents")===0||I==="prevUntil"){K=K.reverse()}}K=j(K);if(N){return K.filter(N)}return K}});j.fn.is=function(I){return !!I&&this.filter(I).length>0};j.fn.init.prototype=j.fn;j.overrideDefaults=function(K){var J;function I(L,M){J=J||K();if(arguments.length===0){L=J.element}if(!M){M=J.context}return new I.fn.init(L,M)}j.extend(I,this);return I};function m(K,J,I){k(I,function(L,M){K[L]=K[L]||{};K[L][J]=M})}if(g.ie&&g.ie<8){m(E,"get",{maxlength:function(J){var I=J.maxLength;if(I===2147483647){return h}return I},size:function(J){var I=J.size;if(I===20){return h}return I},"class":function(I){return I.className},style:function(J){var I=J.style.cssText;if(I.length===0){return h}return I}});m(E,"set",{"class":function(J,I){J.className=I},style:function(J,I){J.style.cssText=I}})}if(g.ie&&g.ie<9){e["float"]="styleFloat";m(F,"set",{opacity:function(K,J){var I=K.style;if(J===null||J===""){I.removeAttribute("filter")}else{I.zoom=1;I.filter="alpha(opacity="+(J*100)+")"}}})}j.attrHooks=E;j.cssHooks=F;return j}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/ElementUtils.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/ElementUtils.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/ElementUtils",["tinymce/dom/BookmarkManager","tinymce/util/Tools"],function(a,c){var d=c.each;function b(e){this.compare=function(h,g){if(h.nodeName!=g.nodeName){return false}function f(j){var k={};d(e.getAttribs(j),function(l){var m=l.nodeName.toLowerCase();if(m.indexOf("_")!==0&&m!=="style"&&m!=="data-mce-style"){k[m]=e.getAttrib(j,m)}});return k}function i(m,l){var k,j;for(j in m){if(m.hasOwnProperty(j)){k=l[j];if(typeof k=="undefined"){return false}if(m[j]!=k){return false}delete l[j]}}for(j in l){if(l.hasOwnProperty(j)){return false}}return true}if(!i(f(h),f(g))){return false}if(!i(e.parseStyle(e.getAttrib(h,"style")),e.parseStyle(e.getAttrib(g,"style")))){return false}return !a.isBookmarkNode(h)&&!a.isBookmarkNode(g)}}return b}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/EventUtils.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/EventUtils.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/EventUtils",[],function(){var g="mce-data-";var c=/^(?:mouse|contextmenu)|click/;var b={keyLocation:1,layerX:1,layerY:1,returnValue:1};function d(k,j,l,i){if(k.addEventListener){k.addEventListener(j,l,i||false)}else{if(k.attachEvent){k.attachEvent("on"+j,l)}}}function f(k,j,l,i){if(k.removeEventListener){k.removeEventListener(j,l,i||false)}else{if(k.detachEvent){k.detachEvent("on"+j,l)}}}function a(k,o){var j,i=o||{},m;function l(){return false}function n(){return true}for(j in k){if(!b[j]){i[j]=k[j]}}if(!i.target){i.target=i.srcElement||document}if(k&&c.test(k.type)&&k.pageX===m&&k.clientX!==m){var r=i.target.ownerDocument||document;var q=r.documentElement;var p=r.body;i.pageX=k.clientX+(q&&q.scrollLeft||p&&p.scrollLeft||0)-(q&&q.clientLeft||p&&p.clientLeft||0);i.pageY=k.clientY+(q&&q.scrollTop||p&&p.scrollTop||0)-(q&&q.clientTop||p&&p.clientTop||0)}i.preventDefault=function(){i.isDefaultPrevented=n;if(k){if(k.preventDefault){k.preventDefault()}else{k.returnValue=false}}};i.stopPropagation=function(){i.isPropagationStopped=n;if(k){if(k.stopPropagation){k.stopPropagation()}else{k.cancelBubble=true}}};i.stopImmediatePropagation=function(){i.isImmediatePropagationStopped=n;i.stopPropagation()};if(!i.isDefaultPrevented){i.isDefaultPrevented=l;i.isPropagationStopped=l;i.isImmediatePropagationStopped=l}return i}function e(n,p,k){var m=n.document,l={type:"ready"};if(k.domLoaded){p(l);return}function j(){if(!k.domLoaded){k.domLoaded=true;p(l)}}function i(){if(m.readyState==="complete"||(m.readyState==="interactive"&&m.body)){f(m,"readystatechange",i);j()}}function o(){try{m.documentElement.doScroll("left")}catch(q){setTimeout(o,0);return}j()}if(m.addEventListener){if(m.readyState==="complete"){j()}else{d(n,"DOMContentLoaded",j)}}else{d(m,"readystatechange",i);if(m.documentElement.doScroll&&n.self===n.top){o()}}d(n,"load",j)}function h(){var i=this,k={},m,p,j,l,o;p=g+(+new Date()).toString(32);l="onmouseenter" in document.documentElement;j="onfocusin" in document.documentElement;o={mouseenter:"mouseover",mouseleave:"mouseout"};m=1;i.domLoaded=false;i.events=k;function n(t,w){var s,u,r,v,q=k[w];s=q&&q[t.type];if(s){for(u=0,r=s.length;u=W.nodeValue.length){c.insertAfter(Z,W)}else{Y=W.splitText(V);W.parentNode.insertBefore(Z,Y)}}}else{if(W.childNodes.length>0){X=W.childNodes[V]}if(X){W.insertBefore(Z,X)}else{if(W.nodeType==3){c.insertAfter(Z,W)}else{W.appendChild(Z)}}}}function M(W){var V=g.extractContents();g.insertNode(W);W.appendChild(V);g.selectNode(W)}function K(){return l(new b(c),{startContainer:g[i],startOffset:g[U],endContainer:g[O],endOffset:g[z],collapsed:g.collapsed,commonAncestorContainer:g.commonAncestorContainer})}function N(V,W){var X;if(V.nodeType==3){return V}if(W<0){return V}X=V.firstChild;while(X&&W>0){--W;X=X.nextSibling}if(X){return X}return V}function n(){return(g[i]==g[O]&&g[U]==g[z])}function G(Y,aa,W,Z){var ab,X,V,ac,ae,ad;if(Y==W){if(aa==Z){return 0}if(aa0){g.collapse(W)}}else{g.collapse(W)}g.collapsed=n();g.commonAncestorContainer=c.findCommonAncestor(g[i],g[O])}function m(ac){var ab,Y=0,ae=0,W,aa,X,Z,V,ad;if(g[i]==g[O]){return f(ac)}for(ab=g[O],W=ab.parentNode;W;ab=W,W=W.parentNode){if(W==g[i]){return s(ab,ac)}++Y}for(ab=g[i],W=ab.parentNode;W;ab=W,W=W.parentNode){if(W==g[O]){return T(ab,ac)}++ae}aa=ae-Y;X=g[i];while(aa>0){X=X.parentNode;aa--}Z=g[O];while(aa<0){Z=Z.parentNode;aa++}for(V=X.parentNode,ad=Z.parentNode;V!=ad;V=V.parentNode,ad=ad.parentNode){X=V;Z=ad}return p(X,Z,ac)}function f(ab){var ad,ae,V,X,Y,ac,Z,W,aa;if(ab!=k){ad=w()}if(g[U]==g[z]){return ad}if(g[i].nodeType==3){ae=g[i].nodeValue;V=ae.substring(g[U],g[z]);if(ab!=E){X=g[i];W=g[U];aa=g[z]-g[U];if(W===0&&aa>=X.nodeValue.length-1){X.parentNode.removeChild(X)}else{X.deleteData(W,aa)}g.collapse(D)}if(ab==k){return}if(V.length>0){ad.appendChild(e.createTextNode(V))}return ad}X=N(g[i],g[U]);Y=g[z]-g[U];while(X&&Y>0){ac=X.nextSibling;Z=y(X,ab);if(ad){ad.appendChild(Z)}--Y;X=ac}if(ab!=E){g.collapse(D)}return ad}function s(ac,Z){var ab,aa,W,V,Y,X;if(Z!=k){ab=w()}aa=j(ac,Z);if(ab){ab.appendChild(aa)}W=o(ac);V=W-g[U];if(V<=0){if(Z!=E){g.setEndBefore(ac);g.collapse(Q)}return ab}aa=ac.previousSibling;while(V>0){Y=aa.previousSibling;X=y(aa,Z);if(ab){ab.insertBefore(X,ab.firstChild)}--V;aa=Y}if(Z!=E){g.setEndBefore(ac);g.collapse(Q)}return ab}function T(aa,Z){var ac,W,ab,V,Y,X;if(Z!=k){ac=w()}ab=P(aa,Z);if(ac){ac.appendChild(ab)}W=o(aa);++W;V=g[z]-W;ab=aa.nextSibling;while(ab&&V>0){Y=ab.nextSibling;X=y(ab,Z);if(ac){ac.appendChild(X)}--V;ab=Y}if(Z!=E){g.setStartAfter(aa);g.collapse(D)}return ac}function p(Z,V,ac){var W,ae,aa,ab,X,ad,Y;if(ac!=k){ae=w()}W=P(Z,ac);if(ae){ae.appendChild(W)}aa=o(Z);ab=o(V);++aa;X=ab-aa;ad=Z.nextSibling;while(X>0){Y=ad.nextSibling;W=y(ad,ac);if(ae){ae.appendChild(W)}ad=Y;--X}W=j(V,ac);if(ae){ae.appendChild(W)}if(ac!=E){g.setStartAfter(Z);g.collapse(D)}return ae}function j(ab,ac){var X=N(g[O],g[z]-1),ad,aa;var Z,V,W,Y=X!=g[O];if(X==ab){return L(X,Y,Q,ac)}ad=X.parentNode;aa=L(ad,Q,Q,ac);while(ad){while(X){Z=X.previousSibling;V=L(X,Y,Q,ac);if(ac!=k){aa.insertBefore(V,aa.firstChild)}Y=D;X=Z}if(ad==ab){return aa}X=ad.previousSibling;ad=ad.parentNode;W=L(ad,Q,Q,ac);if(ac!=k){W.appendChild(aa)}aa=W}}function P(ab,ac){var Y=N(g[i],g[U]),Z=Y!=g[i];var ad,aa,X,V,W;if(Y==ab){return L(Y,Z,D,ac)}ad=Y.parentNode;aa=L(ad,Q,D,ac);while(ad){while(Y){X=Y.nextSibling;V=L(Y,Z,D,ac);if(ac!=k){aa.appendChild(V)}Z=D;Y=X}if(ad==ab){return aa}Y=ad.nextSibling;ad=ad.parentNode;W=L(ad,Q,D,ac);if(ac!=k){W.appendChild(aa)}aa=W}}function L(V,Z,ac,ad){var Y,X,aa,W,ab;if(Z){return y(V,ad)}if(V.nodeType==3){Y=V.nodeValue;if(ac){W=g[U];X=Y.substring(W);aa=Y.substring(0,W)}else{W=g[z];X=Y.substring(0,W);aa=Y.substring(W)}if(ad!=E){V.nodeValue=aa}if(ad==k){return}ab=c.clone(V,Q);ab.nodeValue=X;return ab}if(ad==k){return}return c.clone(V,Q)}function y(W,V){if(V!=k){return V==E?c.clone(W,D):W}W.parentNode.removeChild(W)}function R(){return c.create("body",null,d()).outerText}l(g,{startContainer:e,startOffset:0,endContainer:e,endOffset:0,collapsed:D,commonAncestorContainer:e,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:r,setEnd:t,setStartBefore:h,setStartAfter:I,setEndBefore:J,setEndAfter:u,collapse:A,selectNode:x,selectNodeContents:F,compareBoundaryPoints:v,deleteContents:q,extractContents:H,cloneContents:d,insertNode:C,surroundContents:M,cloneRange:K,toStringIE:R});return g}b.prototype.toString=function(){return this.toStringIE()};return b}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/RangeUtils.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/RangeUtils.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/RangeUtils",["tinymce/util/Tools","tinymce/dom/TreeWalker"],function(a,b){var d=a.each;function e(f,g){var h=f.childNodes;g--;if(g>h.length-1){g=h.length-1}else{if(g<0){g=0}}return h[g]||f}function c(f){this.walk=function(g,v){var l=g.startContainer,o=g.startOffset,w=g.endContainer,p=g.endOffset,m,j,r,k,u,t,h;h=f.select("td.mce-item-selected,th.mce-item-selected");if(h.length>0){d(h,function(x){v([x])});return}function i(x){var y;y=x[0];if(y.nodeType===3&&y===l&&o>=y.nodeValue.length){x.splice(0,1)}y=x[x.length-1];if(p===0&&x.length>0&&y===w&&y.nodeType===3){x.splice(x.length-1,1)}return x}function s(z,y,x){var A=[];for(;z&&z!=x;z=z[y]){A.push(z)}return A}function q(y,x){do{if(y.parentNode==x){return y}y=y.parentNode}while(y)}function n(z,y,A){var x=A?"nextSibling":"previousSibling";for(k=z,u=k.parentNode;k&&k!=y;k=u){u=k.parentNode;t=s(k==z?k:k[x],x);if(t.length){if(!A){t.reverse()}v(i(t))}}}if(l.nodeType==1&&l.hasChildNodes()){l=l.childNodes[o]}if(w.nodeType==1&&w.hasChildNodes()){w=e(w,p)}if(l==w){return v(i([l]))}m=f.findCommonAncestor(l,w);for(k=l;k;k=k.parentNode){if(k===w){return n(l,m,true)}if(k===m){break}}for(k=w;k;k=k.parentNode){if(k===l){return n(w,m)}if(k===m){break}}j=q(l,m)||l;r=q(w,m)||w;n(l,j,true);t=s(j==l?j:j.nextSibling,"nextSibling",r==w?r.nextSibling:r);if(t.length){v(i(t))}n(w,r)};this.split=function(h){var k=h.startContainer,g=h.startOffset,l=h.endContainer,j=h.endOffset;function i(m,n){return m.splitText(n)}if(k==l&&k.nodeType==3){if(g>0&&gg){j=j-g;k=l=i(l,j).previousSibling;j=l.nodeValue.length;g=0}else{j=0}}}else{if(k.nodeType==3&&g>0&&g0&&j0){l=n;p=z?n.nodeValue.length:0;j=true;return}if(f.isBlock(n)||q[n.nodeName.toLowerCase()]){return}x=n}if(i&&x){l=x;j=true;p=0}}l=g[(m?"start":"end")+"Container"];p=g[(m?"start":"end")+"Offset"];o=l.nodeType==1&&p===l.childNodes.length;q=f.schema.getNonEmptyElements();t=m;if(l.nodeType==1&&p>l.childNodes.length-1){t=false}if(l.nodeType===9){l=f.getRoot();p=0}if(l===r){if(t){n=l.childNodes[p>0?p-1:0];if(n){if(q[n.nodeName]||n.nodeName=="TABLE"){return}}}if(l.hasChildNodes()){p=Math.min(!t&&p>0?p-1:p,l.childNodes.length-1);l=l.childNodes[p];p=0;if(l.hasChildNodes()&&!/TABLE/.test(l.nodeName)){n=l;k=new b(l,r);do{if(n.nodeType===3&&n.nodeValue.length>0){p=t?0:n.nodeValue.length;l=n;j=true;break}if(q[n.nodeName.toLowerCase()]){p=f.nodeIndex(n);l=n.parentNode;if(n.nodeName=="IMG"&&!t){p++}j=true;break}}while((n=(t?k.next():k.prev())))}}}if(i){if(l.nodeType===3&&p===0){u(true)}if(l.nodeType===1){n=l.childNodes[p];if(!n){n=l.childNodes[p-1]}if(n&&n.nodeName==="BR"&&!s(n,"A")&&!v(n)&&!v(n,true)){u(true,n)}}}if(t&&!i&&l.nodeType===3&&p===l.nodeValue.length){u(false)}if(j){g["set"+(m?"Start":"End")](l,p)}}i=g.collapsed;h(true);if(!i){h()}if(j&&i){g.collapse(true)}return j}}c.compareRanges=function(g,f){if(g&&f){if(g.item||g.duplicate){if(g.item&&f.item&&g.item(0)===f.item(0)){return true}if(g.isEqual&&f.isEqual&&f.isEqual(g)){return true}}else{return g.startContainer==f.startContainer&&g.startOffset==f.startOffset}}return false};c.getCaretRangeFromPoint=function(g,k,j){var h,f;if(j.caretPositionFromPoint){f=j.caretPositionFromPoint(g,k);h=j.createRange();h.setStart(f.offsetNode,f.offset);h.collapse(true)}else{if(j.caretRangeFromPoint){h=j.caretRangeFromPoint(g,k)}else{if(j.body.createTextRange){h=j.body.createTextRange();try{h.moveToPoint(g,k);h.collapse(true)}catch(i){h.collapse(k=f.childNodes.length){g=f.childNodes.length-1}f=f.childNodes[g]}return f};return c}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/ScriptLoader.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/ScriptLoader.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/ScriptLoader",["tinymce/dom/DOMUtils","tinymce/util/Tools"],function(e,a){var c=e.DOM;var d=a.each,b=a.grep;function f(){var h=0,o=1,m=2,p={},n=[],j={},i=[],l=0,k;function g(s,w){var t=c,v,u;function q(){t.remove(u);if(v){v.onreadystatechange=v.onload=v=null}w()}function r(){if(typeof console!=="undefined"&&console.log){console.log("Failed to load: "+s)}}u=t.uniqueId();v=document.createElement("script");v.id=u;v.type="text/javascript";v.src=a._addCacheSuffix(s);if("onreadystatechange" in v){v.onreadystatechange=function(){if(/loaded|complete/.test(v.readyState)){q()}}}else{v.onload=q}v.onerror=r;(document.getElementsByTagName("head")[0]||document.body).appendChild(v)}this.isDone=function(q){return p[q]==m};this.markDone=function(q){p[q]=m};this.add=this.load=function(q,t,r){var s=p[q];if(s==k){n.push(q);p[q]=h}if(t){if(!j[q]){j[q]=[]}j[q].push({func:t,scope:r||this})}};this.loadQueue=function(r,q){this.loadScripts(n,r,q)};this.loadScripts=function(q,u,t){var s;function r(v){d(j[v],function(w){w.func.call(w.scope)});j[v]=k}i.push({func:u,scope:t||this});s=function(){var v=b(q);q.length=0;d(v,function(w){if(p[w]==m){r(w);return}if(p[w]!=o){p[w]=o;l++;g(w,function(){p[w]=m;l--;r(w);s()})}});if(!l){d(i,function(w){w.func.call(w.scope)});i.length=0}};s()}}f.ScriptLoader=new f();return f}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/Selection.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/Selection.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/Selection",["tinymce/dom/TreeWalker","tinymce/dom/TridentSelection","tinymce/dom/ControlSelection","tinymce/dom/RangeUtils","tinymce/dom/BookmarkManager","tinymce/Env","tinymce/util/Tools"],function(i,g,a,e,j,f,d){var h=d.each,c=d.trim;var b=f.ie;function k(p,o,n,m){var l=this;l.dom=p;l.win=o;l.serializer=n;l.editor=m;l.bookmarkManager=new j(l);l.controlSelection=new a(l,m);if(!l.win.getSelection){l.tridentSel=new g(l)}}k.prototype={setCursorLocation:function(n,o){var m=this,l=m.dom.createRng();if(!n){m._moveEndPoint(l,m.editor.getBody(),true);m.setRng(l)}else{l.setStart(n,o);l.setEnd(n,o);m.setRng(l);m.collapse(false)}},getContent:function(p){var n=this,m=n.getRng(),l=n.dom.create("body");var s=n.getSel(),r,q,o;p=p||{};r=q="";p.get=true;p.format=p.format||"html";p.selection=true;n.editor.fire("BeforeGetContent",p);if(p.format=="text"){return n.isCollapsed()?"":(m.text||(s.toString?s.toString():""))}if(m.cloneContents){o=m.cloneContents();if(o){l.appendChild(o)}}else{if(m.item!==undefined||m.htmlText!==undefined){l.innerHTML="
"+(m.item?m.item(0).outerHTML:m.htmlText);l.removeChild(l.firstChild)}else{l.innerHTML=m.toString()}}if(/^\s/.test(l.innerHTML)){r=" "}if(/\s+$/.test(l.innerHTML)){q=" "}p.getInner=true;p.content=n.isCollapsed()?"":r+n.serializer.serialize(l,p)+q;n.editor.fire("GetContent",p);return p.content},setContent:function(m,o){var t=this,l=t.getRng(),p,q=t.win.document,s,r;o=o||{format:"html"};o.set=true;o.selection=true;m=o.content=m;if(!o.no_events){t.editor.fire("BeforeSetContent",o)}m=o.content;if(l.insertNode){m+='_';if(l.startContainer==q&&l.endContainer==q){q.body.innerHTML=m}else{l.deleteContents();if(q.body.childNodes.length===0){q.body.innerHTML=m}else{if(l.createContextualFragment){l.insertNode(l.createContextualFragment(m))}else{s=q.createDocumentFragment();r=q.createElement("div");s.appendChild(r);r.outerHTML=m;l.insertNode(s)}}}p=t.dom.get("__caret");l=q.createRange();l.setStartBefore(p);l.setEndBefore(p);t.setRng(l);t.dom.remove("__caret");try{t.setRng(l)}catch(n){}}else{if(l.item){q.execCommand("Delete",false,null);l=t.getRng()}if(/^\s+/.test(m)){l.pasteHTML('_'+m);t.dom.remove("__mce_tmp")}else{l.pasteHTML(m)}}if(!o.no_events){t.editor.fire("SetContent",o)}},getStart:function(r){var n=this,m=n.getRng(),o,l,q,p;if(m.duplicate||m.item){if(m.item){return m.item(0)}q=m.duplicate();q.collapse(1);o=q.parentElement();if(o.ownerDocument!==n.dom.doc){o=n.dom.getRoot()}l=p=m.parentElement();while((p=p.parentNode)){if(p==o){o=l;break}}return o}else{o=m.startContainer;if(o.nodeType==1&&o.hasChildNodes()){if(!r||!m.collapsed){o=o.childNodes[Math.min(o.childNodes.length-1,m.startOffset)]}}if(o&&o.nodeType==3){return o.parentNode}return o}},getEnd:function(p){var m=this,l=m.getRng(),o,n;if(l.duplicate||l.item){if(l.item){return l.item(0)}l=l.duplicate();l.collapse(0);o=l.parentElement();if(o.ownerDocument!==m.dom.doc){o=m.dom.getRoot()}if(o&&o.nodeName=="BODY"){return o.lastChild||o}return o}else{o=l.endContainer;n=l.endOffset;if(o.nodeType==1&&o.hasChildNodes()){if(!p||!l.collapsed){o=o.childNodes[n>0?n-1:n]}}if(o&&o.nodeType==3){return o.parentNode}return o}},getBookmark:function(l,m){return this.bookmarkManager.getBookmark(l,m)},moveToBookmark:function(l){return this.bookmarkManager.moveToBookmark(l)},select:function(p,o){var n=this,q=n.dom,m=q.createRng(),l;n.lastFocusBookmark=null;if(p){if(!o&&n.controlSelection.controlSelect(p)){return}l=q.nodeIndex(p);m.setStart(p.parentNode,l);m.setEnd(p.parentNode,l+1);if(o){n._moveEndPoint(m,p,true);n._moveEndPoint(m,p)}n.setRng(m)}return p},isCollapsed:function(){var m=this,l=m.getRng(),n=m.getSel();if(!l||l.item){return false}if(l.compareEndPoints){return l.compareEndPoints("StartToEnd",l)===0}return !n||l.collapsed},collapse:function(n){var m=this,l=m.getRng(),o;if(l.item){o=l.item(0);l=m.win.document.body.createTextRange();l.moveToElementText(o)}l.collapse(!!n);m.setRng(l)},getSel:function(){var l=this.win;return l.getSelection?l.getSelection():l.document.selection},getRng:function(r){var u=this,t,l,p,s=u.win.document,n;function q(x,y,v){try{return y.compareBoundaryPoints(x,v)}catch(w){return -1}}if(!r&&u.lastFocusBookmark){var m=u.lastFocusBookmark;if(m.startContainer){l=s.createRange();l.setStart(m.startContainer,m.startOffset);l.setEnd(m.endContainer,m.endOffset)}else{l=m}return l}if(r&&u.tridentSel){return u.tridentSel.getRangeAt(0)}try{if((t=u.getSel())){if(t.rangeCount>0){l=t.getRangeAt(0)}else{l=t.createRange?t.createRange():s.createRange()}}}catch(o){}if(b&&l&&l.setStart&&s.selection){try{n=s.selection.createRange()}catch(o){}if(n&&n.item){p=n.item(0);l=s.createRange();l.setStartBefore(p);l.setEndAfter(p)}}if(!l){l=s.createRange?s.createRange():s.body.createTextRange()}if(l.setStart&&l.startContainer.nodeType===9&&l.collapsed){p=u.dom.getRoot();l.setStart(p,0);l.setEnd(p,0)}if(u.selectedRange&&u.explicitRange){if(q(l.START_TO_START,l,u.selectedRange)===0&&q(l.END_TO_END,l,u.selectedRange)===0){l=u.explicitRange}else{u.selectedRange=null;u.explicitRange=null}}return l},setRng:function(l,n){var m=this,p;if(!l){return}if(l.select){try{l.select()}catch(o){}return}if(!m.tridentSel){p=m.getSel();if(p){m.explicitRange=l;try{p.removeAllRanges();p.addRange(l)}catch(o){}if(n===false&&p.extend){p.collapse(l.endContainer,l.endOffset);p.extend(l.startContainer,l.startOffset)}m.selectedRange=p.rangeCount>0?p.getRangeAt(0):null}}else{if(l.cloneRange){try{m.tridentSel.addRange(l);return}catch(o){}}}},setNode:function(m){var l=this;l.setContent(l.dom.getOuterHTML(m));return m},getNode:function(){var s=this,l=s.getRng(),o;var m=l.startContainer,t=l.endContainer;var p=l.startOffset,q=l.endOffset,r=s.dom.getRoot();function n(v,u){var w=v;while(v&&v.nodeType===3&&v.length===0){v=u?v.nextSibling:v.previousSibling}return v||w}if(!l){return r}if(l.setStart){o=l.commonAncestorContainer;if(!l.collapsed){if(m==t){if(q-p<2){if(m.hasChildNodes()){o=m.childNodes[p]}}}if(m.nodeType===3&&t.nodeType===3){if(m.length===p){m=n(m.nextSibling,true)}else{m=m.parentNode}if(q===0){t=n(t.previousSibling,false)}else{t=t.parentNode}if(m&&m===t){return m}}}if(o&&o.nodeType==3){return o.parentNode}return o}o=l.item?l.item(0):l.parentElement();if(o.ownerDocument!==s.win.document){o=r}return o},getSelectedBlocks:function(o,n){var m=this,s=m.dom,p,l,r=[];l=s.getRoot();o=s.getParent(o||m.getStart(),s.isBlock);n=s.getParent(n||m.getEnd(),s.isBlock);if(o&&o!=l){r.push(o)}if(o&&n&&o!=n){p=o;var q=new i(o,l);while((p=q.next())&&p!=n){if(s.isBlock(p)){r.push(p)}}}if(n&&o!=n&&n!=l){r.push(n)}return r},isForward:function(){var n=this.dom,l=this.getSel(),o,m;if(!l||!l.anchorNode||!l.focusNode){return true}o=n.createRng();o.setStart(l.anchorNode,l.anchorOffset);o.collapse(true);m=n.createRng();m.setStart(l.focusNode,l.focusOffset);m.collapse(true);return o.compareBoundaryPoints(o.START_TO_START,m)<=0},normalize:function(){var m=this,l=m.getRng();if(f.range&&new e(m.dom).normalize(l)){m.setRng(l,m.isForward())}return l},selectorChanged:function(l,o){var m=this,n;if(!m.selectorChangedData){m.selectorChangedData={};n={};m.editor.on("NodeChange",function(s){var r=s.element,t=m.dom,p=t.getParents(r,null,t.getRoot()),q={};h(m.selectorChangedData,function(v,u){h(p,function(w){if(t.is(w,u)){if(!n[u]){h(v,function(x){x(true,{node:w,selector:u,parents:p})});n[u]=v}q[u]=v;return false}})});h(n,function(v,u){if(!q[u]){delete n[u];h(v,function(w){w(false,{node:r,selector:u,parents:p})})}})})}if(!m.selectorChangedData[l]){m.selectorChangedData[l]=[]}m.selectorChangedData[l].push(o);return m},getScrollContainer:function(){var l,m=this.dom.getRoot();while(m&&m.nodeName!="BODY"){if(m.scrollHeight>m.clientHeight){l=m;break}m=m.parentNode}return l},scrollIntoView:function(o){var q,t,u=this,n=u.dom,r=n.getRoot(),l,s;function m(A){var v=0,z=0;var w=A;while(w&&w.nodeType){v+=w.offsetLeft||0;z+=w.offsetTop||0;w=w.offsetParent}return{x:v,y:z}}if(r.nodeName!="BODY"){var p=u.getScrollContainer();if(p){q=m(o).y-m(p).y;s=p.clientHeight;l=p.scrollTop;if(ql+s){p.scrollTop=ql+s){u.editor.getWin().scrollTo(0,q0?x:null);s.attr(u,null)}else{x=s.attributes.map[q];if(q==="style"){x=p.serializeStyle(p.parseStyle(x),s.name)}else{if(w){x=w.call(y,x,q,s.name)}}s.attr(q,x.length>0?x:null)}}});l.addAttributeFilter("class",function(q){var r=q.length,s,t;while(r--){s=q[r];t=s.attr("class");if(t){t=s.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,"");s.attr("class",t.length>0?t:null)}}});l.addAttributeFilter("data-mce-type",function(q,s,r){var t=q.length,u;while(t--){u=q[t];if(u.attributes.map["data-mce-type"]==="bookmark"&&!r.cleanup){u.remove()}}});l.addNodeFilter("noscript",function(q){var r=q.length,s;while(r--){s=q[r].firstChild;if(s){s.value=b.decode(s.value)}}});l.addNodeFilter("script,style",function(r,s){var t=r.length,v,w,u;function q(x){return x.replace(/()/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")}while(t--){v=r[t];w=v.firstChild?v.firstChild.value:"";if(s==="script"){u=v.attr("type");if(u){v.attr("type",u=="mce-no/type"?null:u.replace(/^mce\-/,""))}if(w.length>0){v.firstChild.value="// "}}else{if(w.length>0){v.firstChild.value=""}}}});l.addNodeFilter("#comment",function(q){var r=q.length,s;while(r--){s=q[r];if(s.value.indexOf("[CDATA[")===0){s.name="#cdata";s.type=4;s.value=s.value.replace(/^\[CDATA\[|\]\]$/g,"")}else{if(s.value.indexOf("mce:protected ")===0){s.name="#text";s.type=3;s.raw=true;s.value=unescape(s.value).substr(14)}}}});l.addNodeFilter("xml:namespace,input",function(q,r){var s=q.length,t;while(s--){t=q[s];if(t.type===7){t.remove()}else{if(t.type===1){if(r==="input"&&!("type" in t.attributes.map)){t.attr("type","text")}}}}});if(n.fix_list_elements){l.addNodeFilter("ul,ol",function(r){var s=r.length,t,q;while(s--){t=r[s];q=t.parent;if(q.name==="ul"||q.name==="ol"){if(t.prev&&t.prev.name==="li"){t.prev.append(t)}}}})}l.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize",function(q,r){var s=q.length;while(s--){q[s].attr(r,null)}});return{schema:o,addNodeFilter:l.addNodeFilter,addAttributeFilter:l.addAttributeFilter,serialize:function(w,u){var t=this,s,x,r,q,v;if(f.ie&&p.select("script,style,select,map").length>0){v=w.innerHTML;w=w.cloneNode(false);p.setHTML(w,v)}else{w=w.cloneNode(true)}s=w.ownerDocument.implementation;if(s.createHTMLDocument){x=s.createHTMLDocument("");i(w.nodeName=="BODY"?w.childNodes:[w],function(y){x.body.appendChild(x.importNode(y,true))});if(w.nodeName!="BODY"){w=x.body.firstChild}else{w=x.body}r=p.doc;p.doc=x}u=u||{};u.format=u.format||"html";if(u.selection){u.forced_root_block=""}if(!u.no_events){u.node=w;t.onPreProcess(u)}q=new g(n,o);u.content=q.serialize(l.parse(a(u.getInner?w.innerHTML:p.getOuterHTML(w)),u));if(!u.cleanup){u.content=u.content.replace(/\uFEFF/g,"")}if(!u.no_events){t.onPostProcess(u)}if(r){p.doc=r}u.node=null;return u.content},addRules:function(q){o.addValidElements(q)},setRules:function(q){o.setValidElements(q)},onPreProcess:function(q){if(m){m.fire("PreProcess",q)}},onPostProcess:function(q){if(m){m.fire("PostProcess",q)}}}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/Sizzle.jQuery.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/Sizzle.jQuery.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/Sizzle",[],function(){if(!window.jQuery){throw new Error("Load jQuery first")}return jQuery.find}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/Sizzle.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/Sizzle.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/Sizzle",[],function(){var C,aw,s,L,O,m,aa,av,aA,M,ab,ad,G,t,am,ah,au,j,J,ao="sizzle"+-(new Date()),N=window.document,ax=0,ai=0,c=E(),an=E(),K=E(),I=function(i,e){if(i===e){ab=true}return 0},at=typeof undefined,U=1<<31,S=({}).hasOwnProperty,aq=[],ar=aq.pop,Q=aq.push,a=aq.push,r=aq.slice,h=aq.indexOf||function(aC){var aB=0,e=this.length;for(;aB+~]|"+u+")"+u+"*"),y=new RegExp("="+u+"*([^\\]'\"]*?)"+u+"*\\]","g"),W=new RegExp(p),Y=new RegExp("^"+P+"$"),ag={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+ak),PSEUDO:new RegExp("^"+p),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+u+"*(even|odd|(([+-]|)(\\d*)n|)"+u+"*(?:([+-]|)"+u+"*(\\d+)|))"+u+"*\\)|)","i"),bool:new RegExp("^(?:"+b+")$","i"),needsContext:new RegExp("^"+u+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+u+"*((?:-\\d)?\\d*)"+u+"*\\)|)(?=[^-]|$)","i")},g=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,T=/^[^{]+\{\s*\[native \w/,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,af=/[+~]/,R=/'|\\/g,x=new RegExp("\\\\([\\da-f]{1,6}"+u+"?|("+u+")|.)","ig"),aj=function(e,aC,i){var aB="0x"+aC-65536;return aB!==aB||i?aC:aB<0?String.fromCharCode(aB+65536):String.fromCharCode(aB>>10|55296,aB&1023|56320)};try{a.apply((aq=r.call(N.childNodes)),N.childNodes);aq[N.childNodes.length].nodeType}catch(H){a={apply:aq.length?function(i,e){Q.apply(i,r.call(e))}:function(aD,aC){var e=aD.length,aB=0;while((aD[e++]=aC[aB++])){}aD.length=e-1}}}function A(aI,aB,aM,aO){var aN,aF,aG,aK,aL,aE,aD,e,aC,aJ;if((aB?aB.ownerDocument||aB:N)!==G){ad(aB)}aB=aB||G;aM=aM||[];if(!aI||typeof aI!=="string"){return aM}if((aK=aB.nodeType)!==1&&aK!==9){return[]}if(am&&!aO){if((aN=V.exec(aI))){if((aG=aN[1])){if(aK===9){aF=aB.getElementById(aG);if(aF&&aF.parentNode){if(aF.id===aG){aM.push(aF);return aM}}else{return aM}}else{if(aB.ownerDocument&&(aF=aB.ownerDocument.getElementById(aG))&&J(aB,aF)&&aF.id===aG){aM.push(aF);return aM}}}else{if(aN[2]){a.apply(aM,aB.getElementsByTagName(aI));return aM}else{if((aG=aN[3])&&aw.getElementsByClassName){a.apply(aM,aB.getElementsByClassName(aG));return aM}}}}if(aw.qsa&&(!ah||!ah.test(aI))){e=aD=ao;aC=aB;aJ=aK===9&&aI;if(aK===1&&aB.nodeName.toLowerCase()!=="object"){aE=m(aI);if((aD=aB.getAttribute("id"))){e=aD.replace(R,"\\$&")}else{aB.setAttribute("id",e)}e="[id='"+e+"'] ";aL=aE.length;while(aL--){aE[aL]=e+n(aE[aL])}aC=af.test(aI)&&X(aB.parentNode)||aB;aJ=aE.join(",")}if(aJ){try{a.apply(aM,aC.querySelectorAll(aJ));return aM}catch(aH){}finally{if(!aD){aB.removeAttribute("id")}}}}}return av(aI.replace(w,"$1"),aB,aM,aO)}function E(){var i=[];function e(aB,aC){if(i.push(aB+" ")>s.cacheLength){delete e[i.shift()]}return(e[aB+" "]=aC)}return e}function o(e){e[ao]=true;return e}function k(i){var aC=G.createElement("div");try{return !!i(aC)}catch(aB){return false}finally{if(aC.parentNode){aC.parentNode.removeChild(aC)}aC=null}}function ay(aB,aD){var e=aB.split("|"),aC=aB.length;while(aC--){s.attrHandle[e[aC]]=aD}}function d(i,e){var aC=e&&i,aB=aC&&i.nodeType===1&&e.nodeType===1&&(~e.sourceIndex||U)-(~i.sourceIndex||U);if(aB){return aB}if(aC){while((aC=aC.nextSibling)){if(aC===e){return -1}}}return i?1:-1}function B(e){return function(aB){var i=aB.nodeName.toLowerCase();return i==="input"&&aB.type===e}}function f(e){return function(aB){var i=aB.nodeName.toLowerCase();return(i==="input"||i==="button")&&aB.type===e}}function al(e){return o(function(i){i=+i;return o(function(aB,aF){var aD,aC=e([],aB.length,i),aE=aC.length;while(aE--){if(aB[(aD=aC[aE])]){aB[aD]=!(aF[aD]=aB[aD])}}})})}function X(e){return e&&typeof e.getElementsByTagName!==at&&e}aw=A.support={};O=A.isXML=function(e){var i=e&&(e.ownerDocument||e).documentElement;return i?i.nodeName!=="HTML":false};ad=A.setDocument=function(aB){var e,aC=aB?aB.ownerDocument||aB:N,i=aC.defaultView;if(aC===G||aC.nodeType!==9||!aC.documentElement){return G}G=aC;t=aC.documentElement;am=!O(aC);if(i&&i!==i.top){if(i.addEventListener){i.addEventListener("unload",function(){ad()},false)}else{if(i.attachEvent){i.attachEvent("onunload",function(){ad()})}}}aw.attributes=k(function(aD){aD.className="i";return !aD.getAttribute("className")});aw.getElementsByTagName=k(function(aD){aD.appendChild(aC.createComment(""));return !aD.getElementsByTagName("*").length});aw.getElementsByClassName=T.test(aC.getElementsByClassName);aw.getById=k(function(aD){t.appendChild(aD).id=ao;return !aC.getElementsByName||!aC.getElementsByName(ao).length});if(aw.getById){s.find.ID=function(aF,aE){if(typeof aE.getElementById!==at&&am){var aD=aE.getElementById(aF);return aD&&aD.parentNode?[aD]:[]}};s.filter.ID=function(aE){var aD=aE.replace(x,aj);return function(aF){return aF.getAttribute("id")===aD}}}else{delete s.find.ID;s.filter.ID=function(aE){var aD=aE.replace(x,aj);return function(aG){var aF=typeof aG.getAttributeNode!==at&&aG.getAttributeNode("id");return aF&&aF.value===aD}}}s.find.TAG=aw.getElementsByTagName?function(aD,aE){if(typeof aE.getElementsByTagName!==at){return aE.getElementsByTagName(aD)}}:function(aD,aH){var aI,aG=[],aF=0,aE=aH.getElementsByTagName(aD);if(aD==="*"){while((aI=aE[aF++])){if(aI.nodeType===1){aG.push(aI)}}return aG}return aE};s.find.CLASS=aw.getElementsByClassName&&function(aE,aD){if(am){return aD.getElementsByClassName(aE)}};au=[];ah=[];if((aw.qsa=T.test(aC.querySelectorAll))){k(function(aD){aD.innerHTML="";if(aD.querySelectorAll("[msallowcapture^='']").length){ah.push("[*^$]="+u+"*(?:''|\"\")")}if(!aD.querySelectorAll("[selected]").length){ah.push("\\["+u+"*(?:value|"+b+")")}if(!aD.querySelectorAll(":checked").length){ah.push(":checked")}});k(function(aE){var aD=aC.createElement("input");aD.setAttribute("type","hidden");aE.appendChild(aD).setAttribute("name","D");if(aE.querySelectorAll("[name=d]").length){ah.push("name"+u+"*[*^$|!~]?=")}if(!aE.querySelectorAll(":enabled").length){ah.push(":enabled",":disabled")}aE.querySelectorAll("*,:x");ah.push(",.*:")})}if((aw.matchesSelector=T.test((j=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector)))){k(function(aD){aw.disconnectedMatch=j.call(aD,"div");j.call(aD,"[s!='']:x");au.push("!=",p)})}ah=ah.length&&new RegExp(ah.join("|"));au=au.length&&new RegExp(au.join("|"));e=T.test(t.compareDocumentPosition);J=e||T.test(t.contains)?function(aE,aD){var aG=aE.nodeType===9?aE.documentElement:aE,aF=aD&&aD.parentNode;return aE===aF||!!(aF&&aF.nodeType===1&&(aG.contains?aG.contains(aF):aE.compareDocumentPosition&&aE.compareDocumentPosition(aF)&16))}:function(aE,aD){if(aD){while((aD=aD.parentNode)){if(aD===aE){return true}}}return false};I=e?function(aE,aD){if(aE===aD){ab=true;return 0}var aF=!aE.compareDocumentPosition-!aD.compareDocumentPosition;if(aF){return aF}aF=(aE.ownerDocument||aE)===(aD.ownerDocument||aD)?aE.compareDocumentPosition(aD):1;if(aF&1||(!aw.sortDetached&&aD.compareDocumentPosition(aE)===aF)){if(aE===aC||aE.ownerDocument===N&&J(N,aE)){return -1}if(aD===aC||aD.ownerDocument===N&&J(N,aD)){return 1}return M?(h.call(M,aE)-h.call(M,aD)):0}return aF&4?-1:1}:function(aE,aD){if(aE===aD){ab=true;return 0}var aK,aH=0,aJ=aE.parentNode,aG=aD.parentNode,aF=[aE],aI=[aD];if(!aJ||!aG){return aE===aC?-1:aD===aC?1:aJ?-1:aG?1:M?(h.call(M,aE)-h.call(M,aD)):0}else{if(aJ===aG){return d(aE,aD)}}aK=aE;while((aK=aK.parentNode)){aF.unshift(aK)}aK=aD;while((aK=aK.parentNode)){aI.unshift(aK)}while(aF[aH]===aI[aH]){aH++}return aH?d(aF[aH],aI[aH]):aF[aH]===N?-1:aI[aH]===N?1:0};return aC};A.matches=function(i,e){return A(i,null,null,e)};A.matchesSelector=function(aB,aD){if((aB.ownerDocument||aB)!==G){ad(aB)}aD=aD.replace(y,"='$1']");if(aw.matchesSelector&&am&&(!au||!au.test(aD))&&(!ah||!ah.test(aD))){try{var i=j.call(aB,aD);if(i||aw.disconnectedMatch||aB.document&&aB.document.nodeType!==11){return i}}catch(aC){}}return A(aD,G,null,[aB]).length>0};A.contains=function(e,i){if((e.ownerDocument||e)!==G){ad(e)}return J(e,i)};A.attr=function(aB,e){if((aB.ownerDocument||aB)!==G){ad(aB)}var i=s.attrHandle[e.toLowerCase()],aC=i&&S.call(s.attrHandle,e.toLowerCase())?i(aB,e,!am):undefined;return aC!==undefined?aC:aw.attributes||!am?aB.getAttribute(e):(aC=aB.getAttributeNode(e))&&aC.specified?aC.value:null};A.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};A.uniqueSort=function(aC){var aD,aE=[],e=0,aB=0;ab=!aw.detectDuplicates;M=!aw.sortStable&&aC.slice(0);aC.sort(I);if(ab){while((aD=aC[aB++])){if(aD===aC[aB]){e=aE.push(aB)}}while(e--){aC.splice(aE[e],1)}}M=null;return aC};L=A.getText=function(aE){var aD,aB="",aC=0,e=aE.nodeType;if(!e){while((aD=aE[aC++])){aB+=L(aD)}}else{if(e===1||e===9||e===11){if(typeof aE.textContent==="string"){return aE.textContent}else{for(aE=aE.firstChild;aE;aE=aE.nextSibling){aB+=L(aE)}}}else{if(e===3||e===4){return aE.nodeValue}}}return aB};s=A.selectors={cacheLength:50,createPseudo:o,match:ag,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(x,aj);e[3]=(e[3]||e[4]||e[5]||"").replace(x,aj);if(e[2]==="~="){e[3]=" "+e[3]+" "}return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if(e[1].slice(0,3)==="nth"){if(!e[3]){A.error(e[0])}e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd"));e[5]=+((e[7]+e[8])||e[3]==="odd")}else{if(e[3]){A.error(e[0])}}return e},PSEUDO:function(i){var e,aB=!i[6]&&i[2];if(ag.CHILD.test(i[0])){return null}if(i[3]){i[2]=i[4]||i[5]||""}else{if(aB&&W.test(aB)&&(e=m(aB,true))&&(e=aB.indexOf(")",aB.length-e)-aB.length)){i[0]=i[0].slice(0,e);i[2]=aB.slice(0,e)}}return i.slice(0,3)}},filter:{TAG:function(i){var e=i.replace(x,aj).toLowerCase();return i==="*"?function(){return true}:function(aB){return aB.nodeName&&aB.nodeName.toLowerCase()===e}},CLASS:function(e){var i=c[e+" "];return i||(i=new RegExp("(^|"+u+")"+e+"("+u+"|$)"))&&c(e,function(aB){return i.test(typeof aB.className==="string"&&aB.className||typeof aB.getAttribute!==at&&aB.getAttribute("class")||"")})},ATTR:function(aB,i,e){return function(aD){var aC=A.attr(aD,aB);if(aC==null){return i==="!="}if(!i){return true}aC+="";return i==="="?aC===e:i==="!="?aC!==e:i==="^="?e&&aC.indexOf(e)===0:i==="*="?e&&aC.indexOf(e)>-1:i==="$="?e&&aC.slice(-e.length)===e:i==="~="?(" "+aC+" ").indexOf(e)>-1:i==="|="?aC===e||aC.slice(0,e.length+1)===e+"-":false}},CHILD:function(i,aD,aC,aE,aB){var aG=i.slice(0,3)!=="nth",e=i.slice(-4)!=="last",aF=aD==="of-type";return aE===1&&aB===0?function(aH){return !!aH.parentNode}:function(aN,aL,aQ){var aH,aT,aO,aS,aP,aK,aM=aG!==e?"nextSibling":"previousSibling",aR=aN.parentNode,aJ=aF&&aN.nodeName.toLowerCase(),aI=!aQ&&!aF;if(aR){if(aG){while(aM){aO=aN;while((aO=aO[aM])){if(aF?aO.nodeName.toLowerCase()===aJ:aO.nodeType===1){return false}}aK=aM=i==="only"&&!aK&&"nextSibling"}return true}aK=[e?aR.firstChild:aR.lastChild];if(e&&aI){aT=aR[ao]||(aR[ao]={});aH=aT[i]||[];aP=aH[0]===ax&&aH[1];aS=aH[0]===ax&&aH[2];aO=aP&&aR.childNodes[aP];while((aO=++aP&&aO&&aO[aM]||(aS=aP=0)||aK.pop())){if(aO.nodeType===1&&++aS&&aO===aN){aT[i]=[ax,aP,aS];break}}}else{if(aI&&(aH=(aN[ao]||(aN[ao]={}))[i])&&aH[0]===ax){aS=aH[1]}else{while((aO=++aP&&aO&&aO[aM]||(aS=aP=0)||aK.pop())){if((aF?aO.nodeName.toLowerCase()===aJ:aO.nodeType===1)&&++aS){if(aI){(aO[ao]||(aO[ao]={}))[i]=[ax,aS]}if(aO===aN){break}}}}}aS-=aB;return aS===aE||(aS%aE===0&&aS/aE>=0)}}},PSEUDO:function(aC,aB){var e,i=s.pseudos[aC]||s.setFilters[aC.toLowerCase()]||A.error("unsupported pseudo: "+aC);if(i[ao]){return i(aB)}if(i.length>1){e=[aC,aC,"",aB];return s.setFilters.hasOwnProperty(aC.toLowerCase())?o(function(aF,aH){var aE,aD=i(aF,aB),aG=aD.length;while(aG--){aE=h.call(aF,aD[aG]);aF[aE]=!(aH[aE]=aD[aG])}}):function(aD){return i(aD,0,e)}}return i}},pseudos:{not:o(function(e){var i=[],aB=[],aC=aa(e.replace(w,"$1"));return aC[ao]?o(function(aE,aJ,aH,aF){var aI,aD=aC(aE,null,aF,[]),aG=aE.length;while(aG--){if((aI=aD[aG])){aE[aG]=!(aJ[aG]=aI)}}}):function(aF,aE,aD){i[0]=aF;aC(i,null,aD,aB);return !aB.pop()}}),has:o(function(e){return function(i){return A(e,i).length>0}}),contains:o(function(e){e=e.replace(x,aj);return function(i){return(i.textContent||i.innerText||L(i)).indexOf(e)>-1}}),lang:o(function(e){if(!Y.test(e||"")){A.error("unsupported lang: "+e)}e=e.replace(x,aj).toLowerCase();return function(aB){var i;do{if((i=am?aB.lang:aB.getAttribute("xml:lang")||aB.getAttribute("lang"))){i=i.toLowerCase();return i===e||i.indexOf(e+"-")===0}}while((aB=aB.parentNode)&&aB.nodeType===1);return false}}),target:function(e){var i=window.location&&window.location.hash;return i&&i.slice(1)===e.id},root:function(e){return e===t},focus:function(e){return e===G.activeElement&&(!G.hasFocus||G.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===false},disabled:function(e){return e.disabled===true},checked:function(e){var i=e.nodeName.toLowerCase();return(i==="input"&&!!e.checked)||(i==="option"&&!!e.selected)},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling){if(e.nodeType<6){return false}}return true},parent:function(e){return !s.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return g.test(e.nodeName)},button:function(i){var e=i.nodeName.toLowerCase();return e==="input"&&i.type==="button"||e==="button"},text:function(i){var e;return i.nodeName.toLowerCase()==="input"&&i.type==="text"&&((e=i.getAttribute("type"))==null||e.toLowerCase()==="text")},first:al(function(){return[0]}),last:al(function(e,i){return[i-1]}),eq:al(function(e,aB,i){return[i<0?i+aB:i]}),even:al(function(e,aC){var aB=0;for(;aB=0;){e.push(aB)}return e}),gt:al(function(e,aD,aC){var aB=aC<0?aC+aD:aC;for(;++aB1?function(aE,aD,aB){var aC=e.length;while(aC--){if(!e[aC](aE,aD,aB)){return false}}return true}:e[0]}function D(aB,aE,aD){var aC=0,e=aE.length;for(;aC-1){aP[aR]=!(aM[aR]=aJ)}}}}else{aL=ae(aL===aM?aL.splice(aG,aL.length):aL);if(aE){aE(null,aM,aL,aO)}else{a.apply(aM,aL)}}})}function ap(aG){var aB,aE,aC,aF=aG.length,aJ=s.relative[aG[0].type],aK=aJ||s.relative[" "],aD=aJ?1:0,aH=v(function(i){return i===aB},aK,true),aI=v(function(i){return h.call(aB,i)>-1},aK,true),e=[function(aM,aL,i){return(!aJ&&(i||aL!==aA))||((aB=aL).nodeType?aH(aM,aL,i):aI(aM,aL,i))}];for(;aD1&&az(e),aD>1&&n(aG.slice(0,aD-1).concat({value:aG[aD-2].type===" "?"*":""})).replace(w,"$1"),aE,aD0,aD=aC.length>0,i=function(aN,aH,aM,aL,aQ){var aI,aJ,aO,aS=0,aK="0",aE=aN&&[],aT=[],aR=aA,aG=aN||aD&&s.find.TAG("*",aQ),aF=(ax+=aR==null?1:Math.random()||0.1),aP=aG.length;if(aQ){aA=aH!==G&&aH}for(;aK!==aP&&(aI=aG[aK])!=null;aK++){if(aD&&aI){aJ=0;while((aO=aC[aJ++])){if(aO(aI,aH,aM)){aL.push(aI);break}}if(aQ){ax=aF}}if(e){if((aI=!aO&&aI)){aS--}if(aN){aE.push(aI)}}}aS+=aK;if(e&&aK!==aS){aJ=0;while((aO=aB[aJ++])){aO(aE,aT,aH,aM)}if(aN){if(aS>0){while(aK--){if(!(aE[aK]||aT[aK])){aT[aK]=ar.call(aL)}}}aT=ae(aT)}a.apply(aL,aT);if(aQ&&!aN&&aT.length>0&&(aS+aB.length)>1){A.uniqueSort(aL)}}if(aQ){ax=aF;aA=aR}return aE};return e?o(i):i}aa=A.compile=function(e,aC){var aD,aB=[],aF=[],aE=K[e+" "];if(!aE){if(!aC){aC=m(e)}aD=aC.length;while(aD--){aE=ap(aC[aD]);if(aE[ao]){aB.push(aE)}else{aF.push(aE)}}aE=K(e,ac(aF,aB));aE.selector=e}return aE};av=A.select=function(aC,e,aD,aG){var aE,aJ,aB,aK,aH,aI=typeof aC==="function"&&aC,aF=!aG&&m((aC=aI.selector||aC));aD=aD||[];if(aF.length===1){aJ=aF[0]=aF[0].slice(0);if(aJ.length>2&&(aB=aJ[0]).type==="ID"&&aw.getById&&e.nodeType===9&&am&&s.relative[aJ[1].type]){e=(s.find.ID(aB.matches[0].replace(x,aj),e)||[])[0];if(!e){return aD}else{if(aI){e=e.parentNode}}aC=aC.slice(aJ.shift().value.length)}aE=ag.needsContext.test(aC)?0:aJ.length;while(aE--){aB=aJ[aE];if(s.relative[(aK=aB.type)]){break}if((aH=s.find[aK])){if((aG=aH(aB.matches[0].replace(x,aj),af.test(aJ[0].type)&&X(e.parentNode)||e))){aJ.splice(aE,1);aC=aG.length&&n(aJ);if(!aC){a.apply(aD,aG);return aD}break}}}}(aI||aa(aC,aF))(aG,e,!am,aD,af.test(aC)&&X(e.parentNode)||e);return aD};aw.sortStable=ao.split("").sort(I).join("")===ao;aw.detectDuplicates=!!ab;ad();aw.sortDetached=k(function(e){return e.compareDocumentPosition(G.createElement("div"))&1});if(!k(function(e){e.innerHTML="";return e.firstChild.getAttribute("href")==="#"})){ay("type|href|height|width",function(i,e,aB){if(!aB){return i.getAttribute(e,e.toLowerCase()==="type"?1:2)}})}if(!aw.attributes||!k(function(e){e.innerHTML="";e.firstChild.setAttribute("value","");return e.firstChild.getAttribute("value")===""})){ay("value",function(i,e,aB){if(!aB&&i.nodeName.toLowerCase()==="input"){return i.defaultValue}})}if(!k(function(e){return e.getAttribute("disabled")==null})){ay(b,function(i,e,aC){var aB;if(!aC){return i[e]===true?e.toLowerCase():(aB=i.getAttributeNode(e))&&aB.specified?aB.value:null}})}return A}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/StyleSheetLoader.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/StyleSheetLoader.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/StyleSheetLoader",["tinymce/util/Tools"],function(a){return function(b,f){var c=0,e={},h;f=f||{};h=f.maxLoadTime||5000;function d(i){b.getElementsByTagName("head")[0].appendChild(i)}function g(k,o,s){var t,j,l,i;function p(){var w=i.passed,v=w.length;while(v--){w[v]()}i.status=2;i.passed=[];i.failed=[]}function r(){var w=i.failed,v=w.length;while(v--){w[v]()}i.status=3;i.passed=[];i.failed=[]}function u(){var v=navigator.userAgent.match(/WebKit\/(\d*)/);return !!(v&&v[1]<536)}function q(v,w){if(!v()){if((new Date().getTime())-l0){j=b.createElement("style");j.textContent='@import "'+k+'"';n();d(j);return}else{m()}}d(t);t.href=k}this.load=g}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/TreeWalker.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/TreeWalker.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/TreeWalker",[],function(){return function(b,a){var c=b;function d(i,e,f,j){var h,g;if(i){if(!j&&i[e]){return i[e]}if(i!=a){h=i[f];if(h){return h}for(g=i.parentNode;g&&g!=a;g=g.parentNode){h=g[f];if(h){return h}}}}}this.current=function(){return c};this.next=function(e){c=d(c,"firstChild","nextSibling",e);return c};this.prev=function(e){c=d(c,"lastChild","previousSibling",e);return c}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/TridentSelection.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/dom/TridentSelection.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/dom/TridentSelection",[],function(){function a(c){var b=this,g=c.dom,e=false;function d(h,i){var j,s=0,p,m,l,k,n,q,o=-1,r;j=h.duplicate();j.collapse(i);r=j.parentElement();if(r.ownerDocument!==c.dom.doc){return}while(r.contentEditable==="false"){r=r.parentNode}if(!r.hasChildNodes()){return{node:r,inside:1}}l=r.children;p=l.length-1;while(s<=p){q=Math.floor((s+p)/2);k=l[q];j.moveToElementText(k);o=j.compareEndPoints(i?"StartToStart":"EndToEnd",h);if(o>0){p=q-1}else{if(o<0){s=q+1}else{return{node:k}}}}if(o<0){if(!k){j.moveToElementText(r);j.collapse(true);k=r;m=true}else{j.collapse(false)}n=0;while(j.compareEndPoints(i?"StartToStart":"StartToEnd",h)!==0){if(j.move("character",1)===0||r!=j.parentElement()){break}n++}}else{j.collapse(true);n=0;while(j.compareEndPoints(i?"StartToStart":"StartToEnd",h)!==0){if(j.move("character",-1)===0||r!=j.parentElement()){break}n++}}return{node:k,position:o,offset:n,inside:m}}function f(){var h=c.getRng(),p=g.createRng(),j,i,n,o,k;j=h.item?h.item(0):h.parentElement();if(j.ownerDocument!=g.doc){return p}i=c.isCollapsed();if(h.item){p.setStart(j.parentNode,g.nodeIndex(j));p.setEnd(p.startContainer,p.startOffset+1);return p}function m(x){var s=d(h,x),q,v,w=0,u,t,r;q=s.node;v=s.offset;if(s.inside&&!q.hasChildNodes()){p[x?"setStart":"setEnd"](q,0);return}if(v===t){p[x?"setStartBefore":"setEndAfter"](q);return}if(s.position<0){u=s.inside?q.firstChild:q.nextSibling;if(!u){p[x?"setStartAfter":"setEndAfter"](q);return}if(!v){if(u.nodeType==3){p[x?"setStart":"setEnd"](u,0)}else{p[x?"setStartBefore":"setEndBefore"](u)}return}while(u){if(u.nodeType==3){r=u.nodeValue;w+=r.length;if(w>=v){q=u;w-=v;w=r.length-w;break}}u=u.nextSibling}}else{u=q.previousSibling;if(!u){return p[x?"setStartBefore":"setEndBefore"](q)}if(!v){if(q.nodeType==3){p[x?"setStart":"setEnd"](u,q.nodeValue.length)}else{p[x?"setStartAfter":"setEndAfter"](u)}return}while(u){if(u.nodeType==3){w+=u.nodeValue.length;if(w>=v){q=u;w-=v;break}}u=u.previousSibling}}p[x?"setStart":"setEnd"](q,w)}try{m(true);if(!i){m()}}catch(l){if(l.number==-2147024809){k=b.getBookmark(2);n=h.duplicate();n.collapse(true);j=n.parentElement();if(!i){n=h.duplicate();n.collapse(false);o=n.parentElement();o.innerHTML=o.innerHTML}j.innerHTML=j.innerHTML;b.moveToBookmark(k);h=c.getRng();m(true);if(!i){m()}}else{throw l}}return p}this.getBookmark=function(k){var h=c.getRng(),j={};function l(r){var q,m,p,o,n=[];q=r.parentNode;m=g.getRoot().parentNode;while(q!=m&&q.nodeType!==9){p=q.children;o=p.length;while(o--){if(r===p[o]){n.push(o);break}}r=q;q=q.parentNode}return n}function i(n){var m;m=d(h,n);if(m){return{position:m.position,offset:m.offset,indexes:l(m.node),inside:m.inside}}}if(k===2){if(!h.item){j.start=i(true);if(!c.isCollapsed()){j.end=i()}}else{j.start={ctrl:true,indexes:l(h.item(0))}}}return j};this.moveToBookmark=function(j){var i,h=g.doc.body;function l(n){var q,p,m,o;q=g.getRoot();for(p=n.length-1;p>=0;p--){o=q.children;m=n[p];if(m<=o.length-1){q=o[m]}}return q}function k(r){var m=j[r?"start":"end"],p,o,n,q;if(m){p=m.position>0;o=h.createTextRange();o.moveToElementText(l(m.indexes));q=m.offset;if(q!==n){o.collapse(m.inside||p);o.moveStart("character",p?-q:q)}else{o.collapse(r)}i.setEndPoint(r?"StartToStart":"EndToStart",o);if(r){i.collapse(true)}}}if(j.start){if(j.start.ctrl){i=h.createControlRange();i.addElement(l(j.start.indexes));i.select()}else{i=h.createTextRange();k(true);k();i.select()}}};this.addRange=function(h){var m,k,j,o,u,p,s,r=c.dom.doc,l=r.body,q,t;function i(A){var w,z,v,y,x;v=g.create("a");w=A?j:u;z=A?o:p;y=m.duplicate();if(w==r||w==r.documentElement){w=l;z=0}if(w.nodeType==3){w.parentNode.insertBefore(v,w);y.moveToElementText(v);y.moveStart("character",z);g.remove(v);m.setEndPoint(A?"StartToStart":"EndToEnd",y)}else{x=w.childNodes;if(x.length){if(z>=x.length){g.insertAfter(v,x[x.length-1])}else{w.insertBefore(v,x[z])}y.moveToElementText(v)}else{if(w.canHaveHTML){w.innerHTML="";v=w.firstChild;y.moveToElementText(v);y.collapse(e)}}m.setEndPoint(A?"StartToStart":"EndToEnd",y);g.remove(v)}}j=h.startContainer;o=h.startOffset;u=h.endContainer;p=h.endOffset;m=l.createTextRange();if(j==u&&j.nodeType==1){if(o==p&&!j.hasChildNodes()){if(j.canHaveHTML){s=j.previousSibling;if(s&&!s.hasChildNodes()&&g.isBlock(s)){s.innerHTML=""}else{s=null}j.innerHTML="";m.moveToElementText(j.lastChild);m.select();g.doc.selection.clear();j.innerHTML="";if(s){s.innerHTML=""}return}else{o=g.nodeIndex(j);j=j.parentNode}}if(o==p-1){try{t=j.childNodes[o];k=l.createControlRange();k.addElement(t);k.select();q=c.getRng();if(q.item&&t===q.item(0)){return}}catch(n){}}}i(true);i();m.select()};this.getRangeAt=f}return a}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/fmt/Preview.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/fmt/Preview.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/fmt/Preview",["tinymce/util/Tools"],function(a){var c=a.each;function b(i,l){var e,f,h=i.dom;var d="",g,k;k=i.settings.preview_styles;if(k===false){return""}if(!k){k="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}function j(m){return m.replace(/%(\w+)/g,"")}if(typeof l=="string"){l=i.formatter.get(l);if(!l){return}l=l[0]}e=l.block||l.inline||"span";f=h.create(e);c(l.styles,function(n,m){n=j(n);if(n){h.setStyle(f,m,n)}});c(l.attributes,function(n,m){n=j(n);if(n){h.setAttrib(f,m,n)}});c(l.classes,function(m){m=j(m);if(!h.hasClass(f,m)){h.addClass(f,m)}});i.fire("PreviewFormats");h.setStyles(f,{position:"absolute",left:-65535});i.getBody().appendChild(f);g=h.getStyle(i.getBody(),"fontSize",true);g=/px$/.test(g)?parseInt(g,10):0;c(k.split(" "),function(m){var n=h.getStyle(f,m,true);if(m=="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)){n=h.getStyle(i.getBody(),m,true);if(h.toHex(n).toLowerCase()=="#ffffff"){return}}if(m=="color"){if(h.toHex(n).toLowerCase()=="#000000"){return}}if(m=="font-size"){if(/em|%$/.test(n)){if(g===0){return}n=parseFloat(n,10)/(/%$/.test(n)?100:1);n=(n*g)+"px"}}if(m=="border"&&n){d+="padding:0 2px;"}d+=m+":"+n+";"});i.fire("AfterPreviewFormats");h.remove(f);return d}return{getCssText:b}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/html/DomParser.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/html/DomParser.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/html/DomParser",["tinymce/html/Node","tinymce/html/Schema","tinymce/html/SaxParser","tinymce/util/Tools"],function(c,e,a,b){var f=b.makeMap,g=b.each,d=b.explode,h=b.extend;return function(m,n){var l=this,k={},j=[],o={},i={};m=m||{};m.validate="validate" in m?m.validate:true;m.root_name=m.root_name||"body";l.schema=n=n||new e();function p(t){var v,w,C,B,E,u,x,r,A;var q,z,s,D,y;z=f("tr,td,th,tbody,thead,tfoot,table");q=n.getNonEmptyElements();s=n.getTextBlockElements();for(v=0;v1){B.reverse();E=u=l.filterNode(B[0].clone());for(A=0;A0){V.value=S;V=V.prev}else{T=V.prev;V.remove();V=T}}}function L(T){var U,S={};for(U in T){if(U!=="li"&&U!="p"){S[U]=T[U]}}return S}s=new a({validate:D,allow_script_urls:m.allow_script_urls,allow_conditional_comments:m.allow_conditional_comments,self_closing_elements:L(n.getSelfClosingElements()),cdata:function(S){F.append(O("#cdata",4)).value=S},text:function(U,S){var T;if(!P){U=U.replace(q," ");if(F.lastChild&&t[F.lastChild.name]){U=U.replace(I,"")}}if(U.length!==0){T=O("#text",3);T.raw=!!S;F.append(T).value=U}},comment:function(S){F.append(O("#comment",8)).value=S},pi:function(S,T){F.append(O(S,7)).value=T;M(F)},doctype:function(T){var S;S=F.append(O("#doctype",10));S.value=T;M(F)},start:function(U,T,Z){var W,S,Y,V,X;Y=D?n.getElementRule(U):{};if(Y){W=O(Y.outputName||U,1);W.attributes=T;W.shortEnded=Z;F.append(W);X=u[F.name];if(X&&u[W.name]&&!X[W.name]){Q.push(W)}S=j.length;while(S--){V=j[S].name;if(V in T.map){J=i[V];if(J){J.push(W)}else{i[V]=[W]}}}if(t[U]){M(W)}if(!Z){F=W}if(!P&&x[U]){P=true}}},end:function(S){var X,U,W,T,V;U=D?n.getElementRule(S):{};if(U){if(t[S]){if(!P){X=F.firstChild;if(X&&X.type===3){W=X.value.replace(I,"");if(W.length>0){X.value=W;X=X.next}else{T=X.next;X.remove();X=T;while(X&&X.type===3){W=X.value;T=X.next;if(W.length===0||C.test(W)){X.remove();X=T}X=T}}}X=F.lastChild;if(X&&X.type===3){W=X.value.replace(y,"");if(W.length>0){X.value=W;X=X.prev}else{T=X.prev;X.remove();X=T;while(X&&X.type===3){W=X.value;T=X.prev;if(W.length===0||C.test(W)){X.remove();X=T}X=T}}}}}if(P&&x[S]){P=false}if(U.removeEmpty||U.paddEmpty){if(F.isEmpty(z)){if(U.paddEmpty){F.empty().append(new c("#text","3")).value="\u00a0"}else{if(!F.attributes.map.name&&!F.attributes.map.id){V=F.parent;if(t[F.name]){F.empty().remove()}else{F.unwrap()}F=V;return}}}}F=F.parent}}},n);N=F=new c(r.context||m.root_name,11);s.parse(A);if(D&&Q.length){if(!r.context){p(Q)}else{r.invalid=true}}if(v&&(N.name=="body"||r.isRootContent)){K()}if(!r.invalid){for(R in o){J=k[R];E=o[R];B=E.length;while(B--){if(!E[B].parent){E.splice(B,1)}}for(H=0,G=J.length;H\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,i=/[<>&\"\']/g,f=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,l={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"};j={'"':""","'":"'","<":"<",">":">","&":"&","\u0060":"`"};g={"<":"<",">":">","&":"&",""":'"',"'":"'"};function k(n){var o;o=document.createElement("div");o.innerHTML=n;return o.textContent||o.innerText||n}function h(o,r){var p,q,n,s={};if(o){o=o.split(",");r=r||10;for(p=0;p1){return"&#"+(((p.charCodeAt(0)-55296)*1024)+(p.charCodeAt(1)-56320)+65536)+";"}return j[p]||"&#"+p.charCodeAt(0)+";"})},encodeNamed:function(p,n,o){o=o||a;return p.replace(n?m:b,function(q){return j[q]||o[q]||q})},getEncodeFunc:function(n,q){q=h(q)||a;function o(s,r){return s.replace(r?m:b,function(t){return j[t]||q[t]||"&#"+t.charCodeAt(0)+";"||t})}function p(s,r){return c.encodeNamed(s,r,q)}n=e(n.replace(/\+/g,","));if(n.named&&n.numeric){return o}if(n.named){if(q){return p}return c.encodeNamed}if(n.numeric){return c.encodeNumeric}return c.encodeRaw},decode:function(n){return n.replace(f,function(p,o){if(o){if(o.charAt(0).toLowerCase()==="x"){o=parseInt(o.substr(1),16)}else{o=parseInt(o,10)}if(o>65535){o-=65536;return String.fromCharCode(55296+(o>>10),56320+(o&1023))}else{return l[o]||String.fromCharCode(o)}}return g[p]||a[p]||k(p)})}};return c}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/html/Node.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/html/Node.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/html/Node",[],function(){var c=/^[ \t\r\n]*$/,d={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11};function a(j,k,i){var h,g,e=i?"lastChild":"firstChild",f=i?"prev":"next";if(j[e]){return j[e]}if(j!==k){h=j[f];if(h){return h}for(g=j.parent;g&&g!==k;g=g.parent){h=g[f];if(h){return h}}}}function b(e,f){this.name=e;this.type=f;if(f===1){this.attributes=[];this.attributes.map={}}}b.prototype={replace:function(f){var e=this;if(f.parent){f.remove()}e.insert(f,e);e.remove();return e},attr:function(g,k){var e=this,f,h,j;if(typeof g!=="string"){for(h in g){e.attr(h,g[h])}return e}if((f=e.attributes)){if(k!==j){if(k===null){if(g in f.map){delete f.map[g];h=f.length;while(h--){if(f[h].name===g){f=f.splice(h,1);return e}}}return e}if(g in f.map){h=f.length;while(h--){if(f[h].name===g){f[h].value=k;break}}}else{f.push({name:g,value:k})}f.map[g]=k;return e}else{return f.map[g]}}},clone:function(){var f=this,m=new b(f.name,f.type),g,e,k,h,j;if((k=f.attributes)){j=[];j.map={};for(g=0,e=k.length;g]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g;l.lastIndex=g=n;while((m=l.exec(i))){g=l.lastIndex;if(m[1]==="/"){j--}else{if(!m[1]){if(m[2] in h){continue}j++}}if(j===0){break}}return g}function a(h,j){var g=this;function i(){}h=h||{};g.schema=j=j||new d();if(h.fix_self_closing!==false){h.fix_self_closing=true}e("comment cdata text start end pi doctype".split(" "),function(k){if(k){g[k]=h[k]||i}});g.parse=function(H){var t=this,l,J=0,M,E,D=[],R,U,F,v;var C,w,Q,K,S;var z,s,p,x,W,T,I;var X,P,k;var V,N,q,G,O,m,A=0;var o=f.decode,B,L=c.makeMap("src,href,data,background,formaction,poster");var n=/((java|vb)script|mhtml):/i,r=/^data:/i;function y(Y){var aa,Z;aa=D.length;while(aa--){if(D[aa].name===Y){break}}if(aa>=0){for(Z=D.length-1;Z>=aa;Z--){Y=D[Z];if(Y.valid){t.end(Y.name)}}D.length=aa}}function u(ad,Z,ah,af,ae){var ab,ac,Y=/[\s\u0000-\u001F]+/g;Z=Z.toLowerCase();ah=Z in K?Z:o(ah||af||ae||"");if(z&&!C&&Z.indexOf("data-")!==0){ab=T[Z];if(!ab&&I){ac=I.length;while(ac--){ab=I[ac];if(ab.pattern.test(Z)){break}}if(ac===-1){ab=null}}if(!ab){return}if(ab.validValues&&!(ah in ab.validValues)){return}}if(L[Z]&&!h.allow_script_urls){var aa=ah.replace(Y,"");try{aa=decodeURIComponent(aa)}catch(ag){aa=unescape(aa)}if(n.test(aa)){return}if(!h.allow_html_data_urls&&r.test(aa)&&!/^data:image\//i.test(aa)){return}}R.map[Z]=ah;R.push({name:Z,value:ah})}q=new RegExp("<(?:(?:!--([\\w\\W]*?)-->)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([^>]+)>)|(?:([A-Za-z0-9\\-_\\:\\.]+)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g");G=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g;Q=j.getShortEndedElements();N=h.self_closing_elements||j.getSelfClosingElements();K=j.getBoolAttrs();z=h.validate;w=h.remove_internals;B=h.fix_self_closing;O=j.getSpecialElements();while((l=q.exec(H))){if(J0&&D[D.length-1].name===M){y(M)}if(!z||(s=j.getElementRule(M))){p=true;if(z){T=s.attributes;I=s.attributePatterns}if((W=l[8])){C=W.indexOf("data-mce-type")!==-1;if(C&&w){p=false}R=[];R.map={};W.replace(G,u)}else{R=[];R.map={}}if(z&&!C){X=s.attributesRequired;P=s.attributesDefault;k=s.attributesForced;V=s.removeEmptyAttrs;if(V&&!R.length){p=false}if(k){U=k.length;while(U--){x=k[U];v=x.name;m=x.value;if(m==="{$uid}"){m="mce_"+A++}R.map[v]=m;R.push({name:v,value:m})}}if(P){U=P.length;while(U--){x=P[U];v=x.name;if(!(v in R.map)){m=x.value;if(m==="{$uid}"){m="mce_"+A++}R.map[v]=m;R.push({name:v,value:m})}}}if(X){U=X.length;while(U--){if(X[U] in R.map){break}}if(U===-1){p=false}}if((x=R.map["data-mce-bogus"])){if(x==="all"){J=b(j,H,q.lastIndex);q.lastIndex=J;continue}p=false}}if(p){t.start(M,R,S)}}else{p=false}if((E=O[M])){E.lastIndex=J=l.index+l[0].length;if((l=E.exec(H))){if(p){F=H.substr(J,l.index-J)}J=l.index+l[0].length}else{F=H.substr(J);J=H.length}if(p){if(F.length>0){t.text(F,true)}t.end(M)}q.lastIndex=J;continue}if(!S){if(!W||W.indexOf("/")!=W.length-1){D.push({name:M,valid:p})}else{if(p){t.end(M)}}}}else{if((M=l[1])){if(M.charAt(0)===">"){M=" "+M}if(!h.allow_conditional_comments&&M.substr(0,3)==="[if"){M=" "+M}t.comment(M)}else{if((M=l[2])){t.cdata(M)}else{if((M=l[3])){t.doctype(M)}else{if((M=l[4])){t.pi(M,l[5])}}}}}}J=l.index+l[0].length}if(J=0;U--){M=D[U];if(M.valid){t.end(M.name)}}}}a.findEndTag=b;return a}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/html/Schema.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/html/Schema.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/html/Schema",["tinymce/util/Tools"],function(b){var c={},e={};var d=b.makeMap,i=b.each,f=b.extend,h=b.explode,k=b.inArray;function g(l,m){return l?l.split(m||" "):[]}function j(s){var p={},t,m;var q,r,l,o;function u(y,v,B){var A,z,C,x=arguments;function w(H,G){var F={},E,D;for(E=0,D=H.length;E
')},postRender:function(){var d=this,e=d.settings.onclick;d.on("click",function(f){if(f.aria&&f.aria.key=="down"){return}if(f.control==d&&!c.getParent(f.target,"."+d.classPrefix+"open")){f.stopImmediatePropagation();e.call(d,f)}});delete d.settings.onclick;return d._super()}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/ColorPicker.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/ColorPicker.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/ColorPicker",["tinymce/ui/Widget","tinymce/ui/DragHelper","tinymce/ui/DomUtils","tinymce/util/Color"],function(c,b,a,d){return c.extend({Defaults:{classes:"widget colorpicker"},init:function(e){this._super(e)},postRender:function(){var o=this,i=o.color(),j,l,k,n,g;l=o.getEl("h");k=o.getEl("hp");n=o.getEl("sv");g=o.getEl("svp");function h(t,q){var s=a.getPos(t),p,r;p=q.pageX-s.x;r=q.pageY-s.y;p=Math.max(0,Math.min(p/t.clientWidth,1));r=Math.max(0,Math.min(r/t.clientHeight,1));return{x:p,y:r}}function f(r,q){var p=(360-r.h)/360;a.css(k,{top:(p*100)+"%"});if(!q){a.css(g,{left:r.s+"%",top:(100-r.v)+"%"})}n.style.background=new d({s:100,v:100,h:r.h}).toHex();o.color().parse({s:r.s,v:r.v,h:r.h})}function e(p){var q;q=h(n,p);j.s=q.x*100;j.v=(1-q.y)*100;f(j);o.fire("change")}function m(p){var q;q=h(l,p);j=i.toHsv();j.h=(1-q.y)*360;f(j,true);o.fire("change")}o._repaint=function(){j=i.toHsv();f(j)};o._super();o._svdraghelper=new b(o._id+"-sv",{start:e,drag:e});o._hdraghelper=new b(o._id+"-h",{start:m,drag:m});o._repaint()},rgb:function(){return this.color().toRgb()},value:function(f){var e=this;if(arguments.length){e.color().parse(f);if(e._rendered){e._repaint()}}else{return e.color().toHex()}},color:function(){if(!this._color){this._color=new d()}return this._color},renderHtml:function(){var e=this,k=e._id,i=e.classPrefix,g;var h="#ff0000,#ff0080,#ff00ff,#8000ff,#0000ff,#0080ff,#00ffff,#00ff80,#00ff00,#80ff00,#ffff00,#ff8000,#ff0000";function f(){var p,n,o="",m,q;m="filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=";q=h.split(",");for(p=0,n=q.length-1;p
')}return o}var j=("background: -ms-linear-gradient(top,"+h+");background: linear-gradient(to bottom,"+h+");");g=('
'+f()+'
');return('
'+g+"
")}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/ComboBox.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/ComboBox.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/ComboBox",["tinymce/ui/Widget","tinymce/ui/Factory","tinymce/ui/DomUtils"],function(c,a,b){return c.extend({init:function(e){var d=this;d._super(e);d.addClass("combobox");d.subinput=true;d.ariaTarget="inp";e=d.settings;e.menu=e.menu||e.values;if(e.menu){e.icon="caret"}d.on("click",function(g){var h=g.target,f=d.getEl();while(h&&h!=f){if(h.id&&h.id.indexOf("-open")!=-1){d.fire("action");if(e.menu){d.showMenu();if(g.aria){d.menu.items()[0].focus()}}}h=h.parentNode}});d.on("keydown",function(f){if(f.target.nodeName=="INPUT"&&f.keyCode==13){d.parents().reverse().each(function(g){f.preventDefault();d.fire("change");if(g.hasEventListeners("submit")&&g.toJSON){g.fire("submit",{data:g.toJSON()});return false}})}});if(e.placeholder){d.addClass("placeholder");d.on("focusin",function(){if(!d._hasOnChange){b.on(d.getEl("inp"),"change",function(){d.fire("change")});d._hasOnChange=true}if(d.hasClass("placeholder")){d.getEl("inp").value="";d.removeClass("placeholder")}});d.on("focusout",function(){if(d.value().length===0){d.getEl("inp").value=e.placeholder;d.addClass("placeholder")}})}},showMenu:function(){var d=this,e=d.settings,f;if(!d.menu){f=e.menu||[];if(f.length){f={type:"menu",items:f}}else{f.type=f.type||"menu"}d.menu=a.create(f).parent(d).renderTo(d.getContainerElm());d.fire("createmenu");d.menu.reflow();d.menu.on("cancel",function(g){if(g.control===d.menu){d.focus()}});d.menu.on("show hide",function(g){g.control.items().each(function(h){h.active(h.value()==d.value())})}).fire("show");d.menu.on("select",function(g){d.value(g.control.value())});d.on("focusin",function(g){if(g.target.tagName.toUpperCase()=="INPUT"){d.menu.hide()}});d.aria("expanded",true)}d.menu.show();d.menu.layoutRect({w:d.layoutRect().w});d.menu.moveRel(d.getEl(),d.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])},value:function(e){var d=this;if(typeof e!="undefined"){d._value=e;d.removeClass("placeholder");if(d._rendered){d.getEl("inp").value=e}return d}if(d._rendered){e=d.getEl("inp").value;if(e!=d.settings.placeholder){return e}return""}return d._value},disabled:function(e){var d=this;if(d._rendered&&typeof e!="undefined"){d.getEl("inp").disabled=e}return d._super(e)},focus:function(){this.getEl("inp").focus()},repaint:function(){var e=this,j=e.getEl(),d=e.getEl("open"),h=e.layoutRect();var g,f;if(d){g=h.w-b.getSize(d).width-10}else{g=h.w-10}var i=document;if(i.all&&(!i.documentMode||i.documentMode<=8)){f=(e.layoutRect().h-2)+"px"}b.css(j.firstChild,{width:g,lineHeight:f});e._super();return e},postRender:function(){var d=this;b.on(this.getEl("inp"),"change",function(){d.fire("change")});return d._super()},remove:function(){b.off(this.getEl("inp"));this._super()},renderHtml:function(){var l=this,d=l._id,e=l.settings,f=l.classPrefix;var i=e.value||e.placeholder||"";var h,k,g="",j="";if("spellcheck" in e){j+=' spellcheck="'+e.spellcheck+'"'}if(e.maxLength){j+=' maxlength="'+e.maxLength+'"'}if(e.size){j+=' size="'+e.size+'"'}if(e.subtype){j+=' type="'+e.subtype+'"'}if(l.disabled()){j+=' disabled="disabled"'}h=e.icon;if(h&&h!="caret"){h=f+"ico "+f+"i-"+e.icon}k=l._text;if(h||k){g=('
");l.addClass("has-open")}return('
"+g+"
")}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Container.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Container.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Container",["tinymce/ui/Control","tinymce/ui/Collection","tinymce/ui/Selector","tinymce/ui/Factory","tinymce/ui/KeyboardNavigation","tinymce/util/Tools","tinymce/ui/DomUtils"],function(h,g,c,a,f,e,b){var d={};return h.extend({layout:"",innerClass:"container-inner",init:function(j){var i=this;i._super(j);j=i.settings;i._fixed=j.fixed;i._items=new g();if(i.isRtl()){i.addClass("rtl")}i.addClass("container");i.addClass("container-body","body");if(j.containerCls){i.addClass(j.containerCls)}i._layout=a.create((j.layout||i.layout)+"layout");if(i.settings.items){i.add(i.settings.items)}i._hasBody=true},items:function(){return this._items},find:function(i){i=d[i]=d[i]||new c(i);return i.find(this)},add:function(j){var i=this;i.items().add(i.create(j)).parent(i);return i},focus:function(i){var k=this,m,l,j;if(i){l=k.keyboardNav||k.parents().eq(-1)[0].keyboardNav;if(l){l.focusFirst(k);return}}j=k.find("*");if(k.statusbar){j.add(k.statusbar.items())}j.each(function(n){if(n.settings.autofocus){m=null;return false}if(n.canFocus){m=m||n}});if(m){m.focus()}return k},replace:function(n,m){var l,j=this.items(),k=j.length;while(k--){if(j[k]===n){j[k]=m;break}}if(k>=0){l=m.getEl();if(l){l.parentNode.removeChild(l)}l=n.getEl();if(l){l.parentNode.removeChild(l)}}m.parent(this)},create:function(j){var i=this,l,k=[];if(!e.isArray(j)){j=[j]}e.each(j,function(m){if(m){if(!(m instanceof h)){if(typeof m=="string"){m={type:m}}l=e.extend({},i.settings.defaults,m);m.type=l.type=l.type||m.type||i.settings.defaultType||(l.defaults?l.defaults.type:null);m=a.create(l)}k.push(m)}});return k},renderNew:function(){var i=this;i.items().each(function(l,k){var m,j;l.parent(i);if(!l._rendered){m=i.getEl("body");j=b.createFragment(l.renderHtml());if(m.hasChildNodes()&&k<=m.childNodes.length-1){m.insertBefore(j,m.childNodes[k])}else{m.appendChild(j)}l.postRender()}});i._layout.applyClasses(i);i._lastRect=null;return i},append:function(i){return this.add(i).renderNew()},prepend:function(j){var i=this;i.items().set(i.create(j).concat(i.items().toArray()));return i.renderNew()},insert:function(k,m,o){var j=this,l,i,n;k=j.create(k);l=j.items();if(!o&&m=0&&m
'+(i.settings.html||"")+j.renderHtml(i)+"
")},postRender:function(){var i=this,j;i.items().exec("postRender");i._super();i._layout.postRender(i);i._rendered=true;if(i.settings.style){b.css(i.getEl(),i.settings.style)}if(i.settings.border){j=i.borderBox();b.css(i.getEl(),{"border-top-width":j.top,"border-right-width":j.right,"border-bottom-width":j.bottom,"border-left-width":j.left})}if(!i.parent()){i.keyboardNav=new f({root:i})}return i},initLayoutRect:function(){var i=this,j=i._super();i._layout.recalc(i);return j},recalc:function(){var i=this,k=i._layoutRect,j=i._lastRect;if(!j||j.w!=k.w||j.h!=k.h){i._layout.recalc(i);k=i.layoutRect();i._lastRect={x:k.x,y:k.y,w:k.w,h:k.h};return true}},reflow:function(){var j;if(this.visible()){h.repaintControls=[];h.repaintControls.map={};this.recalc();j=h.repaintControls.length;while(j--){h.repaintControls[j].repaint()}if(this.settings.layout!=="flow"&&this.settings.layout!=="stack"){this.repaint()}h.repaintControls=[]}return this}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Control.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Control.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Control",["tinymce/util/Class","tinymce/util/Tools","tinymce/util/EventDispatcher","tinymce/ui/Collection","tinymce/ui/DomUtils"],function(b,g,e,h,a){var d="onmousewheel" in document;var f=false;var j="mce-";function i(k){if(!k._eventDispatcher){k._eventDispatcher=new e({scope:k,toggleEvent:function(l,m){if(m&&e.isNative(l)){if(!k._nativeEvents){k._nativeEvents={}}k._nativeEvents[l]=true;if(k._rendered){k.bindPendingEvents()}}}})}return k._eventDispatcher}var c=b.extend({Statics:{classPrefix:j},isRtl:function(){return c.rtl},classPrefix:j,init:function(n){var k=this,m,l;k.settings=n=g.extend({},k.Defaults,n);k._id=n.id||a.id();k._text=k._name="";k._width=k._height=0;k._aria={role:n.role};this._elmCache={};m=n.classes;if(m){m=m.split(" ");m.map={};l=m.length;while(l--){m.map[m[l]]=true}}k._classes=m||[];k.visible(true);g.each("title text width height name classes visible disabled active value".split(" "),function(o){var q=n[o],p;if(q!==p){k[o](q)}else{if(k["_"+o]===p){k["_"+o]=false}}});k.on("click",function(){if(k.disabled()){return false}});if(n.classes){g.each(n.classes.split(" "),function(o){k.addClass(o)})}k.settings=n;k._borderBox=k.parseBox(n.border);k._paddingBox=k.parseBox(n.padding);k._marginBox=k.parseBox(n.margin);if(n.hidden){k.hide()}},Properties:"parent,title,text,width,height,disabled,active,name,value",Methods:"renderHtml",getContainerElm:function(){return document.body},getParentCtrl:function(m){var k,l=this.getRoot().controlIdLookup;while(m&&l){k=l[m.id];if(k){break}m=m.parentNode}return k},parseBox:function(m){var k,l=10;if(!m){return}if(typeof m==="number"){m=m||0;return{top:m,left:m,bottom:m,right:m}}m=m.split(" ");k=m.length;if(k===1){m[1]=m[2]=m[3]=m[0]}else{if(k===2){m[2]=m[0];m[3]=m[1]}else{if(k===3){m[3]=m[1]}}}return{top:parseInt(m[0],l)||0,right:parseInt(m[1],l)||0,bottom:parseInt(m[2],l)||0,left:parseInt(m[3],l)||0}},borderBox:function(){return this._borderBox},paddingBox:function(){return this._paddingBox},marginBox:function(){return this._marginBox},measureBox:function(n,l){function k(o){var p=document.defaultView;if(p){o=o.replace(/[A-Z]/g,function(q){return"-"+q});return p.getComputedStyle(n,null).getPropertyValue(o)}return n.currentStyle[o]}function m(o){var p=parseFloat(k(o),10);return isNaN(p)?0:p}return{top:m(l+"TopWidth"),right:m(l+"RightWidth"),bottom:m(l+"BottomWidth"),left:m(l+"LeftWidth")}},initLayoutRect:function(){var A=this,s=A.settings,n,w;var u=A.getEl(),r,y,o,x,q;var k,m,z;n=A._borderBox=A._borderBox||A.measureBox(u,"border");A._paddingBox=A._paddingBox||A.measureBox(u,"padding");A._marginBox=A._marginBox||A.measureBox(u,"margin");z=a.getSize(u);k=s.minWidth;m=s.minHeight;o=k||z.width;x=m||z.height;r=s.width;y=s.height;q=s.autoResize;q=typeof q!="undefined"?q:!r&&!y;r=r||o;y=y||x;var t=n.left+n.right;var l=n.top+n.bottom;var p=s.maxWidth||65535;var v=s.maxHeight||65535;A._layoutRect=w={x:s.x||0,y:s.y||0,w:r,h:y,deltaW:t,deltaH:l,contentW:r-t,contentH:y-l,innerW:r-t,innerH:y-l,startMinWidth:k||0,startMinHeight:m||0,minW:Math.min(o,p),minH:Math.min(x,v),maxW:p,maxH:v,autoResize:q,scrollW:0};A._lastLayoutRect={};return w},layoutRect:function(l){var r=this,n=r._layoutRect,q,s,p,o,k,m;if(!n){n=r.initLayoutRect()}if(l){p=n.deltaW;o=n.deltaH;if(l.x!==k){n.x=l.x}if(l.y!==k){n.y=l.y}if(l.minW!==k){n.minW=l.minW}if(l.minH!==k){n.minH=l.minH}s=l.w;if(s!==k){s=sn.maxW?n.maxW:s;n.w=s;n.innerW=s-p}s=l.h;if(s!==k){s=sn.maxH?n.maxH:s;n.h=s;n.innerH=s-o}s=l.innerW;if(s!==k){s=sn.maxW-p?n.maxW-p:s;n.innerW=s;n.w=s+p}s=l.innerH;if(s!==k){s=sn.maxH-o?n.maxH-o:s;n.innerH=s;n.h=s+o}if(l.contentW!==k){n.contentW=l.contentW}if(l.contentH!==k){n.contentH=l.contentH}q=r._lastLayoutRect;if(q.x!==n.x||q.y!==n.y||q.w!==n.w||q.h!==n.h){m=c.repaintControls;if(m){if(m.map&&!m.map[r._id]){m.push(r);m.map[r._id]=true}}q.x=n.x;q.y=n.y;q.w=n.w;q.h=n.h}return r}return n},repaint:function(){var s=this,l,n,o,k,q=0,m=0,p,r;r=!document.createRange?Math.round:function(t){return t};l=s.getEl().style;o=s._layoutRect;p=s._lastRepaintRect||{};k=s._borderBox;q=k.left+k.right;m=k.top+k.bottom;if(o.x!==p.x){l.left=r(o.x)+"px";p.x=o.x}if(o.y!==p.y){l.top=r(o.y)+"px";p.y=o.y}if(o.w!==p.w){l.width=r(o.w-q)+"px";p.w=o.w}if(o.h!==p.h){l.height=r(o.h-m)+"px";p.h=o.h}if(s._hasBody&&o.innerW!==p.innerW){n=s.getEl("body").style;n.width=r(o.innerW)+"px";p.innerW=o.innerW}if(s._hasBody&&o.innerH!==p.innerH){n=n||s.getEl("body").style;n.height=r(o.innerH)+"px";p.innerH=o.innerH}s._lastRepaintRect=p;s.fire("repaint",{},false)},on:function(m,n){var l=this;function k(o){var q,p;if(typeof o!="string"){return o}return function(r){if(!q){l.parentsAndSelf().each(function(t){var s=t.settings.callbacks;if(s&&(q=s[o])){p=t;return false}})}return q.call(p,r)}}i(l).on(m,k(n));return l},off:function(k,l){i(this).off(k,l);return this},fire:function(n,m,k){var l=this;m=m||{};if(!m.control){m.control=l}m=i(l).fire(n,m);if(k!==false&&l.parent){var o=l.parent();while(o&&!m.isPropagationStopped()){o.fire(n,m,false);o=o.parent()}}return m},hasEventListeners:function(k){return i(this).has(k)},parents:function(k){var l=this,n,m=new h();for(n=l.parent();n;n=n.parent()){m.add(n)}if(k){m=m.filter(k)}return m},parentsAndSelf:function(k){return new h(this).add(this.parents(k))},next:function(){var k=this.parent().items();return k[k.indexOf(this)+1]},prev:function(){var k=this.parent().items();return k[k.indexOf(this)-1]},findCommonAncestor:function(k,m){var l;while(k){l=m;while(l&&k!=l){l=l.parent()}if(k==l){break}k=k.parent()}return k},hasClass:function(k,m){var l=this._classes[m||"control"];k=this.classPrefix+k;return l&&!!l.map[k]},addClass:function(k,n){var l=this,m,o;k=this.classPrefix+k;m=l._classes[n||"control"];if(!m){m=[];m.map={};l._classes[n||"control"]=m}if(!m.map[k]){m.map[k]=k;m.push(k);if(l._rendered){o=l.getEl(n);if(o){o.className=m.join(" ")}}}return l},removeClass:function(k,o){var l=this,n,m,p;k=this.classPrefix+k;n=l._classes[o||"control"];if(n&&n.map[k]){delete n.map[k];m=n.length;while(m--){if(n[m]===k){n.splice(m,1)}}}if(l._rendered){p=l.getEl(o);if(p){p.className=n.join(" ")}}return l},toggleClass:function(k,m,n){var l=this;if(m){l.addClass(k,n)}else{l.removeClass(k,n)}return l},classes:function(l){var k=this._classes[l||"control"];return k?k.join(" "):""},innerHtml:function(k){a.innerHtml(this.getEl(),k);return this},getEl:function(k){var l=k?this._id+"-"+k:this._id;if(!this._elmCache[l]){this._elmCache[l]=a.get(l)}return this._elmCache[l]},visible:function(m){var l=this,k;if(typeof m!=="undefined"){if(l._visible!==m){if(l._rendered){l.getEl().style.display=m?"":"none"}l._visible=m;k=l.parent();if(k){k._lastRect=null}l.fire(m?"show":"hide")}return l}return l._visible},show:function(){return this.visible(true)},hide:function(){return this.visible(false)},focus:function(){try{this.getEl().focus()}catch(k){}return this},blur:function(){this.getEl().blur();return this},aria:function(l,m){var k=this,n=k.getEl(k.ariaTarget);if(typeof m==="undefined"){return k._aria[l]}else{k._aria[l]=m}if(k._rendered){n.setAttribute(l=="role"?l:"aria-"+l,m)}return k},encode:function(l,k){if(k!==false){l=this.translate(l)}return(l||"").replace(/[&<>"]/g,function(m){return"&#"+m.charCodeAt(0)+";"})},translate:function(k){return c.translate?c.translate(k):k},before:function(l){var k=this,m=k.parent();if(m){m.insert(l,m.items().indexOf(k),true)}return k},after:function(l){var k=this,m=k.parent();if(m){m.insert(l,m.items().indexOf(k))}return k},remove:function(){var l=this,q=l.getEl(),o=l.parent(),m,n;if(l.items){var k=l.items().toArray();n=k.length;while(n--){k[n].remove()}}if(o&&o.items){m=[];o.items().each(function(r){if(r!==l){m.push(r)}});o.items().set(m);o._lastRect=null}if(l._eventsRoot&&l._eventsRoot==l){a.off(q)}var p=l.getRoot().controlIdLookup;if(p){delete p[l._id]}if(q&&q.parentNode){q.parentNode.removeChild(q)}l._rendered=false;return l},renderBefore:function(l){var k=this;l.parentNode.insertBefore(a.createFragment(k.renderHtml()),l);k.postRender();return k},renderTo:function(l){var k=this;l=l||k.getContainerElm();l.appendChild(a.createFragment(k.renderHtml()));k.postRender();return k},postRender:function(){var s=this,l=s.settings,n,m,q,k,p;for(k in l){if(k.indexOf("on")===0){s.on(k.substr(2),l[k])}}if(s._eventsRoot){for(q=s.parent();!p&&q;q=q.parent()){p=q._eventsRoot}if(p){for(k in p._nativeEvents){s._nativeEvents[k]=true}}}s.bindPendingEvents();if(l.style){n=s.getEl();if(n){n.setAttribute("style",l.style);n.style.cssText=l.style}}if(!s._visible){a.css(s.getEl(),"display","none")}if(s.settings.border){m=s.borderBox();a.css(s.getEl(),{"border-top-width":m.top,"border-right-width":m.right,"border-bottom-width":m.bottom,"border-left-width":m.left})}var o=s.getRoot();if(!o.controlIdLookup){o.controlIdLookup={}}o.controlIdLookup[s._id]=s;for(var r in s._aria){s.aria(r,s._aria[r])}s.fire("postrender",{},false)},scrollIntoView:function(m){function u(B,z){var v,A,w=B;v=A=0;while(w&&w!=z&&w.nodeType){v+=w.offsetLeft||0;A+=w.offsetTop||0;w=w.offsetParent}return{x:v,y:A}}var o=this.getEl(),n=o.parentNode;var r,q,k,t,s,l;var p=u(o,n);r=p.x;q=p.y;k=o.offsetWidth;t=o.offsetHeight;s=n.clientWidth;l=n.clientHeight;if(m=="end"){r-=s-k;q-=l-t}else{if(m=="center"){r-=(s/2)-(k/2);q-=(l/2)-(t/2)}}n.scrollLeft=r;n.scrollTop=q;return this},bindPendingEvents:function(){var w=this,q,o,u,n,s,m;function t(x){var l=w.getParentCtrl(x.target);if(l){l.fire(x.type,x)}}function p(){var l=n._lastHoverCtrl;if(l){l.fire("mouseleave",{target:l.getEl()});l.parents().each(function(x){x.fire("mouseleave",{target:x.getEl()})});n._lastHoverCtrl=null}}function v(B){var A=w.getParentCtrl(B.target),z=n._lastHoverCtrl,l=0,y,x,C;if(A!==z){n._lastHoverCtrl=A;x=A.parents().toArray().reverse();x.push(A);if(z){C=z.parents().toArray().reverse();C.push(z);for(l=0;l=l;y--){z=C[y];z.fire("mouseleave",{target:z.getEl()})}}for(y=l;y'+(b.settings.title?(''+b.settings.title+""):"")+'
'+(b.settings.html||"")+c.renderHtml(b)+"
")}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FilePicker.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FilePicker.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/FilePicker",["tinymce/ui/ComboBox","tinymce/util/Tools"],function(b,a){return b.extend({init:function(g){var e=this,f=tinymce.activeEditor,d=f.settings;var c,i,h;g.spellcheck=false;h=d.file_picker_types||d.file_browser_callback_types;if(h){h=a.makeMap(h,/[, ]/)}if(!h||h[g.filetype]){i=d.file_picker_callback;if(i&&(!h||h[g.filetype])){c=function(){var j=e.fire("beforecall").meta;j=a.extend({filetype:g.filetype},j);i.call(f,function(k,l){e.value(k).fire("change",{meta:l})},e.value(),j)}}else{i=d.file_browser_callback;if(i&&(!h||h[g.filetype])){c=function(){i(e.getEl("inp").id,e.value(),g.filetype,window)}}}}if(c){g.icon="browse";g.onaction=c}e._super(g)}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FitLayout.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FitLayout.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/FitLayout",["tinymce/ui/AbsoluteLayout"],function(a){return a.extend({recalc:function(c){var b=c.layoutRect(),d=c.paddingBox();c.items().filter(":visible").each(function(e){e.layoutRect({x:d.left,y:d.top,w:b.innerW-d.right-d.left,h:b.innerH-d.top-d.bottom});if(e.recalc){e.recalc()}})}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FlexLayout.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FlexLayout.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/FlexLayout",["tinymce/ui/AbsoluteLayout"],function(a){return a.extend({recalc:function(E){var Q,L,r,O,m,u,K,p,d,R,e,n;var M,c,f,h,k=[],j,x,I,B,C,P;var H,w,o,g,T,F,q,G;var y,b,v,J,A,N;var D,z;var s=Math.max,S=Math.min;r=E.items().filter(":visible");O=E.layoutRect();m=E._paddingBox;u=E.settings;n=E.isRtl()?(u.direction||"row-reversed"):u.direction;K=u.align;p=E.isRtl()?(u.pack||"end"):u.pack;d=u.spacing||0;if(n=="row-reversed"||n=="column-reverse"){r=r.set(r.toArray().reverse());n=n.split("-")[0]}if(n=="column"){o="y";H="h";w="minH";g="maxH";F="innerH";T="top";q="deltaH";G="contentH";A="left";v="w";y="x";b="innerW";J="minW";N="right";D="deltaW";z="contentW"}else{o="x";H="w";w="minW";g="maxW";F="innerW";T="left";q="deltaW";G="contentW";A="top";v="h";y="y";b="innerH";J="minH";N="bottom";D="deltaH";z="contentH"}e=O[F]-m[T]-m[T];P=R=0;for(Q=0,L=r.length;Q0){R+=h;if(c[g]){k.push(M)}c.flex=h}e-=c[w];j=m[A]+c[J]+m[N];if(j>P){P=j}}B={};if(e<0){B[w]=O[w]-e+O[q]}else{B[w]=O[F]-e+O[q]}B[J]=P+O[D];B[G]=O[F]-e;B[z]=P;B.minW=S(B.minW,O.maxW);B.minH=S(B.minH,O.maxH);B.minW=s(B.minW,O.startMinWidth);B.minH=s(B.minH,O.startMinHeight);if(O.autoResize&&(B.minW!=O.minW||B.minH!=O.minH)){B.w=B.minW;B.h=B.minH;E.layoutRect(B);this.recalc(E);if(E._lastRect===null){var t=E.parent();if(t){t._lastRect=null;t.recalc()}}return}I=e/R;for(Q=0,L=k.length;Qx){e-=(c[g]-c[w]);R-=c.flex;c.flex=0;c.maxFlexSize=x}else{c.maxFlexSize=0}}I=e/R;C=m[T];B={};if(R===0){if(p=="end"){C=e+m[T]}else{if(p=="center"){C=Math.round((O[F]/2)-((O[F]-e)/2))+m[T];if(C<0){C=m[T]}}else{if(p=="justify"){C=m[T];d=Math.floor(e/(r.length-1))}}}}B[y]=m[A];for(Q=0,L=r.length;Q0){j+=c.flex*I}B[H]=j;B[o]=C;M.layoutRect(B);if(M.recalc){M.recalc()}C+=j+d}}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FloatPanel.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FloatPanel.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/FloatPanel",["tinymce/ui/Panel","tinymce/ui/Movable","tinymce/ui/Resizable","tinymce/ui/DomUtils"],function(o,l,c,a){var i,d,b,p=[];var g=[],q;function m(){function r(t,s){while(t){if(t==s){return true}t=t.parent()}}if(!i){i=function(v){if(v.button==2){return}var u=p.length;while(u--){var t=p[u],s=t.getParentCtrl(v.target);if(t.settings.autohide){if(s){if(r(s,t)||t.parent()===s){continue}}v=t.fire("autohide",{target:v.target});if(!v.isDefaultPrevented()){t.hide()}}}};a.on(document,"click",i)}}function f(){if(!d){d=function(){var r;r=p.length;while(r--){h(p[r])}};a.on(window,"scroll",d)}}function e(){if(!b){var s=document.documentElement,t=s.clientWidth,r=s.clientHeight;b=function(){if(!document.all||t!=s.clientWidth||r!=s.clientHeight){t=s.clientWidth;r=s.clientHeight;j.hideAll()}};a.on(window,"resize",b)}}function h(r){var s=a.getViewPort().y;function t(x,u){var w;for(var v=0;vs){r.fixed(false).layoutRect({y:r._autoFixY}).repaint();t(false,r._autoFixY-s)}}}}function n(v,t){var r,w=j.zIndex||65535,s;if(v){g.push(t)}else{r=g.length;while(r--){if(g[r]===t){g.splice(r,1)}}}if(g.length){for(r=0;r');u=u.firstChild;r.getContainerElm().appendChild(u);setTimeout(function(){a.addClass(u,t+"in");a.addClass(r.getEl(),t+"in")},0);q=true}n(true,r)}});r.on("show",function(){r.parents().each(function(t){if(t._fixed){r.fixed(true);return false}})});if(s.popover){r._preBodyHtml='
';r.addClass("popover").addClass("bottom").addClass(r.isRtl()?"end":"start")}},fixed:function(t){var s=this;if(s._fixed!=t){if(s._rendered){var r=a.getViewPort();if(t){s.layoutRect().y-=r.y}else{s.layoutRect().y+=r.y}}s.toggleClass("fixed",t);s._fixed=t}return s},show:function(){var r=this,s,t=r._super();s=p.length;while(s--){if(p[s]===r){break}}if(s===-1){p.push(r)}return t},hide:function(){k(this);n(false,this);return this._super()},hideAll:function(){j.hideAll()},close:function(){var r=this;if(!r.fire("close").isDefaultPrevented()){r.remove();n(false,r)}return r},remove:function(){k(this);this._super()},postRender:function(){var r=this;if(r.settings.bodyRole){this.getEl("body").setAttribute("role",r.settings.bodyRole)}return r._super()}});j.hideAll=function(){var s=p.length;while(s--){var r=p[s];if(r&&r.settings.autohide){r.hide();p.splice(s,1)}}};function k(r){var s;s=p.length;while(s--){if(p[s]===r){p.splice(s,1)}}s=g.length;while(s--){if(g[s]===r){g.splice(s,1)}}}return j}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FlowLayout.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FlowLayout.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/FlowLayout",["tinymce/ui/Layout"],function(a){return a.extend({Defaults:{containerClass:"flow-layout",controlClass:"flow-layout-item",endClass:"break"},recalc:function(b){b.items().filter(":visible").each(function(c){if(c.recalc){c.recalc()}})}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Form.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Form.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Form",["tinymce/ui/Container","tinymce/ui/FormItem","tinymce/util/Tools"],function(a,c,b){return a.extend({Defaults:{containerCls:"form",layout:"flex",direction:"column",align:"stretch",flex:1,padding:20,labelGap:30,spacing:10,callbacks:{submit:function(){this.submit()}}},preRender:function(){var e=this,d=e.items();if(!e.settings.formItemDefaults){e.settings.formItemDefaults={layout:"flex",autoResize:"overflow",defaults:{flex:1}}}d.each(function(h){var g,f=h.settings.label;if(f){g=new c(b.extend({items:{type:"label",id:h._id+"-l",text:f,flex:0,forId:h._id,disabled:h.disabled()}},e.settings.formItemDefaults));g.type="formitem";h.aria("labelledby",h._id+"-l");if(typeof h.settings.flex=="undefined"){h.settings.flex=1}e.replace(h,g);g.add(h)}})},recalcLabels:function(){var e=this,h=0,j=[],f,g,d;if(e.settings.labelGapCalc===false){return}if(e.settings.labelGapCalc=="children"){d=e.find("formitem")}else{d=e.items()}d.filter("formitem").each(function(l){var k=l.items()[0],i=k.getEl().clientWidth;h=i>h?i:h;j.push(k)});g=e.settings.labelGap||0;f=j.length;while(f--){j[f].settings.minWidth=h+g}},visible:function(d){var e=this._super(d);if(d===true&&this._rendered){this.recalcLabels()}return e},submit:function(){return this.fire("submit",{data:this.toJSON()})},postRender:function(){var d=this;d._super();d.recalcLabels();d.fromJSON(d.settings.data)}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FormItem.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FormItem.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/FormItem",["tinymce/ui/Container"],function(a){return a.extend({Defaults:{layout:"flex",align:"center",defaults:{flex:1}},renderHtml:function(){var b=this,c=b._layout,d=b.classPrefix;b.addClass("formitem");c.preRender(b);return('
'+(b.settings.title?('
'+b.settings.title+"
"):"")+'
'+(b.settings.html||"")+c.renderHtml(b)+"
")}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FormatControls.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/FormatControls.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/FormatControls",["tinymce/ui/Control","tinymce/ui/Widget","tinymce/ui/FloatPanel","tinymce/util/Tools","tinymce/EditorManager","tinymce/Env"],function(f,e,h,b,d,a){var g=b.each;d.on("AddEditor",function(i){if(i.editor.rtl){f.rtl=true}c(i.editor)});f.translate=function(i){return d.translate(i)};e.tooltips=!a.iOS;function c(n){var i;function o(q,r){return function(){var s=this;n.on("nodeChange",function(v){var t=n.formatter;var u=null;g(v.parents,function(w){g(q,function(x){if(r){if(t.matchNode(w,r,{value:x.value})){u=x.value}}else{if(t.matchNode(w,x.value)){u=x.value}}if(u){return false}});if(u){return false}});s.value(u)})}}function l(q){q=q.replace(/;$/,"").split(";");var r=q.length;while(r--){q[r]=q[r].split("=")}return q}function k(){var u=0,t=[];var s=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",icon:"bold",format:"bold"},{title:"Italic",icon:"italic",format:"italic"},{title:"Underline",icon:"underline",format:"underline"},{title:"Strikethrough",icon:"strikethrough",format:"strikethrough"},{title:"Superscript",icon:"superscript",format:"superscript"},{title:"Subscript",icon:"subscript",format:"subscript"},{title:"Code",icon:"code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Alignment",items:[{title:"Left",icon:"alignleft",format:"alignleft"},{title:"Center",icon:"aligncenter",format:"aligncenter"},{title:"Right",icon:"alignright",format:"alignright"},{title:"Justify",icon:"alignjustify",format:"alignjustify"}]}];function q(v){var w=[];if(!v){return}g(v,function(z){var y={text:z.title,icon:z.icon};if(z.items){y.menu=q(z.items)}else{var x=z.format||"custom"+u++;if(!z.format){z.name=x;t.push(z)}y.format=x;y.cmd=z.cmd}w.push(y)});return w}function r(){var v;if(n.settings.style_formats_merge){if(n.settings.style_formats){v=q(s.concat(n.settings.style_formats))}else{v=q(s)}}else{v=q(n.settings.style_formats||s)}return v}n.on("init",function(){g(t,function(v){n.formatter.register(v.name,v)})});return{type:"menu",items:r(),onPostRender:function(v){n.fire("renderFormatsMenu",{control:v.control})},itemDefaults:{preview:true,textStyle:function(){if(this.settings.format){return n.formatter.getCssText(this.settings.format)}},onPostRender:function(){var v=this;v.parent().on("show",function(){var w,x;w=v.settings.format;if(w){v.disabled(!n.formatter.canApply(w));v.active(n.formatter.match(w))}x=v.settings.cmd;if(x){v.active(n.queryCommandState(x))}})},onclick:function(){if(this.settings.format){j(this.settings.format)}if(this.settings.cmd){n.execCommand(this.settings.cmd)}}}}}i=k();g({bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript"},function(r,q){n.addButton(q,{tooltip:r,onPostRender:function(){var s=this;if(n.formatter){n.formatter.formatChanged(q,function(t){s.active(t)})}else{n.on("init",function(){n.formatter.formatChanged(q,function(t){s.active(t)})})}},onclick:function(){j(q)}})});g({outdent:["Decrease indent","Outdent"],indent:["Increase indent","Indent"],cut:["Cut","Cut"],copy:["Copy","Copy"],paste:["Paste","Paste"],help:["Help","mceHelp"],selectall:["Select all","SelectAll"],removeformat:["Clear formatting","RemoveFormat"],visualaid:["Visual aids","mceToggleVisualAid"],newdocument:["New document","mceNewDocument"]},function(r,q){n.addButton(q,{tooltip:r[0],cmd:r[1]})});g({blockquote:["Blockquote","mceBlockQuote"],numlist:["Numbered list","InsertOrderedList"],bullist:["Bullet list","InsertUnorderedList"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"],alignleft:["Align left","JustifyLeft"],aligncenter:["Align center","JustifyCenter"],alignright:["Align right","JustifyRight"],alignjustify:["Justify","JustifyFull"]},function(r,q){n.addButton(q,{tooltip:r[0],cmd:r[1],onPostRender:function(){var s=this;if(n.formatter){n.formatter.formatChanged(q,function(t){s.active(t)})}else{n.on("init",function(){n.formatter.formatChanged(q,function(t){s.active(t)})})}}})});function m(q){return function(){var r=this;q=q=="redo"?"hasRedo":"hasUndo";function s(){return n.undoManager?n.undoManager[q]():false}r.disabled(!s());n.on("Undo Redo AddUndo TypingUndo ClearUndos",function(){r.disabled(!s())})}}function p(){var q=this;n.on("VisualAid",function(r){q.active(r.hasVisual)});q.active(n.hasVisual)}n.addButton("undo",{tooltip:"Undo",onPostRender:m("undo"),cmd:"undo"});n.addButton("redo",{tooltip:"Redo",onPostRender:m("redo"),cmd:"redo"});n.addMenuItem("newdocument",{text:"New document",icon:"newdocument",cmd:"mceNewDocument"});n.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onPostRender:m("undo"),cmd:"undo"});n.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onPostRender:m("redo"),cmd:"redo"});n.addMenuItem("visualaid",{text:"Visual aids",selectable:true,onPostRender:p,cmd:"mceToggleVisualAid"});g({cut:["Cut","Cut","Meta+X"],copy:["Copy","Copy","Meta+C"],paste:["Paste","Paste","Meta+V"],selectall:["Select all","SelectAll","Meta+A"],bold:["Bold","Bold","Meta+B"],italic:["Italic","Italic","Meta+I"],underline:["Underline","Underline"],strikethrough:["Strikethrough","Strikethrough"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"],removeformat:["Clear formatting","RemoveFormat"]},function(r,q){n.addMenuItem(q,{text:r[0],icon:q,shortcut:r[2],cmd:r[1]})});n.on("mousedown",function(){h.hideAll()});function j(q){if(q.control){q=q.control.value()}if(q){n.execCommand("mceToggleFormat",false,q)}}n.addButton("styleselect",{type:"menubutton",text:"Formats",menu:i});n.addButton("formatselect",function(){var q=[],r=l(n.settings.block_formats||"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre");g(r,function(s){q.push({text:s[0],value:s[1],textStyle:function(){return n.formatter.getCssText(s[1])}})});return{type:"listbox",text:r[0][0],values:q,fixedWidth:true,onselect:j,onPostRender:o(q)}});n.addButton("fontselect",function(){var r="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats";var q=[],s=l(n.settings.font_formats||r);g(s,function(t){q.push({text:{raw:t[0]},value:t[1],textStyle:t[1].indexOf("dings")==-1?"font-family:"+t[1]:""})});return{type:"listbox",text:"Font Family",tooltip:"Font Family",values:q,fixedWidth:true,onPostRender:o(q,"fontname"),onselect:function(t){if(t.control.settings.value){n.execCommand("FontName",false,t.control.settings.value)}}}});n.addButton("fontsizeselect",function(){var q=[],s="8pt 10pt 12pt 14pt 18pt 24pt 36pt";var r=n.settings.fontsize_formats||s;g(r.split(" "),function(u){var w=u,v=u;var t=u.split("=");if(t.length>1){w=t[0];v=t[1]}q.push({text:w,value:v})});return{type:"listbox",text:"Font Sizes",tooltip:"Font Sizes",values:q,fixedWidth:true,onPostRender:o(q,"fontsize"),onclick:function(t){if(t.control.settings.value){n.execCommand("FontSize",false,t.control.settings.value)}}}});n.addMenuItem("formats",{text:"Formats",menu:i})}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/GridLayout.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/GridLayout.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/GridLayout",["tinymce/ui/AbsoluteLayout"],function(a){return a.extend({recalc:function(v){var L=v.settings,K,n,o,H,c,g,t,f,G,C,B,z,w,i,k,F,l,h,e,I,q,p,E=[],b=[],r,M,j,m,A,N;L=v.settings;o=v.items().filter(":visible");H=v.layoutRect();n=L.columns||Math.ceil(Math.sqrt(o.length));K=Math.ceil(o.length/n);l=L.spacingH||L.spacing||0;h=L.spacingV||L.spacing||0;e=L.alignH||L.align;I=L.alignV||L.align;k=v._paddingBox;A="reverseRows" in L?L.reverseRows:v.isRtl();if(e&&typeof e=="string"){e=[e]}if(I&&typeof I=="string"){I=[I]}for(C=0;CE[C]?r:E[C];b[B]=M>b[B]?M:b[B]}}j=H.innerW-k.left-k.right;for(q=0,C=0;C0?l:0);j-=(C>0?l:0)+E[C]}m=H.innerH-k.top-k.bottom;for(p=0,B=0;B0?h:0);m-=(B>0?h:0)+b[B]}q+=k.left+k.right;p+=k.top+k.bottom;t={};t.minW=q+(H.w-H.innerW);t.minH=p+(H.h-H.innerH);t.contentW=t.minW-H.deltaW;t.contentH=t.minH-H.deltaH;t.minW=Math.min(t.minW,H.maxW);t.minH=Math.min(t.minH,H.maxH);t.minW=Math.max(t.minW,H.startMinWidth);t.minH=Math.max(t.minH,H.startMinHeight);if(H.autoResize&&(t.minW!=H.minW||t.minH!=H.minH)){t.w=t.minW;t.h=t.minH;v.layoutRect(t);this.recalc(v);if(v._lastRect===null){var s=v.parent();if(s){s._lastRect=null;s.recalc()}}return}if(H.autoResize){t=v.layoutRect(t);t.contentW=t.minW-H.deltaW;t.contentH=t.minH-H.deltaH}var u;if(L.packV=="start"){u=0}else{u=m>0?Math.floor(m/K):0}var J=0;var d=L.flexWidths;if(d){for(C=0;C')},src:function(b){this.getEl().src=b},html:function(d,e){var c=this,b=this.getEl().contentWindow.document.body;if(!b){setTimeout(function(){c.html(d)},0)}else{b.innerHTML=d;if(e){e()}}return this}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/KeyboardNavigation.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/KeyboardNavigation.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/KeyboardNavigation",[],function(){return function(s){var o=s.root,a,h;try{a=document.activeElement}catch(r){a=document.body}h=o.getParentCtrl(a);function l(w){w=w||a;return w&&w.getAttribute("role")}function v(y){var x,w=y||a;while((w=w.parentNode)){if((x=l(w))){return x}}}function n(w){var x=a;if(x){return x.getAttribute("aria-"+w)}}function m(x){var w=x.tagName.toUpperCase();return w=="INPUT"||w=="TEXTAREA"}function b(w){if(m(w)&&!w.hidden){return true}if(/^(button|menuitem|checkbox|tab|menuitemcheckbox|option|gridcell)$/.test(l(w))){return true}return false}function g(y){var x=[];function w(A){if(A.nodeType!=1||A.style.display=="none"){return}if(b(A)){x.push(A)}for(var z=0;z=x.length){w=0}}if(x[w]){x[w].focus()}return w}function u(y,A){var w=-1,x=f();A=A||g(x.getEl());for(var z=0;ze.maxW){e.minW=e.maxW;c.addClass("multiline")}c.getEl().style.width=e.minW+"px";e.startMinH=e.h=e.minH=Math.min(e.maxH,a.getSize(c.getEl()).height)}return e},repaint:function(){var c=this;if(!c.settings.multiline){c.getEl().style.lineHeight=c.layoutRect().h+"px"}return c._super()},text:function(d){var c=this;if(c._rendered&&d){this.innerHtml(c.encode(d))}return c._super(d)},renderHtml:function(){var d=this,c=d.settings.forId;return('")}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Layout.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Layout.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Layout",["tinymce/util/Class","tinymce/util/Tools"],function(a,b){return a.extend({Defaults:{firstControlClass:"first",lastControlClass:"last"},init:function(c){this.settings=b.extend({},this.Defaults,c)},preRender:function(c){c.addClass(this.settings.containerClass,"body")},applyClasses:function(c){var e=this,h=e.settings,d,g,f;d=c.items().filter(":visible");g=h.firstControlClass;f=h.lastControlClass;d.each(function(i){i.removeClass(g).removeClass(f);if(h.controlClass){i.addClass(h.controlClass)}});d.eq(0).addClass(g);d.eq(-1).addClass(f)},renderHtml:function(c){var e=this,g=e.settings,d,f="";d=c.items();d.eq(0).addClass(g.firstControlClass);d.eq(-1).addClass(g.lastControlClass);d.each(function(h){if(g.controlClass){h.addClass(g.controlClass)}f+=h.renderHtml()});return f},recalc:function(){},postRender:function(){}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/ListBox.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/ListBox.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/ListBox",["tinymce/ui/MenuButton"],function(a){return a.extend({init:function(f){var d=this,c,e,h,b;function g(j){for(var k=0;k0){h=c[0].text;d._value=c[0].value}f.menu=c}f.text=f.text||h||c[0].text;d._super(f);d.addClass("listbox");d.on("select",function(j){var i=j.control;if(b){j.lastControl=b}if(f.multiple){i.active(!i.active())}else{d.value(j.control.settings.value)}b=i})},value:function(d){var b=this,e,h,g;function f(j,i){j.items().each(function(k){e=k.value()===i;if(e){h=h||k.text()}k.active(e);if(k.menu){f(k.menu,i)}})}function c(j){for(var k=0;k')},postRender:function(){var f=this;f.on("click",function(g){if(g.control===f&&a(g.target,f.getEl())){f.showMenu();if(g.aria){f.menu.items()[0].focus()}}});f.on("mouseenter",function(j){var g=j.control,i=f.parent(),h;if(g&&i&&g instanceof e&&g.parent()==i){i.items().filter("MenuButton").each(function(k){if(k.hideMenu&&k!=g){if(k.menu&&k.menu.visible()){h=true}k.hideMenu()}});if(h){g.focus();g.showMenu()}}});return f._super()},text:function(j){var f=this,h,g;if(f._rendered){g=f.getEl("open").getElementsByTagName("span");for(h=0;h'+(k!=="-"?'\u00a0":"")+(k!=="-"?''+k+"":"")+(h?'
'+h+"
":"")+(g.menu?'
':"")+"")},postRender:function(){var e=this,f=e.settings;var g=f.textStyle;if(typeof g=="function"){g=g.call(this)}if(g){var d=e.getEl("text");if(d){d.setAttribute("style",g)}}e.on("mouseenter click",function(h){if(h.control===e){if(!f.menu&&h.type==="click"){e.fire("select");e.parent().hideAll()}else{e.showMenu();if(h.aria){e.menu.focus(true)}}}});e._super();return e},active:function(d){if(typeof d!="undefined"){this.aria("checked",d)}return this._super(d)},remove:function(){this._super();if(this.menu){this.menu.remove()}}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/MessageBox.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/MessageBox.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/MessageBox",["tinymce/ui/Window"],function(b){var a=b.extend({init:function(c){c={border:1,padding:20,layout:"flex",pack:"center",align:"center",containerCls:"panel",autoScroll:true,buttons:{type:"button",text:"Ok",action:"ok"},items:{type:"label",multiline:true,maxWidth:500,maxHeight:200}};this._super(c)},Statics:{OK:1,OK_CANCEL:2,YES_NO:3,YES_NO_CANCEL:4,msgBox:function(d){var e,f=d.callback||function(){};function c(i,g,h){return{type:"button",text:i,subtype:h?"primary":"",onClick:function(j){j.control.parents()[1].close();f(g)}}}switch(d.buttons){case a.OK_CANCEL:e=[c("Ok",true,true),c("Cancel",false)];break;case a.YES_NO:case a.YES_NO_CANCEL:e=[c("Yes",1,true),c("No",0)];if(d.buttons==a.YES_NO_CANCEL){e.push(c("Cancel",-1))}break;default:e=[c("Ok",true,true)];break}return new b({padding:20,x:d.x,y:d.y,minWidth:300,minHeight:100,layout:"flex",pack:"center",align:"center",buttons:e,title:d.title,role:"alertdialog",items:{type:"label",multiline:true,maxWidth:500,maxHeight:200,text:d.text},onPostRender:function(){this.aria("describedby",this.items()[0]._id)},onClose:d.onClose,onCancel:function(){f(false)}}).renderTo(document.body).reflow()},alert:function(c,d){if(typeof c=="string"){c={text:c}}c.callback=d;return a.msgBox(c)},confirm:function(c,d){if(typeof c=="string"){c={text:c}}c.callback=d;c.buttons=a.OK_CANCEL;return a.msgBox(c)}}});return a}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Movable.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Movable.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Movable",["tinymce/ui/DomUtils"],function(a){function b(c,k,n){var m,g,j,h,l,e,i,d,f,o;f=a.getViewPort();g=a.getPos(k);j=g.x;h=g.y;if(c._fixed&&a.getRuntimeStyle(document.body,"position")=="static"){j-=f.x;h-=f.y}m=c.getEl();o=a.getSize(m);l=o.width;e=o.height;o=a.getSize(k);i=o.width;d=o.height;n=(n||"").split("");if(n[0]==="b"){h+=d}if(n[1]==="r"){j+=i}if(n[0]==="c"){h+=Math.round(d/2)}if(n[1]==="c"){j+=Math.round(i/2)}if(n[3]==="b"){h-=e}if(n[4]==="r"){j-=l}if(n[3]==="c"){h-=Math.round(e/2)}if(n[4]==="c"){j-=Math.round(l/2)}return{x:j,y:h,w:l,h:e}}return{testMoveRel:function(g,d){var c=a.getViewPort();for(var e=0;e0&&f.x+f.w0&&f.y+f.hc.x&&f.x+f.wc.y&&f.y+f.hi){k=i-j;return k<0?0:k}return k}if(e.settings.constrainToViewport){var f=a.getViewPort(window);var g=e.layoutRect();c=d(c,f.w+f.x,g.w);h=d(h,f.h+f.y,g.h)}if(e._rendered){e.layoutRect({x:c,y:h}).repaint()}else{e.settings.x=c;e.settings.y=h}e.fire("move",{x:c,y:h});return e}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Panel.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Panel.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Panel",["tinymce/ui/Container","tinymce/ui/Scrollable"],function(b,a){return b.extend({Defaults:{layout:"fit",containerCls:"panel"},Mixins:[a],renderHtml:function(){var d=this,e=d._layout,c=d.settings.html;d.preRender();e.preRender(d);if(typeof c=="undefined"){c=('
'+e.renderHtml(d)+"
")}else{if(typeof c=="function"){c=c.call(d)}d._hasBody=false}return('
'+(d._preBodyHtml||"")+c+"
")}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/PanelButton.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/PanelButton.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/PanelButton",["tinymce/ui/Button","tinymce/ui/FloatPanel"],function(a,b){return a.extend({showPanel:function(){var c=this,d=c.settings;c.active(true);if(!c.panel){var e=d.panel;if(e.type){e={layout:"grid",items:e}}e.role=e.role||"dialog";e.popover=true;e.autohide=true;e.ariaRoot=true;c.panel=new b(e).on("hide",function(){c.active(false)}).on("cancel",function(f){f.stopPropagation();c.focus();c.hidePanel()}).parent(c).renderTo(c.getContainerElm());c.panel.fire("show");c.panel.reflow()}else{c.panel.show()}c.panel.moveRel(c.getEl(),d.popoverAlign||(c.isRtl()?["bc-tr","bc-tc"]:["bc-tl","bc-tc"]))},hidePanel:function(){var c=this;if(c.panel){c.panel.hide()}},postRender:function(){var c=this;c.aria("haspopup",true);c.on("click",function(d){if(d.control===c){if(c.panel&&c.panel.visible()){c.hidePanel()}else{c.showPanel();c.panel.focus(!!d.aria)}}});return c._super()},remove:function(){if(this.panel){this.panel.remove();this.panel=null}return this._super()}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Path.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Path.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Path",["tinymce/ui/Widget"],function(a){return a.extend({init:function(c){var b=this;if(!c.delimiter){c.delimiter="\u00BB"}b._super(c);b.addClass("path");b.canFocus=true;b.on("click",function(g){var d,f=g.target;if((d=f.getAttribute("data-index"))){b.fire("select",{value:b.data()[d],index:d})}})},focus:function(){var b=this;b.getEl().firstChild.focus();return b},data:function(c){var b=this;if(typeof c!=="undefined"){b._data=c;b.update();return b}return b._data},update:function(){this.innerHtml(this._getPathHtml())},postRender:function(){var b=this;b._super();b.data(b.settings.data)},renderHtml:function(){var b=this;return('
'+b._getPathHtml()+"
")},_getPathHtml:function(){var c=this,g=c._data||[],e,b,d="",f=c.classPrefix;for(e=0,b=g.length;e0?'":"")+'
'+g[e].name+"
")}if(!d){d='
\u00a0
'}return d}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Radio.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Radio.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Radio",["tinymce/ui/Checkbox"],function(a){return a.extend({Defaults:{classes:"radio",role:"radio"}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Resizable.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Resizable.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Resizable",["tinymce/ui/DomUtils"],function(a){return{resizeToContent:function(){this._layoutRect.autoResize=true;this._lastRect=null;this.reflow()},resizeTo:function(b,c){if(b<=1||c<=1){var d=a.getWindowSize();b=b<=1?b*d.w:b;c=c<=1?c*d.h:c}this._layoutRect.autoResize=false;return this.layoutRect({minW:b,minH:c,w:b,h:c}).reflow()},resizeBy:function(c,e){var b=this,d=b.layoutRect();return b.resizeTo(d.w+c,d.h+e)}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/ResizeHandle.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/ResizeHandle.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/ResizeHandle",["tinymce/ui/Widget","tinymce/ui/DragHelper"],function(b,a){return b.extend({renderHtml:function(){var c=this,d=c.classPrefix;c.addClass("resizehandle");if(c.settings.direction=="both"){c.addClass("resizehandle-both")}c.canFocus=false;return('
')},postRender:function(){var c=this;c._super();c.resizeDragHelper=new a(this._id,{start:function(){c.fire("ResizeStart")},drag:function(d){if(c.settings.direction!="both"){d.deltaX=0}c.fire("Resize",d)},stop:function(){c.fire("ResizeEnd")}})},remove:function(){if(this.resizeDragHelper){this.resizeDragHelper.destroy()}return this._super()}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Scrollable.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Scrollable.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Scrollable",["tinymce/ui/DomUtils","tinymce/ui/DragHelper"],function(a,b){return{init:function(){var c=this;c.on("repaint",c.renderScroll)},renderScroll:function(){var d=this,e=2;function f(){var j,i,h;function g(o,n,q,w,v,m){var p,t,s;var l,k,r,u;var x,y;t=d.getEl("scroll"+o);if(t){x=n.toLowerCase();y=q.toLowerCase();if(d.getEl("absend")){a.css(d.getEl("absend"),x,d.layoutRect()[w]-1)}if(!v){a.css(t,"display","none");return}a.css(t,"display","block");p=d.getEl("body");s=d.getEl("scroll"+o+"t");l=p["client"+q]-(e*2);l-=j&&i?t["client"+m]:0;k=p["scroll"+q];r=l/k;u={};u[x]=p["offset"+n]+e;u[y]=l;a.css(t,u);u={};u[x]=p["scroll"+n]*r;u[y]=l*r;a.css(s,u)}}h=d.getEl("body");j=h.scrollWidth>h.clientWidth;i=h.scrollHeight>h.clientHeight;g("h","Left","Width","contentW",j,"Height");g("v","Top","Height","contentH",i,"Width")}function c(){function g(n,j,h,o,l){var m,i=d._id+"-scroll"+n,k=d.classPrefix;d.getEl().appendChild(a.createFragment('
'));d.draghelper=new b(i+"t",{start:function(){m=d.getEl("body")["scroll"+j];a.addClass(a.get(i),k+"active")},drag:function(s){var p,u,r,t,q=d.layoutRect();u=q.contentW>q.innerW;r=q.contentH>q.innerH;t=d.getEl("body")["client"+h]-(e*2);t-=u&&r?d.getEl("scroll"+n)["client"+l]:0;p=t/d.getEl("body")["scroll"+h];d.getEl("body")["scroll"+j]=m+(s["delta"+o]/p)},stop:function(){a.removeClass(a.get(i),k+"active")}})}d.addClass("scroll");g("v","Top","Height","Y","Width");g("h","Left","Width","X","Height")}if(d.settings.autoScroll){if(!d._hasScroll){d._hasScroll=true;c();d.on("wheel",function(h){var g=d.getEl("body");g.scrollLeft+=(h.deltaX||0)*10;g.scrollTop+=h.deltaY*10;f()});a.on(d.getEl("body"),"scroll",f)}f()}}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Selector.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Selector.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Selector",["tinymce/util/Class"],function(c){function g(l){var h=[],j=l.length,k;while(j--){k=l[j];if(!k.__checked){h.push(k);k.__checked=1}}j=h.length;while(j--){delete h[j].__checked}return h}var f=/^([\w\\*]+)?(?:#([\w\\]+))?(?:\.([\w\\\.]+))?(?:\[\@?([\w\\]+)([\^\$\*!~]?=)([\w\\]+)\])?(?:\:(.+))?/i;var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=/^\s*|\s*$/g,d;var b=c.extend({init:function(i){var k=this.match;function j(q){if(q){q=q.toLowerCase();return function(r){return q==="*"||r.type===q}}}function o(q){if(q){return function(r){return r._name===q}}}function l(q){if(q){q=q.split(".");return function(s){var r=q.length;while(r--){if(!s.hasClass(q[r])){return false}}return true}}}function h(r,s,q){if(r){return function(t){var u=t[r]?t[r]():"";return !s?!!q:s==="="?u===q:s==="*="?u.indexOf(q)>=0:s==="~="?(" "+u+" ").indexOf(" "+q+" ")>=0:s==="!="?u!=q:s==="^="?u.indexOf(q)===0:s==="$="?u.substr(u.length-q.length)===q:false}}}function n(q){var r;if(q){q=/(?:not\((.+)\))|(.+)/i.exec(q);if(!q[1]){q=q[2];return function(u,s,t){return q==="first"?s===0:q==="last"?s===t-1:q==="even"?s%2===0:q==="odd"?s%2===1:u[q]?u[q]():false}}else{r=m(q[1],[]);return function(s){return !k(s,r)}}}}function p(q,r,u){var t;function s(v){if(v){r.push(v)}}t=f.exec(q.replace(e,""));s(j(t[1]));s(o(t[2]));s(l(t[3]));s(h(t[4],t[5],t[6]));s(n(t[7]));r.psuedo=!!t[7];r.direct=u;return r}function m(r,t){var v=[],q,u,s;do{a.exec("");u=a.exec(r);if(u){r=u[3];v.push(u[1]);if(u[2]){q=u[3];break}}}while(u);if(q){m(q,t)}r=[];for(s=0;s"){r.push(p(v[s],[],v[s-1]===">"))}}t.push(r);return t}this._selectors=m(i,[])},match:function(o,v){var p,k,q,m,n,x,u,j,s,h,t,r,w;v=v||this._selectors;for(p=0,k=v.length;p=0;q--){j=n[q];while(w){if(j.psuedo){t=w.parent().items();s=h=t.length;while(s--){if(t[s]===w){break}}}for(x=0,u=j.length;x1){o=g(o)}}if(!d){d=b.Collection}return new d(o)}});return b}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Spacer.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Spacer.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Spacer",["tinymce/ui/Widget"],function(a){return a.extend({renderHtml:function(){var b=this;b.addClass("spacer");b.canFocus=false;return'
'}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/SplitButton.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/SplitButton.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/SplitButton",["tinymce/ui/MenuButton","tinymce/ui/DomUtils"],function(b,a){return b.extend({Defaults:{classes:"widget btn splitbtn",role:"button"},repaint:function(){var c=this,g=c.getEl(),e=c.layoutRect(),d,f;c._super();d=g.firstChild;f=g.lastChild;a.css(d,{width:e.w-a.getSize(f).width,height:e.h-2});a.css(f,{height:e.h-2});return c},activeMenu:function(d){var c=this;a.toggleClass(c.getEl().lastChild,c.classPrefix+"active",d)},renderHtml:function(){var c=this,g=c._id,e=c.classPrefix,f;var d=c.settings.icon;f=c.settings.image;if(f){d="none";if(typeof f!="string"){f=window.getSelection?f[0]:f[1]}f=" style=\"background-image: url('"+f+"')\""}else{f=""}d=c.settings.icon?e+"ico "+e+"i-"+d:"";return('
')},postRender:function(){var c=this,d=c.settings.onclick;c.on("click",function(g){var f=g.target;if(g.control==this){while(f){if((g.aria&&g.aria.key!="down")||(f.nodeName=="BUTTON"&&f.className.indexOf("open")==-1)){g.stopImmediatePropagation();d.call(this,g);return}f=f.parentNode}}});delete c.settings.onclick;return c._super()}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/StackLayout.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/StackLayout.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/StackLayout",["tinymce/ui/FlowLayout"],function(a){return a.extend({Defaults:{containerClass:"stack-layout",controlClass:"stack-layout-item",endClass:"break"}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/TabPanel.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/TabPanel.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/TabPanel",["tinymce/ui/Panel","tinymce/ui/DomUtils"],function(b,a){return b.extend({Defaults:{layout:"absolute",defaults:{type:"panel"}},activateTab:function(c){var d;if(this.activeTabId){d=this.getEl(this.activeTabId);a.removeClass(d,this.classPrefix+"active");d.setAttribute("aria-selected","false")}this.activeTabId="t"+c;d=this.getEl("t"+c);d.setAttribute("aria-selected","true");a.addClass(d,this.classPrefix+"active");this.items()[c].show().fire("showtab");this.reflow();this.items().each(function(f,e){if(c!=e){f.hide()}})},renderHtml:function(){var d=this,e=d._layout,c="",f=d.classPrefix;d.preRender();e.preRender(d);d.items().each(function(h,g){var j=d._id+"-t"+g;h.aria("role","tabpanel");h.aria("labelledby",j);c+=('")});return('
'+c+'
'+e.renderHtml(d)+"
")},postRender:function(){var c=this;c._super();c.settings.activeTab=c.settings.activeTab||0;c.activateTab(c.settings.activeTab);this.on("click",function(g){var f=g.target.parentNode;if(g.target.parentNode.id==c._id+"-head"){var d=f.childNodes.length;while(d--){if(f.childNodes[d]==g.target){c.activateTab(d)}}}})},initLayoutRect:function(){var d=this,g,c,f;c=a.getSize(d.getEl("head")).width;c=c<0?0:c;f=0;d.items().each(function(h){c=Math.max(c,h.layoutRect().minW);f=Math.max(f,h.layoutRect().minH)});d.items().each(function(h){h.settings.x=0;h.settings.y=0;h.settings.w=c;h.settings.h=f;h.layoutRect({x:0,y:0,w:c,h:f})});var e=a.getSize(d.getEl("head")).height;d.settings.minWidth=c;d.settings.minHeight=f+e;g=d._super();g.deltaH+=e;g.innerH=g.h-g.deltaH;return g}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/TextBox.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/TextBox.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/TextBox",["tinymce/ui/Widget","tinymce/ui/DomUtils"],function(b,a){return b.extend({init:function(d){var c=this;c._super(d);c._value=d.value||"";c.addClass("textbox");if(d.multiline){c.addClass("multiline")}else{c.on("keydown",function(f){if(f.keyCode==13){c.parents().reverse().each(function(e){f.preventDefault();if(e.hasEventListeners("submit")&&e.toJSON){e.fire("submit",{data:e.toJSON()});return false}})}})}},disabled:function(d){var c=this;if(c._rendered&&typeof d!="undefined"){c.getEl().disabled=d}return c._super(d)},value:function(d){var c=this;if(typeof d!="undefined"){c._value=d;if(c._rendered){c.getEl().value=d}return c}if(c._rendered){return c.getEl().value}return c._value},repaint:function(){var d=this,f,g,j,e=0,h=0,c;f=d.getEl().style;g=d._layoutRect;c=d._lastRepaintRect||{};var i=document;if(!d.settings.multiline&&i.all&&(!i.documentMode||i.documentMode<=8)){f.lineHeight=(g.h-h)+"px"}j=d._borderBox;e=j.left+j.right+8;h=j.top+j.bottom+(d.settings.multiline?8:0);if(g.x!==c.x){f.left=g.x+"px";c.x=g.x}if(g.y!==c.y){f.top=g.y+"px";c.y=g.y}if(g.w!==c.w){f.width=(g.w-e)+"px";c.w=g.w}if(g.h!==c.h){f.height=(g.h-h)+"px";c.h=g.h}d._lastRepaintRect=c;d.fire("repaint",{},false);return d},renderHtml:function(){var c=this,g=c._id,d=c.settings,f=c.encode(c._value,false),e="";if("spellcheck" in d){e+=' spellcheck="'+d.spellcheck+'"'}if(d.maxLength){e+=' maxlength="'+d.maxLength+'"'}if(d.size){e+=' size="'+d.size+'"'}if(d.subtype){e+=' type="'+d.subtype+'"'}if(c.disabled()){e+=' disabled="disabled"'}if(d.multiline){return('")}return'"},postRender:function(){var c=this;a.on(c.getEl(),"change",function(d){c.fire("change",d)});return c._super()},remove:function(){a.off(this.getEl());this._super()}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Throbber.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Throbber.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Throbber",["tinymce/ui/DomUtils","tinymce/ui/Control"],function(a,b){return function(g,f){var d=this,e,c=b.classPrefix;d.show=function(h){d.hide();e=true;window.setTimeout(function(){if(e){g.appendChild(a.createFragment('
'))}},h||0);return d};d.hide=function(){var h=g.lastChild;if(h&&h.className.indexOf("throbber")!=-1){h.parentNode.removeChild(h)}e=false;return d}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Toolbar.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Toolbar.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Toolbar",["tinymce/ui/Container"],function(a){return a.extend({Defaults:{role:"toolbar",layout:"flow"},init:function(c){var b=this;b._super(c);b.addClass("toolbar")},postRender:function(){var b=this;b.items().addClass("toolbar-item");return b._super()}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Tooltip.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Tooltip.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Tooltip",["tinymce/ui/Control","tinymce/ui/Movable"],function(b,a){return b.extend({Mixins:[a],Defaults:{classes:"widget tooltip tooltip-n"},text:function(d){var c=this;if(typeof d!="undefined"){c._value=d;if(c._rendered){c.getEl().lastChild.innerHTML=c.encode(d)}return c}return c._value},renderHtml:function(){var c=this,d=c.classPrefix;return('")},repaint:function(){var c=this,d,e;d=c.getEl().style;e=c._layoutRect;d.left=e.x+"px";d.top=e.y+"px";d.zIndex=65535+65535}})}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Widget.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Widget.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Widget",["tinymce/ui/Control","tinymce/ui/Tooltip"],function(c,a){var d;var b=c.extend({init:function(f){var e=this;e._super(f);f=e.settings;e.canFocus=true;if(f.tooltip&&b.tooltips!==false){e.on("mouseenter",function(i){var h=e.tooltip().moveTo(-65535);if(i.control==e){var g=h.text(f.tooltip).show().testMoveRel(e.getEl(),["bc-tc","bc-tl","bc-tr"]);h.toggleClass("tooltip-n",g=="bc-tc");h.toggleClass("tooltip-nw",g=="bc-tl");h.toggleClass("tooltip-ne",g=="bc-tr");h.moveRel(e.getEl(),g)}else{h.hide()}});e.on("mouseleave mousedown click",function(){e.tooltip().hide()})}e.aria("label",f.ariaLabel||f.tooltip)},tooltip:function(){if(!d){d=new a({type:"tooltip"});d.renderTo()}return d},active:function(g){var e=this,f;if(g!==f){e.aria("pressed",g);e.toggleClass("active",g)}return e._super(g)},disabled:function(g){var e=this,f;if(g!==f){e.aria("disabled",g);e.toggleClass("disabled",g)}return e._super(g)},postRender:function(){var e=this,f=e.settings;e._rendered=true;e._super();if(!e.parent()&&(f.width||f.height)){e.initLayoutRect();e.repaint()}if(f.autofocus){e.focus()}},remove:function(){this._super();if(d){d.remove();d=null}}});return b}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Window.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Window.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/ui/Window",["tinymce/ui/FloatPanel","tinymce/ui/Panel","tinymce/ui/DomUtils","tinymce/ui/DragHelper"],function(e,d,a,c){var b=e.extend({modal:true,Defaults:{border:1,layout:"flex",containerCls:"panel",role:"dialog",callbacks:{submit:function(){this.fire("submit",{data:this.toJSON()})},close:function(){this.close()}}},init:function(g){var f=this;f._super(g);if(f.isRtl()){f.addClass("rtl")}f.addClass("window");f._fixed=true;if(g.buttons){f.statusbar=new d({layout:"flex",border:"1 0 0 0",spacing:3,padding:10,align:"center",pack:f.isRtl()?"start":"end",defaults:{type:"button"},items:g.buttons});f.statusbar.addClass("foot");f.statusbar.parent(f)}f.on("click",function(h){if(h.target.className.indexOf(f.classPrefix+"close")!=-1){f.close()}});f.on("cancel",function(){f.close()});f.aria("describedby",f.describedBy||f._id+"-none");f.aria("label",g.title);f._fullscreen=false},recalc:function(){var g=this,j=g.statusbar,i,h,f,k;if(g._fullscreen){g.layoutRect(a.getWindowSize());g.layoutRect().contentH=g.layoutRect().innerH}g._super();i=g.layoutRect();if(g.settings.title&&!g._fullscreen){h=i.headerW;if(h>i.w){f=i.x-Math.max(0,h/2);g.layoutRect({w:h,x:f});k=true}}if(j){j.layoutRect({w:g.layoutRect().innerW}).recalc();h=j.layoutRect().minW+i.deltaW;if(h>i.w){f=i.x-Math.max(0,h-i.w);g.layoutRect({w:h,x:f});k=true}}if(k){g.recalc()}},initLayoutRect:function(){var f=this,j=f._super(),i=0,k;if(f.settings.title&&!f._fullscreen){k=f.getEl("head");var g=a.getSize(k);j.headerW=g.width;j.headerH=g.height;i+=j.headerH}if(f.statusbar){i+=f.statusbar.layoutRect().h}j.deltaH+=i;j.minH+=i;j.h+=i;var h=a.getWindowSize();j.x=Math.max(0,h.w/2-j.w/2);j.y=Math.max(0,h.h/2-j.h/2);return j},renderHtml:function(){var g=this,j=g._layout,m=g._id,k=g.classPrefix;var i=g.settings,f="",l="",h=i.html;g.preRender();j.preRender(g);if(i.title){f=('
'+g.encode(i.title)+'
')}if(i.url){h=''}if(typeof h=="undefined"){h=j.renderHtml(g)}if(g.statusbar){l=g.statusbar.renderHtml()}return('
'+f+'
'+h+"
"+l+"
")},fullscreen:function(l){var f=this,k=document.documentElement,g,j=f.classPrefix,i;if(l!=f._fullscreen){a.on(window,"resize",function(){var n;if(f._fullscreen){if(!g){n=new Date().getTime();var m=a.getWindowSize();f.moveTo(0,0).resizeTo(m.w,m.h);if((new Date().getTime())-n>50){g=true}}else{if(!f._timer){f._timer=setTimeout(function(){var o=a.getWindowSize();f.moveTo(0,0).resizeTo(o.w,o.h);f._timer=0},50)}}}});i=f.layoutRect();f._fullscreen=l;if(!l){f._borderBox=f.parseBox(f.settings.border);f.getEl("head").style.display="";i.deltaH+=i.headerH;a.removeClass(k,j+"fullscreen");a.removeClass(document.body,j+"fullscreen");f.removeClass("fullscreen");f.moveTo(f._initial.x,f._initial.y).resizeTo(f._initial.w,f._initial.h)}else{f._initial={x:i.x,y:i.y,w:i.w,h:i.h};f._borderBox=f.parseBox("0");f.getEl("head").style.display="none";i.deltaH-=i.headerH+2;a.addClass(k,j+"fullscreen");a.addClass(document.body,j+"fullscreen");f.addClass("fullscreen");var h=a.getWindowSize();f.moveTo(0,0).resizeTo(h.w,h.h)}}return f.reflow()},postRender:function(){var f=this,g;setTimeout(function(){f.addClass("in")},0);f._super();if(f.statusbar){f.statusbar.postRender()}f.focus();this.dragHelper=new c(f._id+"-dragh",{start:function(){g={x:f.layoutRect().x,y:f.layoutRect().y}},drag:function(h){f.moveTo(g.x+h.deltaX,g.y+h.deltaY)}});f.on("submit",function(h){if(!h.isDefaultPrevented()){f.close()}})},submit:function(){return this.fire("submit",{data:this.toJSON()})},remove:function(){var f=this,g=f.classPrefix;f.dragHelper.destroy();f._super();if(f.statusbar){this.statusbar.remove()}if(f._fullscreen){a.removeClass(document.documentElement,g+"fullscreen");a.removeClass(document.body,g+"fullscreen")}},getContentWindow:function(){var f=this.getEl().getElementsByTagName("iframe")[0];return f?f.contentWindow:null}});return b}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/Class.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/Class.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/util/Class",["tinymce/util/Tools"],function(d){var e=d.each,f=d.extend;var c,b;function a(){}a.extend=c=function(g){var o=this,n=o.prototype,m,h,l;function i(){var s,p,r,q=this;if(!b){if(q.init){q.init.apply(q,arguments)}p=q.Mixins;if(p){s=p.length;while(s--){r=p[s];if(r.init){r.init.apply(q,arguments)}}}}}function j(){return this}function k(p,q){return function(){var r=this,t=r._super,s;r._super=n[p];s=q.apply(r,arguments);r._super=t;return s}}b=true;m=new o();b=false;if(g.Mixins){e(g.Mixins,function(p){p=p;for(var q in p){if(q!=="init"){g[q]=p[q]}}});if(n.Mixins){g.Mixins=n.Mixins.concat(g.Mixins)}}if(g.Methods){e(g.Methods.split(","),function(p){g[p]=j})}if(g.Properties){e(g.Properties.split(","),function(p){var q="_"+p;g[p]=function(t){var r=this,s;if(t!==s){r[q]=t;return r}return r[q]}})}if(g.Statics){e(g.Statics,function(q,p){i[p]=q})}if(g.Defaults&&n.Defaults){g.Defaults=f({},n.Defaults,g.Defaults)}for(h in g){l=g[h];if(typeof l=="function"&&n[h]){m[h]=k(h,l)}else{m[h]=l}}i.prototype=m;i.constructor=i;i.extend=c;return i};return a}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/Color.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/Color.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/util/Color",[],function(){var c=Math.min,a=Math.max,b=Math.round;function d(o){var p=this,e=0,l=0,n=0;function i(q,u,x){var t,B,z,w,y,A;t=0;B=0;z=0;q=q/255;u=u/255;x=x/255;y=c(q,c(u,x));A=a(q,a(u,x));if(y==A){z=y;return{h:0,s:0,v:z*100}}w=(q==y)?u-x:((x==y)?q-u:x-q);t=(q==y)?3:((x==y)?1:5);t=60*(t-w/(A-y));B=(A-y)/A;z=A;return{h:b(t),s:b(B*100),v:b(z*100)}}function j(q,u,v){var t,s,g,r;q=(parseInt(q,10)||0)%360;u=parseInt(u,10)/100;v=parseInt(v,10)/100;u=a(0,c(u,1));v=a(0,c(v,1));if(u===0){e=l=n=b(255*v);return}t=q/60;s=v*u;g=s*(1-Math.abs(t%2-1));r=v-s;switch(Math.floor(t)){case 0:e=s;l=g;n=0;break;case 1:e=g;l=s;n=0;break;case 2:e=0;l=s;n=g;break;case 3:e=0;l=g;n=s;break;case 4:e=g;l=0;n=s;break;case 5:e=s;l=0;n=g;break;default:e=l=n=0}e=b(255*(e+r));l=b(255*(l+r));n=b(255*(n+r))}function f(){function g(q){q=parseInt(q,10).toString(16);return q.length>1?q:"0"+q}return"#"+g(e)+g(l)+g(n)}function m(){return{r:e,g:l,b:n}}function k(){return i(e,l,n)}function h(q){var g;if(typeof q=="object"){if("r" in q){e=q.r;l=q.g;n=q.b}else{if("v" in q){j(q.h,q.s,q.v)}}}else{if((g=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(q))){e=parseInt(g[1],10);l=parseInt(g[2],10);n=parseInt(g[3],10)}else{if((g=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(q))){e=parseInt(g[1],16);l=parseInt(g[2],16);n=parseInt(g[3],16)}else{if((g=/#([0-F])([0-F])([0-F])/gi.exec(q))){e=parseInt(g[1]+g[1],16);l=parseInt(g[2]+g[2],16);n=parseInt(g[3]+g[3],16)}}}}e=e<0?0:(e>255?255:e);l=l<0?0:(l>255?255:l);n=n<0?0:(n>255?255:n);return p}if(o){h(o)}p.toRgb=m;p.toHsv=k;p.toHex=f;p.parse=h}return d}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/EventDispatcher.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/EventDispatcher.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/util/EventDispatcher",["tinymce/util/Tools"],function(b){var c=b.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchend"," ");function a(i){var o=this,n,e={},l;function g(){return false}function j(){return true}i=i||{};n=i.scope||o;l=i.toggleEvent||g;function f(s,r){var q,t,p,u;s=s.toLowerCase();r=r||{};r.type=s;if(!r.target){r.target=n}if(!r.preventDefault){r.preventDefault=function(){r.isDefaultPrevented=j};r.stopPropagation=function(){r.isPropagationStopped=j};r.stopImmediatePropagation=function(){r.isImmediatePropagationStopped=j};r.isDefaultPrevented=g;r.isPropagationStopped=g;r.isImmediatePropagationStopped=g}if(i.beforeFire){i.beforeFire(r)}q=e[s];if(q){for(t=0,p=q.length;t0?",":"")+a(g[f],c)}return b+"]"}b="{";for(d in g){if(g.hasOwnProperty(d)){b+=typeof g[d]!="function"?(b.length>1?","+c:c)+d+c+":"+a(g[d],c):""}}return b+"}"}return""+g}return{serialize:a,parse:function(c){try{return window[String.fromCharCode(101)+"val"]("("+c+")")}catch(b){}}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/JSONP.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/JSONP.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/util/JSONP",["tinymce/dom/DOMUtils"],function(a){return{callbacks:{},count:0,send:function(c){var b=this,e=a.DOM,d=c.count!==undefined?c.count:b.count;var f="tinymce_jsonp_"+d;b.callbacks[d]=function(g){e.remove(f);delete b.callbacks[d];c.callback(g)};e.add(e.doc.body,"script",{id:f,src:c.url,type:"text/javascript"});b.count++}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/JSONRequest.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/JSONRequest.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/util/JSONRequest",["tinymce/util/JSON","tinymce/util/XHR","tinymce/util/Tools"],function(d,c,b){var e=b.extend;function a(f){this.settings=e({},f);this.count=0}a.sendRPC=function(f){return new a().send(f)};a.prototype={send:function(h){var g=h.error,f=h.success;h=e(this.settings,h);h.success=function(j,i){j=d.parse(j);if(typeof j=="undefined"){j={error:"JSON Parse error."}}if(j.error){g.call(h.error_scope||h.scope,j.error,i)}else{f.call(h.success_scope||h.scope,j.result)}};h.error=function(j,i){if(g){g.call(h.error_scope||h.scope,j,i)}};h.data=d.serialize({id:h.id||"c"+(this.count++),method:h.method,params:h.params});h.content_type="application/json";c.send(h)}};return a}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/LocalStorage.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/LocalStorage.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/util/LocalStorage",[],function(){var d,c,g,i,j,b;try{if(window.localStorage){return localStorage}}catch(f){}j="tinymce";c=document.documentElement;b=!!c.addBehavior;if(b){c.addBehavior("#default#userData")}function a(){i=[];for(var k in g){i.push(k)}d.length=i.length}function h(){var k,n,m,p=0;g={};if(!b){return}function l(q){var s,r;r=q!==undefined?p+q:n.indexOf(",",p);if(r===-1||r>n.length){return null}s=n.substring(p,r);p=r+1;return s}c.load(j);n=c.getAttribute(j)||"";do{var o=l();if(o===null){break}k=l(parseInt(o,32)||0);if(k!==null){o=l();if(o===null){break}m=l(parseInt(o,32)||0);if(k){g[k]=m}}}while(k!==null);a()}function e(){var n,m="";if(!b){return}for(var l in g){n=g[l];m+=(m?",":"")+l.length.toString(32)+","+l+","+n.length.toString(32)+","+n}c.setAttribute(j,m);try{c.save(j)}catch(k){}a()}d={key:function(k){return i[k]},getItem:function(k){return k in g?g[k]:null},setItem:function(k,l){g[k]=""+l;e()},removeItem:function(k){delete g[k];e()},clear:function(){g={};e()}};h();return d}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/Observable.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/Observable.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/util/Observable",["tinymce/util/EventDispatcher"],function(b){function a(c){if(!c._eventDispatcher){c._eventDispatcher=new b({scope:c,toggleEvent:function(d,e){if(b.isNative(d)&&c.toggleNativeEvent){c.toggleNativeEvent(d,e)}}})}return c._eventDispatcher}return{fire:function(f,e,c){var d=this;if(d.removed&&f!=="remove"){return e}e=a(d).fire(f,e,c);if(c!==false&&d.parent){var g=d.parent();while(g&&!e.isPropagationStopped()){g.fire(f,e,false);g=g.parent()}}return e},on:function(d,e,c){return a(this).on(d,e,c)},off:function(c,d){return a(this).off(c,d)},once:function(c,d){return a(this).once(c,d)},hasEventListeners:function(c){return a(this).has(c)}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/Quirks.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/Quirks.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/util/Quirks",["tinymce/util/VK","tinymce/dom/RangeUtils","tinymce/dom/TreeWalker","tinymce/html/Node","tinymce/html/Entities","tinymce/Env","tinymce/util/Tools"],function(f,e,d,c,g,a,b){return function(h){var ab=b.each,O=h.$;var k=f.BACKSPACE,w=f.DELETE,j=h.dom,y=h.selection,af=h.settings,N=h.parser,D=h.serializer;var m=a.gecko,u=a.ie,Y=a.webkit;var T="data:text/mce-internal,";var l=u?"Text":"URL";function S(al,ak){try{h.getDoc().execCommand(al,false,ak)}catch(aj){}}function B(){var aj=h.getDoc().documentMode;return aj?aj:6}function R(aj){return aj.isDefaultPrevented()}function I(ak){var aj;if(ak.dataTransfer){if(h.selection.isCollapsed()&&ak.target.tagName=="IMG"){y.select(ak.target)}aj=h.selection.getContent();if(aj.length>0){ak.dataTransfer.setData(l,T+escape(aj))}}}function C(ak){var al,aj;if(ak.dataTransfer){al=ak.dataTransfer.getData(l);if(al&&al.indexOf(T)>=0){aj=unescape(al.substr(T.length))}}return aj}function J(aj){if(h.queryCommandSupported("mceInsertClipboardContent")){h.execCommand("mceInsertClipboardContent",false,{content:aj})}else{h.execCommand("mceInsertContent",false,aj)}}function ah(){var av=h.getDoc(),ao=h.dom,aw=h.selection;var ak=window.MutationObserver,ap,au;if(!ak){ap=true;ak=function(){var ax=[],aA;function az(aC){var aB=aC.relatedNode||aC.target;ax.push({target:aB,addedNodes:[aB]})}function ay(aC){var aB=aC.relatedNode||aC.target;ax.push({target:aB,attributeName:aC.attrName})}this.observe=function(aB){aA=aB;aA.addEventListener("DOMSubtreeModified",az,false);aA.addEventListener("DOMNodeInsertedIntoDocument",az,false);aA.addEventListener("DOMNodeInserted",az,false);aA.addEventListener("DOMAttrModified",ay,false)};this.disconnect=function(){aA.removeEventListener("DOMSubtreeModified",az,false);aA.removeEventListener("DOMNodeInsertedIntoDocument",az,false);aA.removeEventListener("DOMNodeInserted",az,false);aA.removeEventListener("DOMAttrModified",ay,false)};this.takeRecords=function(){return ax}}}function aj(az){var ay=ao.schema.getBlockElements(),ax=h.getBody();if(az.nodeName!="BR"){return false}for(az=az;az!=ax&&!ay[az.nodeName];az=az.parentNode){if(az.nextSibling){return false}}return true}function al(ay,ax){var az;for(az=ay.nextSibling;az&&az!=ax;az=az.nextSibling){if(az.nodeType==3&&O.trim(az.data).length===0){continue}if(az!==ax){return false}}return az===ax}function aq(aA,az,ay){var aC,aB,ax;ax=ao.schema.getNonEmptyElements();aC=new d(ay||aA,aA);while((aB=aC[az?"next":"prev"]())){if(ax[aB.nodeName]&&!aj(aB)){return aB}if(aB.nodeType==3&&aB.data.length>0){return aB}}}function at(ay){var aB,az,ax,aA,aC;if(ay.collapsed){return}aB=ao.getParent(e.getNode(ay.startContainer,ay.startOffset),ao.isBlock);az=ao.getParent(e.getNode(ay.endContainer,ay.endOffset),ao.isBlock);aC=h.schema.getTextBlockElements();if(aB==az){return}if(!aC[aB.nodeName]||!aC[az.nodeName]){return}if(ao.getContentEditable(aB)==="false"||ao.getContentEditable(az)==="false"){return}ay.deleteContents();ax=aq(aB,false);aA=aq(az,true);if(!ao.isEmpty(az)){O(aB).append(az.childNodes)}O(az).remove();if(ax){if(ax.nodeType==1){if(ax.nodeName=="BR"){ay.setStartBefore(ax);ay.setEndBefore(ax)}else{ay.setStartAfter(ax);ay.setEndAfter(ax)}}else{ay.setStart(ax,ax.data.length);ay.setEnd(ax,ax.data.length)}}else{if(aA){if(aA.nodeType==1){ay.setStartBefore(aA);ay.setEndBefore(aA)}else{ay.setStart(aA,0);ay.setEnd(aA,0)}}}aw.setRng(ay);return true}function an(ay,aD){var aA,aC,az,aB,ax,aE;if(!ay.collapsed){return ay}ax=ay.startContainer;aE=ay.startOffset;if(ax.nodeType==3){if(aD){if(aE0){return ay}}}aA=e.getNode(ay.startContainer,ay.startOffset);az=ao.getParent(aA,ao.isBlock);aC=aq(h.getBody(),aD,aA);aB=ao.getParent(aC,ao.isBlock);if(!aA||!aC){return ay}if(aB&&az!=aB){if(!aD){if(!al(aB,az)){return ay}if(aC.nodeType==1){if(aC.nodeName=="BR"){ay.setStartBefore(aC)}else{ay.setStartAfter(aC)}}else{ay.setStart(aC,aC.data.length)}if(aA.nodeType==1){ay.setEnd(aA,0)}else{ay.setEndBefore(aA)}}else{if(!al(az,aB)){return ay}if(aA.nodeType==1){if(aA.nodeName=="BR"){ay.setStartBefore(aA)}else{ay.setStartAfter(aA)}}else{ay.setStart(aA,aA.data.length)}if(aC.nodeType==1){ay.setEnd(aC,0)}else{ay.setEndBefore(aC)}}}return ay}function am(ay){var ax=aw.getRng();ax=an(ax,ay);if(at(ax)){return true}}function ar(az){var ay,ax,aA;if(am(az)){return}b.each(h.getBody().getElementsByTagName("*"),function(aB){if(aB.tagName=="SPAN"){aB.setAttribute("mce-data-marked",1)}if(!aB.hasAttribute("data-mce-style")&&aB.hasAttribute("style")){h.dom.setAttrib(aB,"style",h.dom.getAttrib(aB,"style"))}});ay=new ak(function(){});ay.observe(h.getDoc(),{childList:true,attributes:true,subtree:true,attributeFilter:["style"]});h.getDoc().execCommand(az?"ForwardDelete":"Delete",false,null);ax=h.selection.getRng();aA=ax.startContainer.parentNode;b.each(ay.takeRecords(),function(aB){if(!ao.isChildOf(aB.target,h.getBody())){return}if(aB.attributeName=="style"){var aC=aB.target.getAttribute("data-mce-style");if(aC){aB.target.setAttribute("style",aC)}else{aB.target.removeAttribute("style")}}b.each(aB.addedNodes,function(aE){if(aE.nodeName=="SPAN"&&!aE.getAttribute("mce-data-marked")){var aF,aD;if(aE==aA){aF=ax.startOffset;aD=aE.firstChild}ao.remove(aE,true);if(aD){ax.setStart(aD,aF);ax.setEnd(aD,aF);h.selection.setRng(ax)}}})});ay.disconnect();b.each(h.dom.select("span[mce-data-marked]"),function(aB){aB.removeAttribute("mce-data-marked")})}h.on("keydown",function(aB){var aA=aB.keyCode==w,ax=aB.ctrlKey||aB.metaKey;if(!R(aB)&&(aA||aB.keyCode==k)){var az=h.selection.getRng(),ay=az.startContainer,aC=az.startOffset;if(!ax&&az.collapsed&&ay.nodeType==3){if(aA?aC0){return}}aB.preventDefault();if(ax){h.selection.getSel().modify("extend",aA?"forward":"backward",aB.metaKey?"lineboundary":"word")}ar(aA)}});h.on("keypress",function(aC){if(!R(aC)&&!aw.isCollapsed()&&aC.charCode&&!f.metaKeyPressed(aC)){var ax,aD,aB,ay,az,aA;ax=h.selection.getRng();aA=String.fromCharCode(aC.charCode);aC.preventDefault();aD=O(ax.startContainer).parents().filter(function(aE,aF){return !!h.schema.getTextInlineElements()[aF.nodeName]});ar(true);aD=aD.filter(function(aE,aF){return !O.contains(h.getBody(),aF)});if(aD.length){aB=ao.createFragment();aD.each(function(aE,aF){aF=aF.cloneNode(false);if(aB.hasChildNodes()){aF.appendChild(aB.firstChild);aB.appendChild(aF)}else{az=aF;aB.appendChild(aF)}aB.appendChild(aF)});az.appendChild(h.getDoc().createTextNode(aA));ay=ao.getParent(ax.startContainer,ao.isBlock);if(ao.isEmpty(ay)){O(ay).empty().append(aB)}else{ax.insertNode(aB)}ax.setStart(az.firstChild,1);ax.setEnd(az.firstChild,1);h.selection.setRng(ax)}else{h.selection.setContent(aA)}}});h.addCommand("Delete",function(){ar()});h.addCommand("ForwardDelete",function(){ar(true)});if(ap){return}h.on("dragstart",function(ax){au=aw.getRng();I(ax)});h.on("drop",function(ax){if(!R(ax)){var ay=C(ax);if(ay){ax.preventDefault();window.setTimeout(function(){var az=e.getCaretRangeFromPoint(ax.x,ax.y,av);if(au){aw.setRng(au);au=null}ar();aw.setRng(az);J(ay)},0)}}});h.on("cut",function(ax){if(!R(ax)&&ax.clipboardData){ax.preventDefault();ax.clipboardData.clearData();ax.clipboardData.setData("text/html",h.selection.getContent());ax.clipboardData.setData("text/plain",h.selection.getContent({format:"text"}));ar(true)}})}function H(){function aj(am){var al=j.create("body");var an=am.cloneContents();al.appendChild(an);return y.serializer.serialize(al,{format:"html"})}function ak(al){if(!al.setStart){if(al.item){return false}var ap=al.duplicate();ap.moveToElementText(h.getBody());return e.compareRanges(al,ap)}var an=aj(al);var ao=j.createRng();ao.selectNode(h.getBody());var am=aj(ao);return an===am}h.on("keydown",function(ao){var an=ao.keyCode,am,al;if(!R(ao)&&(an==w||an==k)){am=h.selection.isCollapsed();al=h.getBody();if(am&&!j.isEmpty(al)){return}if(!am&&!ak(h.selection.getRng())){return}ao.preventDefault();h.setContent("");if(al.firstChild&&j.isBlock(al.firstChild)){h.selection.setCursorLocation(al.firstChild,0)}else{h.selection.setCursorLocation(al,0)}h.nodeChanged()}})}function ag(){h.shortcuts.add("meta+a",null,"SelectAll")}function ai(){if(!h.settings.content_editable){j.bind(h.getDoc(),"focusin",function(){y.setRng(y.getRng())});j.bind(h.getDoc(),"mousedown mouseup",function(aj){if(aj.target==h.getDoc().documentElement){h.getBody().focus();if(aj.type=="mousedown"){y.placeCaretAt(aj.clientX,aj.clientY)}else{y.setRng(y.getRng())}}})}}function V(){h.on("keydown",function(al){if(!R(al)&&al.keyCode===k){if(!h.getBody().getElementsByTagName("hr").length){return}if(y.isCollapsed()&&y.getRng(true).startOffset===0){var ak=y.getNode();var aj=ak.previousSibling;if(ak.nodeName=="HR"){j.remove(ak);al.preventDefault();return}if(aj&&aj.nodeName&&aj.nodeName.toLowerCase()==="hr"){j.remove(aj);al.preventDefault()}}}})}function Q(){if(!window.Range.prototype.getClientRects){h.on("mousedown",function(ak){if(!R(ak)&&ak.target.nodeName==="HTML"){var aj=h.getBody();aj.blur();setTimeout(function(){aj.focus()},0)}})}}function p(){h.on("click",function(ak){var aj=ak.target;if(/^(IMG|HR)$/.test(aj.nodeName)){ak.preventDefault();y.getSel().setBaseAndExtent(aj,0,aj,1);h.nodeChanged()}if(aj.nodeName=="A"&&j.hasClass(aj,"mce-item-anchor")){ak.preventDefault();y.select(aj)}})}function ac(){function ak(){var al=j.getAttribs(y.getStart().cloneNode(false));return function(){var am=y.getStart();if(am!==h.getBody()){j.setAttrib(am,"style",null);ab(al,function(an){am.setAttributeNode(an.cloneNode(true))})}}}function aj(){return !y.isCollapsed()&&j.getParent(y.getStart(),j.isBlock)!=j.getParent(y.getEnd(),j.isBlock)}h.on("keypress",function(am){var al;if(!R(am)&&(am.keyCode==8||am.keyCode==46)&&aj()){al=ak();h.getDoc().execCommand("delete",false,null);al();am.preventDefault();return false}});j.bind(h.getDoc(),"cut",function(am){var al;if(!R(am)&&aj()){al=ak();setTimeout(function(){al()},0)}})}function P(){document.body.setAttribute("role","application")}function M(){h.on("keydown",function(ak){if(!R(ak)&&ak.keyCode===k){if(y.isCollapsed()&&y.getRng(true).startOffset===0){var aj=y.getNode().previousSibling;if(aj&&aj.nodeName&&aj.nodeName.toLowerCase()==="table"){ak.preventDefault();return false}}}})}function Z(){if(B()>7){return}S("RespectVisibilityInDesign",true);h.contentStyles.push(".mceHideBrInPre pre br {display: none}");j.addClass(h.getBody(),"mceHideBrInPre");N.addNodeFilter("pre",function(aj){var al=aj.length,an,ak,ao,am;while(al--){an=aj[al].getAll("br");ak=an.length;while(ak--){ao=an[ak];am=ao.prev;if(am&&am.type===3&&am.value.charAt(am.value-1)!="\n"){am.value+="\n"}else{ao.parent.insert(new c("#text",3),ao,true).value="\n"}}}});D.addNodeFilter("pre",function(aj){var al=aj.length,an,ak,ao,am;while(al--){an=aj[al].getAll("br");ak=an.length;while(ak--){ao=an[ak];am=ao.prev;if(am&&am.type==3){am.value=am.value.replace(/\r?\n$/,"")}}}})}function o(){j.bind(h.getBody(),"mouseup",function(){var ak,aj=y.getNode();if(aj.nodeName=="IMG"){if((ak=j.getStyle(aj,"width"))){j.setAttrib(aj,"width",ak.replace(/[^0-9%]+/g,""));j.setStyle(aj,"width","")}if((ak=j.getStyle(aj,"height"))){j.setAttrib(aj,"height",ak.replace(/[^0-9%]+/g,""));j.setStyle(aj,"height","")}}})}function ae(){h.on("keydown",function(an){var al,ak,ao,aj,am;if(R(an)||an.keyCode!=f.BACKSPACE){return}al=y.getRng();ak=al.startContainer;ao=al.startOffset;aj=j.getRoot();am=ak;if(!al.collapsed||ao!==0){return}while(am&&am.parentNode&&am.parentNode.firstChild==am&&am.parentNode!=aj){am=am.parentNode}if(am.tagName==="BLOCKQUOTE"){h.formatter.toggle("blockquote",null,am);al=j.createRng();al.setStart(ak,0);al.setEnd(ak,0);y.setRng(al)}})}function ad(){function aj(){h._refreshContentEditable();S("StyleWithCSS",false);S("enableInlineTableEditing",false);if(!af.object_resizing){S("enableObjectResizing",false)}}if(!af.readonly){h.on("BeforeExecCommand MouseDown",aj)}}function L(){function aj(){ab(j.select("a"),function(am){var ak=am.parentNode,al=j.getRoot();if(ak.lastChild===am){while(ak&&!j.isBlock(ak)){if(ak.parentNode.lastChild!==ak||ak===al){return}ak=ak.parentNode}j.add(ak,"br",{"data-mce-bogus":1})}})}h.on("SetContent ExecCommand",function(ak){if(ak.type=="setcontent"||ak.command==="mceInsertLink"){aj()}})}function z(){if(af.forced_root_block){h.on("init",function(){S("DefaultParagraphSeparator",af.forced_root_block)})}}function F(){h.on("Undo Redo SetContent",function(aj){if(!aj.initial){h.execCommand("mceRepaint")}})}function q(){h.on("keydown",function(ak){var aj;if(!R(ak)&&ak.keyCode==k){aj=h.getDoc().selection.createRange();if(aj&&aj.item){ak.preventDefault();h.undoManager.beforeChange();j.remove(aj.item(0));h.undoManager.add()}}})}function K(){var aj;if(B()>=10){aj="";ab("p div h1 h2 h3 h4 h5 h6".split(" "),function(ak,al){aj+=(al>0?",":"")+ak+":empty"});h.contentStyles.push(aj+"{padding-right: 1px !important}")}}function aa(){if(B()<9){N.addNodeFilter("noscript",function(aj){var ak=aj.length,al,am;while(ak--){al=aj[ak];am=al.firstChild;if(am){al.attr("data-mce-innertext",am.value)}}});D.addNodeFilter("noscript",function(aj){var ak=aj.length,al,an,am;while(ak--){al=aj[ak];an=aj[ak].firstChild;if(an){an.value=g.decode(an.value)}else{am=al.attributes.map["data-mce-innertext"];if(am){al.attr("data-mce-innertext",null);an=new c("#text",3);an.value=am;an.raw=true;al.append(an)}}}})}}function G(){var ap=j.doc,ak=ap.body,am,an,aq;function ao(ar,av){var at=ak.createTextRange();try{at.moveToPoint(ar,av)}catch(au){at=null}return at}function al(at){var ar;if(at.button){ar=ao(at.x,at.y);if(ar){if(ar.compareEndPoints("StartToStart",an)>0){ar.setEndPoint("StartToStart",an)}else{ar.setEndPoint("EndToEnd",an)}ar.select()}}else{aj()}}function aj(){var ar=ap.selection.createRange();if(an&&!ar.item&&ar.compareEndPoints("StartToEnd",ar)===0){an.select()}j.unbind(ap,"mouseup",aj);j.unbind(ap,"mousemove",al);an=am=0}ap.documentElement.unselectable=true;j.bind(ap,"mousedown contextmenu",function(ar){if(ar.target.nodeName==="HTML"){if(am){aj()}aq=ap.documentElement;if(aq.scrollHeight>aq.clientHeight){return}am=1;an=ao(ar.x,ar.y);if(an){j.bind(ap,"mouseup",aj);j.bind(ap,"mousemove",al);j.getRoot().focus();an.select()}}})}function X(){h.on("keyup focusin mouseup",function(aj){if(aj.keyCode!=65||!f.metaKeyPressed(aj)){y.normalize()}},true)}function s(){h.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")}function t(){if(!h.inline){h.on("keydown",function(){if(document.activeElement==document.body){h.getWin().focus()}})}}function x(){if(!h.inline){h.contentStyles.push("body {min-height: 150px}");h.on("click",function(ak){if(ak.target.nodeName=="HTML"){var aj;aj=h.selection.getRng();h.getBody().focus();h.selection.setRng(aj);h.selection.normalize();h.nodeChanged()}})}}function v(){if(a.mac){h.on("keydown",function(aj){if(f.metaKeyPressed(aj)&&(aj.keyCode==37||aj.keyCode==39)){aj.preventDefault();h.selection.getSel().modify("move",aj.keyCode==37?"backward":"forward","lineboundary")}})}}function U(){S("AutoUrlDetect",false)}function A(){if(!h.inline){h.on("focus blur beforegetcontent",function(){var aj=h.dom.create("br");h.getBody().appendChild(aj);aj.parentNode.removeChild(aj)},true)}}function r(){h.on("click",function(aj){var ak=aj.target;do{if(ak.tagName==="A"){aj.preventDefault();return}}while((ak=ak.parentNode))});h.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")}function i(){h.on("touchstart",function(am){var an,al,ak,aj;an=am.target;al=new Date().getTime();aj=am.changedTouches;if(!aj||aj.length>1){return}ak=aj[0];h.once("touchend",function(aq){var ap=aq.changedTouches[0],ao;if(new Date().getTime()-al>500){return}if(Math.abs(ak.clientX-ap.clientX)>5){return}if(Math.abs(ak.clientY-ap.clientY)>5){return}ao={target:an};ab("pageX pageY clientX clientY screenX screenY".split(" "),function(ar){ao[ar]=ap[ar]});ao=h.fire("click",ao);if(!ao.isDefaultPrevented()){h.selection.placeCaretAt(ap.clientX,ap.clientY);h.nodeChanged()}})})}function E(){h.on("init",function(){h.dom.bind(h.getBody(),"submit",function(aj){aj.preventDefault()})})}function W(){N.addNodeFilter("br",function(aj){var ak=aj.length;while(ak--){if(aj[ak].attr("class")=="Apple-interchange-newline"){aj[ak].remove()}}})}function n(){h.on("dragstart",function(aj){I(aj)});h.on("drop",function(ak){if(!R(ak)){var al=C(ak);if(al){ak.preventDefault();var aj=e.getCaretRangeFromPoint(ak.x,ak.y,h.getDoc());y.setRng(aj);J(al)}}})}ae();H();X();if(Y){ah();ai();p();z();E();M();W();i();if(a.iOS){t();x();r()}else{ag()}}if(u&&a.ie<11){V();P();Z();o();q();K();aa();G()}if(a.ie>=11){x();A();M()}if(a.ie){ag();U();n()}if(m){V();Q();ac();ad();L();F();s();v();M()}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/Tools.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/Tools.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/util/Tools",["tinymce/Env"],function(a){var r=/^\s*|\s*$/g;function m(s){return(s===null||s===undefined)?"":(""+s).replace(r,"")}var g=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"};function e(t,s){if(!s){return t!==undefined}if(s=="array"&&g(t)){return true}return typeof t==s}function k(u){var v=u,t,s;if(!g(u)){v=[];for(t=0,s=u.length;t=h.length){for(k=0,g=n.length;k=h.length||n[k]!=h[k]){m=k+1;break}}}if(n.length=n.length||n[k]!=h[k]){m=k+1;break}}}if(m===1){return o}for(k=0,g=n.length-(m-1);k=0;h--){if(l[h].length===0||l[h]==="."){continue}if(l[h]===".."){g++;continue}if(g>0){g--;continue}n.push(l[h])}h=k.length-g;if(h<=0){m=n.reverse().join("/")}else{m=k.slice(0,h).join("/")+"/"+n.reverse().join("/")}if(m.indexOf("/")!==0){m="/"+m}if(j&&m.lastIndexOf("/")!==m.length-1){m+=j}return m},getURI:function(i){var h,g=this;if(!g.source||i){h="";if(!i){if(g.protocol){h+=g.protocol+"://"}else{h+="//"}if(g.userInfo){h+=g.userInfo+"@"}if(g.host){h+=g.host}if(g.port){h+=":"+g.port}}if(g.path){h+=g.path}if(g.query){h+="?"+g.query}if(g.anchor){h+="#"+g.anchor}g.source=h}return g.source}};return b}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/VK.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/VK.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/util/VK",["tinymce/Env"],function(a){return{BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,modifierPressed:function(b){return b.shiftKey||b.ctrlKey||b.altKey||this.metaKeyPressed(b)},metaKeyPressed:function(b){return(a.mac?b.metaKey:b.ctrlKey&&!b.altKey)}}}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/XHR.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/classes/util/XHR.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +define("tinymce/util/XHR",["tinymce/util/Observable","tinymce/util/Tools"],function(a,b){var c={send:function(e){var g,f=0;function d(){if(!e.async||g.readyState==4||f++>10000){if(e.success&&f<10000&&g.status==200){e.success.call(e.success_scope,""+g.responseText,g,e)}else{if(e.error){e.error.call(e.error_scope,f>10000?"TIMED_OUT":"GENERAL",g,e)}}g=null}else{setTimeout(d,10)}}e.scope=e.scope||this;e.success_scope=e.success_scope||e.scope;e.error_scope=e.error_scope||e.scope;e.async=e.async===false?false:true;e.data=e.data||"";g=new XMLHttpRequest();if(g){if(g.overrideMimeType){g.overrideMimeType(e.content_type)}g.open(e.type||(e.data?"POST":"GET"),e.url,e.async);if(e.crossDomain){g.withCredentials=true}if(e.content_type){g.setRequestHeader("Content-Type",e.content_type)}g.setRequestHeader("X-Requested-With","XMLHttpRequest");g=c.fire("beforeSend",{xhr:g,settings:e}).xhr;g.send(e.data);if(!e.async){return d()}setTimeout(d,10)}}};b.extend(c,a);return c}); \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/plugins/compat3x/css/dialog.min.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/plugins/compat3x/css/dialog.min.css Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +body{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;scrollbar-3dlight-color:#f0f0ee;scrollbar-arrow-color:#676662;scrollbar-base-color:#f0f0ee;scrollbar-darkshadow-color:#ddd;scrollbar-face-color:#e0e0dd;scrollbar-highlight-color:#f0f0ee;scrollbar-shadow-color:#f0f0ee;scrollbar-track-color:#f5f5f5;background:#f0f0ee;padding:0;margin:8px 8px 0 8px}html{background:#f0f0ee}td{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px}textarea{resize:none;outline:0}a:link,a:visited{color:black}a:hover{color:#2b6fb6}.nowrap{white-space:nowrap}fieldset{margin:0;padding:4px;border:1px solid #919b9c;font-family:Verdana,Arial;font-size:10px}legend{color:#2b6fb6;font-weight:bold}label.msg{display:none}label.invalid{color:#e00;display:inline}input.invalid{border:1px solid #e00}input{background:#FFF;border:1px solid #CCC}input,select,textarea{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px}input,select,textarea{border:1px solid #808080}input.radio{border:1px none #000;background:transparent;vertical-align:middle}input.checkbox{border:1px none #000;background:transparent;vertical-align:middle}.input_noborder{border:0}#insert,#cancel,input.button,.updateButton{border:0;margin:0;padding:0;font-weight:bold;width:94px;height:26px;background:url(../img/buttons.png) 0 -26px;cursor:pointer;padding-bottom:2px;float:left}#insert{background:url(../img/buttons.png) 0 -52px}#cancel{background:url(../img/buttons.png) 0 0;float:right}a.pickcolor,a.browse{text-decoration:none}a.browse span{display:block;width:20px;height:18px;background:url(../img/icons.gif) -20px 0 no-repeat;border:1px solid #FFF;margin-left:1px}.mceOldBoxModel a.browse span{width:22px;height:20px}a.browse:hover span{border:1px solid #0a246a;background-color:#b2bbd0}a.browse span.disabled{border:1px solid white;opacity:.3;-ms-filter:'alpha(opacity=30)';filter:alpha(opacity=30)}a.browse:hover span.disabled{border:1px solid white;background-color:transparent}a.pickcolor span{display:block;width:20px;height:16px;background:url(../img/icons.gif) -840px 0;margin-left:2px}.mceOldBoxModel a.pickcolor span{width:21px;height:17px}a.pickcolor:hover span{background-color:#b2bbd0}table.charmap{border:1px solid #AAA;text-align:center}td.charmap,#charmap a{width:18px;height:18px;color:#000;border:1px solid #AAA;text-align:center;font-size:12px;vertical-align:middle;line-height:18px}#charmap a{display:block;color:#000;text-decoration:none;border:0}#charmap a:hover{background:#CCC;color:#2b6fb6}#charmap #codeN{font-size:10px;font-family:Arial,Helvetica,sans-serif;text-align:center}#charmap #codeV{font-size:40px;height:80px;border:1px solid #AAA;text-align:center}.wordWrapCode{vertical-align:middle;border:1px none #000;background:transparent}.mceActionPanel{margin-top:5px}.tabs{width:100%;height:18px;line-height:normal;background:url(../img/tabs.gif) repeat-x 0 -72px}.tabs ul{margin:0;padding:0;list-style:none}.tabs li{float:left;background:url(../img/tabs.gif) no-repeat 0 0;margin:0 2px 0 0;padding:0 0 0 10px;line-height:17px;height:18px;display:block}.tabs li.current{background:url(../img/tabs.gif) no-repeat 0 -18px;margin-right:2px}.tabs span{float:left;display:block;background:url(../img/tabs.gif) no-repeat right -36px;padding:0 10px 0 0}.tabs .current span{background:url(../img/tabs.gif) no-repeat right -54px}.tabs a{text-decoration:none;font-family:Verdana,Arial;font-size:10px}.tabs a:link,.tabs a:visited,.tabs a:hover{color:black}.panel_wrapper div.panel{display:none}.panel_wrapper div.current{display:block;width:100%;height:300px;overflow:visible}.panel_wrapper{border:1px solid #919b9c;border-top:0;padding:10px;padding-top:5px;clear:both;background:white}.column{float:left}.properties{width:100%}.properties .column2{text-align:left}h1,h2,h3,h4{color:#2b6fb6;margin:0;padding:0;padding-top:5px}h3{font-size:14px}.title{font-size:12px;font-weight:bold;color:#2b6fb6}#link .panel_wrapper,#link div.current{height:125px}#image .panel_wrapper,#image div.current{height:200px}#plugintable thead{font-weight:bold;background:#DDD}#plugintable,#about #plugintable td{border:1px solid #919b9c}#plugintable{width:96%;margin-top:10px}#pluginscontainer{height:290px;overflow:auto}#colorpicker #preview{display:inline-block;padding-left:40px;height:14px;border:1px solid black;margin-left:5px;margin-right:5px}#colorpicker #previewblock{position:relative;top:-3px;padding-left:5px;padding-top:0;display:inline}#colorpicker #preview_wrapper{text-align:center;padding-top:4px;white-space:nowrap}#colorpicker #colors{float:left;border:1px solid gray;cursor:crosshair}#colorpicker #light{border:1px solid gray;margin-left:5px;float:left;width:15px;height:150px;cursor:crosshair}#colorpicker #light div{overflow:hidden}#colorpicker .panel_wrapper div.current{height:175px}#colorpicker #namedcolors{width:150px}#colorpicker #namedcolors a{display:block;float:left;width:10px;height:10px;margin:1px 1px 0 0;overflow:hidden}#colorpicker #colornamecontainer{margin-top:5px}#colorpicker #picker_panel fieldset{margin:auto;width:325px} \ No newline at end of file diff -r 181b3a0ee15a -r 472bd9195a15 src/pyams_skin/resources/js/ext/tinymce/dev/plugins/compat3x/tiny_mce_popup.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/resources/js/ext/tinymce/dev/plugins/compat3x/tiny_mce_popup.min.js Tue Sep 08 17:27:31 2015 +0200 @@ -0,0 +1,1 @@ +var tinymce,tinyMCE;var tinyMCEPopup={init:function(){var a=this,d,c,b;d=a.getWin();tinymce=tinyMCE=d.tinymce;a.editor=tinymce.EditorManager.activeEditor;a.params=a.editor.windowManager.getParams();b=a.editor.windowManager.windows[a.editor.windowManager.windows.length-1];a.features=b.features;a.uiWindow=b;c=a.editor.settings;if(c.popup_css!==false){if(c.popup_css){c.popup_css=a.editor.documentBaseURI.toAbsolute(c.popup_css)}else{c.popup_css=a.editor.baseURI.toAbsolute("plugins/compat3x/css/dialog.css")}}if(c.popup_css_add){c.popup_css+=","+a.editor.documentBaseURI.toAbsolute(c.popup_css_add)}a.dom=a.editor.windowManager.createInstance("tinymce.dom.DOMUtils",document,{ownEvents:true,proxy:tinyMCEPopup._eventProxy});a.dom.bind(window,"ready",a._onDOMLoaded,a);if(a.features.popup_css!==false){a.dom.loadCSS(a.features.popup_css||a.editor.settings.popup_css)}a.listeners=[];a.onInit={add:function(f,e){a.listeners.push({func:f,scope:e})}};a.isWindow=!a.getWindowArg("mce_inline");a.id=a.getWindowArg("mce_window_id")},getWin:function(){return(!window.frameElement&&window.dialogArguments)||opener||parent||top},getWindowArg:function(b,a){var c=this.params[b];return tinymce.is(c)?c:a},getParam:function(b,a){return this.editor.getParam(b,a)},getLang:function(b,a){return this.editor.getLang(b,a)},execCommand:function(c,b,d,a){a=a||{};a.skip_focus=1;this.restoreSelection();return this.editor.execCommand(c,b,d,a)},resizeToInnerSize:function(){},executeOnLoad:function(evil){this.onInit.add(function(){eval(evil)})},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selection.getBookmark(1)},restoreSelection:function(){var a=tinyMCEPopup;if(!a.isWindow&&tinymce.isIE){a.editor.selection.moveToBookmark(a.editor.windowManager.bookmark)}},requireLangPack:function(){var a=this,b=a.getWindowArg("plugin_url")||a.getWindowArg("theme_url"),c=a.editor.settings,d;if(c.language!==false){d=c.language||"en"}if(b&&d&&a.features.translate_i18n!==false&&c.language_load!==false){b+="/langs/"+d+"_dlg.js";if(!tinymce.ScriptLoader.isDone(b)){document.write('