toutpratique/js/tiny_mce/tinymce.min.js

2 lines
293 KiB
JavaScript
Raw Normal View History

2015-07-06 16:58:50 +02:00
// tinymce 4.0.16 modified
(function(e,t){"use strict";function r(e,t){var r,i=[];for(var s=0;s<e.length;++s){r=n[e[s]]||o(e[s]);if(!r){throw"module definition dependecy not found: "+e[s]}i.push(r)}t.apply(null,i)}function i(e,i,s){if(typeof e!=="string"){throw"invalid module definition, module id must be defined and be a string"}if(i===t){throw"invalid module definition, dependencies must be specified"}if(s===t){throw"invalid module definition, definition function must be specified"}r(i,function(){n[e]=s.apply(null,arguments)})}function s(e){return!!n[e]}function o(t){var n=e;var r=t.split(/[.\/]/);for(var i=0;i<r.length;++i){if(!n[r[i]]){return}n=n[r[i]]}return n}function u(r){for(var i=0;i<r.length;i++){var s=e;var o=r[i];var u=o.split(/[.\/]/);for(var a=0;a<u.length-1;++a){if(s[u[a]]===t){s[u[a]]={}}s=s[u[a]]}s[u[u.length-1]]=n[o]}}var n={};i("tinymce/dom/EventUtils",[],function(){"use strict";function r(e,t,n,r){if(e.addEventListener){e.addEventListener(t,n,r||false)}else if(e.attachEvent){e.attachEvent("on"+t,n)}}function i(e,t,n,r){if(e.removeEventListener){e.removeEventListener(t,n,r||false)}else if(e.detachEvent){e.detachEvent("on"+t,n)}}function s(e,r){function u(){return false}function a(){return true}var i,s=r||{},o;for(i in e){if(!n[i]){s[i]=e[i]}}if(!s.target){s.target=s.srcElement||document}if(e&&t.test(e.type)&&e.pageX===o&&e.clientX!==o){var f=s.target.ownerDocument||document;var l=f.documentElement;var c=f.body;s.pageX=e.clientX+(l&&l.scrollLeft||c&&c.scrollLeft||0)-(l&&l.clientLeft||c&&c.clientLeft||0);s.pageY=e.clientY+(l&&l.scrollTop||c&&c.scrollTop||0)-(l&&l.clientTop||c&&c.clientTop||0)}s.preventDefault=function(){s.isDefaultPrevented=a;if(e){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}}};s.stopPropagation=function(){s.isPropagationStopped=a;if(e){if(e.stopPropagation){e.stopPropagation()}else{e.cancelBubble=true}}};s.stopImmediatePropagation=function(){s.isImmediatePropagationStopped=a;s.stopPropagation()};if(!s.isDefaultPrevented){s.isDefaultPrevented=u;s.isPropagationStopped=u;s.isImmediatePropagationStopped=u}return s}function o(e,t,n){function u(){if(!n.domLoaded){n.domLoaded=true;t(o)}}function a(){if(s.readyState==="complete"||s.readyState==="interactive"){i(s,"readystatechange",a);u()}}function f(){try{s.documentElement.doScroll("left")}catch(e){setTimeout(f,0);return}u()}var s=e.document,o={type:"ready"};if(n.domLoaded){t(o);return}if(s.addEventListener){if(s.readyState==="complete"){u()}else{r(e,"DOMContentLoaded",u)}}else{r(s,"readystatechange",a);if(s.documentElement.doScroll&&e.self===e.top){f()}}r(e,"load",u)}function u(){function h(e,t){var r,i,s,o,u=n[t];r=u&&u[e.type];if(r){for(i=0,s=r.length;i<s;i++){o=r[i];if(o&&o.func.call(o.scope,e)===false){e.preventDefault()}if(e.isImmediatePropagationStopped()){return}}}}var t=this,n={},u,a,f,l,c;a=e+(+(new Date)).toString(32);l="onmouseenter"in document.documentElement;f="onfocusin"in document.documentElement;c={mouseenter:"mouseover",mouseleave:"mouseout"};u=1;t.domLoaded=false;t.events=n;t.bind=function(e,i,p,d){function x(e){h(s(e||S.event),v)}var v,m,g,y,b,w,E,S=window;if(!e||e.nodeType===3||e.nodeType===8){return}if(!e[a]){v=u++;e[a]=v;n[v]={}}else{v=e[a]}d=d||e;i=i.split(" ");g=i.length;while(g--){y=i[g];w=x;b=E=false;if(y==="DOMContentLoaded"){y="ready"}if(t.domLoaded&&y==="ready"&&e.readyState=="complete"){p.call(d,s({type:y}));continue}if(!l){b=c[y];if(b){w=function(e){var t,n;t=e.currentTarget;n=e.relatedTarget;if(n&&t.contains){n=t.contains(n)}else{while(n&&n!==t){n=n.parentNode}}if(!n){e=s(e||S.event);e.type=e.type==="mouseout"?"mouseleave":"mouseenter";e.target=t;h(e,v)}}}}if(!f&&(y==="focusin"||y==="focusout")){E=true;b=y==="focusin"?"focus":"blur";w=function(e){e=s(e||S.event);e.type=e.type==="focus"?"focusin":"focusout";h(e,v)}}m=n[v][y];if(!m){n[v][y]=m=[{func:p,scope:d}];m.fakeName=b;m.capture=E;m.nativeHandler=w;if(y==="ready"){o(e,w,t)}else{r(e,b||y,w,E)}}else{if(y==="ready"&&t.domLoaded){p({type:y})}else{m.push({func:p,scope:d})}}}e=m=0;return p};t.unbind=function(e,r,s){var o,u,f,l,c,h;if(!e||e.nodeType===3||e.nodeType===8)