]> git.immae.eu Git - perso/Immae/Projets/packagist/piedsjaloux-ckeditor-component.git/blob - sources/ckeditor.js
Add oembed
[perso/Immae/Projets/packagist/piedsjaloux-ckeditor-component.git] / sources / ckeditor.js
1 /**
2 * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 */
5
6 // Compressed version of core/ckeditor_base.js. See original for instructions.
7 /* jshint ignore:start */
8 /* jscs:disable */
9 window.CKEDITOR||(window.CKEDITOR=function(){var e=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,b={timestamp:"",version:"%VERSION%",revision:"%REV%",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:e},status:"unloaded",basePath:function(){var a=window.CKEDITOR_BASEPATH||"";if(!a)for(var b=document.getElementsByTagName("script"),c=0;c<b.length;c++){var f=b[c].src.match(e);if(f){a=f[1];break}}-1==a.indexOf(":/")&&"//"!=a.slice(0,2)&&(a=0===a.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+
10 a:location.href.match(/^[^\?]*\/(?:)/)[0]+a);if(!a)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return a}(),getUrl:function(a){-1==a.indexOf(":/")&&0!==a.indexOf("/")&&(a=this.basePath+a);this.timestamp&&"/"!=a.charAt(a.length-1)&&!/[&?]t=/.test(a)&&(a+=(0<=a.indexOf("?")?"&":"?")+"t="+this.timestamp);return a},domReady:function(){function a(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",
11 a,!1),b()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),b())}catch(f){}}function b(){for(var a;a=c.shift();)a()}var c=[];return function(b){c.push(b);"complete"===document.readyState&&setTimeout(a,1);if(1==c.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",a,!1),window.addEventListener("load",a,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",a);window.attachEvent("onload",a);b=!1;try{b=
12 !window.frameElement}catch(e){}if(document.documentElement.doScroll&&b){var d=function(){try{document.documentElement.doScroll("left")}catch(b){setTimeout(d,1);return}a()};d()}}}}()},d=window.CKEDITOR_GETURL;if(d){var g=b.getUrl;b.getUrl=function(a){return d.call(b,a)||g.call(b,a)}}return b}());
13 /* jscs:enable */
14 /* jshint ignore:end */
15
16 if ( CKEDITOR.loader )
17 CKEDITOR.loader.load( 'ckeditor' );
18 else {
19 // Set the script name to be loaded by the loader.
20 CKEDITOR._autoLoad = 'ckeditor';
21
22 // Include the loader script.
23 if ( document.body && ( !document.readyState || document.readyState == 'complete' ) ) {
24 var script = document.createElement( 'script' );
25 script.type = 'text/javascript';
26 script.src = CKEDITOR.getUrl( 'core/loader.js' );
27 document.body.appendChild( script );
28 } else {
29 document.write( '<script type="text/javascript" src="' + CKEDITOR.getUrl( 'core/loader.js' ) + '"></script>' );
30 }
31
32 }
33
34 /**
35 * The skin to load for all created instances, it may be the name of the skin
36 * folder inside the editor installation path, or the name and the path separated
37 * by a comma.
38 *
39 * **Note:** This is a global configuration that applies to all instances.
40 *
41 * CKEDITOR.skinName = 'moono';
42 *
43 * CKEDITOR.skinName = 'myskin,/customstuff/myskin/';
44 *
45 * @cfg {String} [skinName='moono-lisa']
46 * @member CKEDITOR
47 */
48 CKEDITOR.skinName = 'moono-lisa';