From 1ee1c545da9547be80491681fd9c342e4b938f2f Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Wed, 24 Jun 2015 21:48:40 -0400 Subject: [PATCH] vanilla ckeditor-4.4.5_full --- CHANGES.md | 28 + build-config.js | 14 +- ckeditor.js | 778 ++++++++++---------- config.js | 4 +- lang/de.js | 2 +- lang/sk.js | 2 +- lang/tr.js | 2 +- plugins/a11yhelp/dialogs/lang/de.js | 7 +- plugins/a11yhelp/dialogs/lang/he.js | 6 +- plugins/a11yhelp/dialogs/lang/sk.js | 6 +- plugins/a11yhelp/dialogs/lang/tr.js | 6 +- plugins/about/dialogs/about.js | 2 +- plugins/iframe/images/placeholder.png | Bin 449 -> 265 bytes plugins/image/dialogs/image.js | 62 +- plugins/link/images/anchor.png | Bin 763 -> 589 bytes plugins/link/images/hidpi/anchor.png | Bin 1597 -> 1379 bytes plugins/magicline/images/hidpi/icon-rtl.png | Bin 2878 -> 176 bytes plugins/magicline/images/hidpi/icon.png | Bin 260 -> 199 bytes plugins/magicline/images/icon-rtl.png | Bin 2796 -> 138 bytes plugins/magicline/images/icon.png | Bin 172 -> 133 bytes plugins/showblocks/images/block_address.png | Bin 171 -> 152 bytes plugins/showblocks/images/block_blockquote.png | Bin 181 -> 154 bytes plugins/showblocks/images/block_div.png | Bin 136 -> 127 bytes plugins/showblocks/images/block_h1.png | Bin 127 -> 120 bytes plugins/showblocks/images/block_h2.png | Bin 134 -> 127 bytes plugins/showblocks/images/block_h3.png | Bin 131 -> 123 bytes plugins/showblocks/images/block_h4.png | Bin 133 -> 123 bytes plugins/showblocks/images/block_h5.png | Bin 133 -> 126 bytes plugins/showblocks/images/block_h6.png | Bin 129 -> 123 bytes plugins/showblocks/images/block_p.png | Bin 119 -> 115 bytes plugins/showblocks/images/block_pre.png | Bin 136 -> 128 bytes plugins/smiley/images/angel_smile.gif | Bin 1250 -> 1245 bytes plugins/smiley/images/angel_smile.png | Bin 1294 -> 1172 bytes plugins/smiley/images/angry_smile.gif | Bin 1221 -> 1219 bytes plugins/smiley/images/angry_smile.png | Bin 1351 -> 1220 bytes plugins/smiley/images/broken_heart.gif | Bin 1131 -> 732 bytes plugins/smiley/images/broken_heart.png | Bin 1213 -> 1139 bytes plugins/smiley/images/confused_smile.gif | Bin 1210 -> 1202 bytes plugins/smiley/images/confused_smile.png | Bin 1175 -> 1101 bytes plugins/smiley/images/cry_smile.png | Bin 1315 -> 1214 bytes plugins/smiley/images/devil_smile.png | Bin 1299 -> 1220 bytes plugins/smiley/images/embaressed_smile.gif | Bin 790 -> 786 bytes plugins/smiley/images/embarrassed_smile.gif | Bin 790 -> 786 bytes plugins/smiley/images/embarrassed_smile.png | Bin 1222 -> 1145 bytes plugins/smiley/images/envelope.gif | Bin 712 -> 506 bytes plugins/smiley/images/envelope.png | Bin 1049 -> 760 bytes plugins/smiley/images/heart.gif | Bin 1091 -> 692 bytes plugins/smiley/images/heart.png | Bin 1073 -> 999 bytes plugins/smiley/images/kiss.gif | Bin 1082 -> 683 bytes plugins/smiley/images/kiss.png | Bin 1077 -> 1003 bytes plugins/smiley/images/lightbulb.gif | Bin 1062 -> 660 bytes plugins/smiley/images/lightbulb.png | Bin 993 -> 919 bytes plugins/smiley/images/omg_smile.gif | Bin 1207 -> 820 bytes plugins/smiley/images/omg_smile.png | Bin 1196 -> 1122 bytes plugins/smiley/images/regular_smile.gif | Bin 1216 -> 1209 bytes plugins/smiley/images/regular_smile.png | Bin 1158 -> 1084 bytes plugins/smiley/images/sad_smile.gif | Bin 1199 -> 782 bytes plugins/smiley/images/sad_smile.png | Bin 1189 -> 1115 bytes plugins/smiley/images/shades_smile.gif | Bin 1234 -> 1231 bytes plugins/smiley/images/shades_smile.png | Bin 1353 -> 1204 bytes plugins/smiley/images/teeth_smile.gif | Bin 1210 -> 1201 bytes plugins/smiley/images/teeth_smile.png | Bin 1257 -> 1183 bytes plugins/smiley/images/thumbs_down.gif | Bin 1117 -> 715 bytes plugins/smiley/images/thumbs_down.png | Bin 1059 -> 985 bytes plugins/smiley/images/thumbs_up.gif | Bin 1112 -> 714 bytes plugins/smiley/images/thumbs_up.png | Bin 1033 -> 959 bytes plugins/smiley/images/tongue_smile.gif | Bin 1216 -> 1210 bytes plugins/smiley/images/tongue_smile.png | Bin 1206 -> 1132 bytes plugins/smiley/images/tounge_smile.gif | Bin 1216 -> 1210 bytes .../smiley/images/whatchutalkingabout_smile.gif | Bin 1190 -> 775 bytes .../smiley/images/whatchutalkingabout_smile.png | Bin 1113 -> 1039 bytes plugins/smiley/images/wink_smile.gif | Bin 1214 -> 1202 bytes plugins/smiley/images/wink_smile.png | Bin 1188 -> 1114 bytes samples/assets/inlineall/logo.png | Bin 4411 -> 4283 bytes samples/assets/sample.jpg | Bin 17932 -> 14449 bytes samples/inlinetextarea.html | 2 +- skins/moono/images/arrow.png | Bin 261 -> 191 bytes skins/moono/images/close.png | Bin 824 -> 468 bytes skins/moono/images/hidpi/close.png | Bin 1792 -> 1271 bytes skins/moono/images/hidpi/lock-open.png | Bin 1503 -> 1329 bytes skins/moono/images/hidpi/lock.png | Bin 1616 -> 1299 bytes skins/moono/images/hidpi/refresh.png | Bin 2320 -> 1842 bytes skins/moono/images/lock-open.png | Bin 736 -> 349 bytes skins/moono/images/lock.png | Bin 728 -> 475 bytes skins/moono/images/refresh.png | Bin 953 -> 422 bytes 85 files changed, 480 insertions(+), 441 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index fd29057..9bfaef3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,34 @@ CKEditor 4 Changelog ==================== +## CKEditor 4.4.5 + +New Features: + +* [#12279](http://dev.ckeditor.com/ticket/12279): Added a possibility to pass a custom evaluator to [`node.getAscendant()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.node-method-getAscendant). + +Fixed Issues: + +* [#12423](http://dev.ckeditor.com/ticket/12423): [Safari7.1+] Fixed: *Enter* key moved cursor to a strange position. +* [#12381](http://dev.ckeditor.com/ticket/12381): [iOS] Fixed: Selection issue. Thanks to [Remiremi](https://github.com/Remiremi)! +* [#10804](http://dev.ckeditor.com/ticket/10804): Fixed: `CKEDITOR_GETURL` is not used with some plugins where it should be used. Thanks to [Thomas Andraschko](https://github.com/tandraschko)! +* [#9137](http://dev.ckeditor.com/ticket/9137): Fixed: The `` tag is not created when `` has an attribute. Thanks to [naoki.fujikawa](https://github.com/naoki-fujikawa)! +* [#12377](http://dev.ckeditor.com/ticket/12377): Fixed: Errors thrown in the [Image](http://ckeditor.com/addon/image) plugin when removing preview from the dialog window definition. Thanks to [Axinet](https://github.com/Axinet)! +* [#12162](http://dev.ckeditor.com/ticket/12162): Fixed: Auto paragraphing and *Enter* key in nested editables. +* [#12315](http://dev.ckeditor.com/ticket/12315): Fixed: Marked [`config.autoParagraph`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-autoParagraph) as deprecated. +* [#12113](http://dev.ckeditor.com/ticket/12113): Fixed: A [code snippet](http://ckeditor.com/addon/codesnippet) should be presented in the [elements path](http://ckeditor.com/addon/elementspath) as "code snippet" (translatable). +* [#12311](http://dev.ckeditor.com/ticket/12311): Fixed: [Remove Format](http://ckeditor.com/addon/removeformat) should also remove `` elements. +* [#12261](http://dev.ckeditor.com/ticket/12261): Fixed: Filter has to be destroyed and removed from [`CKEDITOR.filter.instances`](http://docs.ckeditor.com/#!/api/CKEDITOR.filter-static-property-instances) on editor destroy. +* [#12398](http://dev.ckeditor.com/ticket/12398): Fixed: [Maximize](http://ckeditor.com/addon/maximize) does not work on an instance without a [title](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-title). +* [#12097](http://dev.ckeditor.com/ticket/12097): Fixed: JAWS not reading the number of options correctly in the [Text Color and Background Color](http://ckeditor.com/addon/colorbutton) button menu. +* [#12411](http://dev.ckeditor.com/ticket/12411): Fixed: [Page Break](http://ckeditor.com/addon/pagebreak) used directly in the editable breaks the editor. +* [#12354](http://dev.ckeditor.com/ticket/12354): Fixed: Various issues in undo manager when holding keys. +* [#12324](http://dev.ckeditor.com/ticket/12324): [IE8] Fixed: Undo steps are not recorded when changing the caret position by clicking below the body. +* [#12332](http://dev.ckeditor.com/ticket/12332): Fixed: Lowered DOM events listeners' priorities in undo manager in order to avoid ambiguity. +* [#12402](http://dev.ckeditor.com/ticket/12402): [Blink] Fixed: Workaround for Blink bug with `document.title` which breaks updating title in the full HTML mode. +* [#12338](http://dev.ckeditor.com/ticket/12338): Fixed: The CKEditor package contains unoptimized images. + + ## CKEditor 4.4.4 Fixed Issues: diff --git a/build-config.js b/build-config.js index 6c22e8b..5ea8379 100644 --- a/build-config.js +++ b/build-config.js @@ -29,15 +29,19 @@ var CKBUILDER_CONFIG = { preset: 'full', ignore: [ '.bender', - '.DS_Store', - '.gitignore', - '.gitattributes', - '.idea', - '.mailmap', 'bender.js', 'bender-err.log', 'bender-out.log', 'dev', + '.DS_Store', + '.gitattributes', + '.gitignore', + 'Gruntfile.js', + '.idea', + '.jscsrc', + '.jshintignore', + '.jshintrc', + '.mailmap', 'node_modules', 'package.json', 'README.md', diff --git a/ckeditor.js b/ckeditor.js index 474e5ba..d35e8bc 100644 --- a/ckeditor.js +++ b/ckeditor.js @@ -2,26 +2,26 @@ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -(function(){if(window.CKEDITOR&&window.CKEDITOR.dom)return;window.CKEDITOR||(window.CKEDITOR=function(){var a=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,e={timestamp:"E7KD",version:"4.4.4",revision:"1ba5105",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:a},status:"unloaded",basePath:function(){var f=window.CKEDITOR_BASEPATH||"";if(!f)for(var d=document.getElementsByTagName("script"),c=0;c=0;y--)if(n[y].priority<=e){n.splice(y+1,0,l);return{removeListener:h}}n.unshift(l)}return{removeListener:h}}, -once:function(){var a=arguments[1];arguments[1]=function(f){f.removeListener();return a.apply(this,arguments)};return this.on.apply(this,arguments)},capture:function(){CKEDITOR.event.useCapture=1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,f=function(){a=1},d=0,b=function(){d=1};return function(j,l,h){var n=e(this)[j],j=a,t=d;a=d=0;if(n){var y=n.listeners;if(y.length)for(var y=y.slice(0),z,o=0;o=0&&d.listeners.splice(b,1)}},removeAllListeners:function(){var a=e(this),f;for(f in a)delete a[f]},hasListeners:function(a){return(a=e(this)[a])&&a.listeners.length>0}}}()); -CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(a,e){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fire.call(this,a,e,this)},CKEDITOR.editor.prototype.fireOnce=function(a,e){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fireOnce.call(this,a,e,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)); +a,!1),d()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),d())}catch(c){}}function d(){for(var a;a=c.shift();)a()}var c=[];return function(d){function b(){try{document.documentElement.doScroll("left")}catch(p){setTimeout(b,1);return}a()}c.push(d);"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);d=!1;try{d=!window.frameElement}catch(e){}document.documentElement.doScroll&&d&&b()}}}()},b=window.CKEDITOR_GETURL;if(b){var c=e.getUrl;e.getUrl=function(a){return b.call(e,a)||c.call(e,a)}}return e}()); +CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(a){var e=CKEDITOR.event.prototype,b;for(b in e)a[b]==null&&(a[b]=e[b])},CKEDITOR.event.prototype=function(){function a(a){var f=e(this);return f[a]||(f[a]=new b(a))}var e=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},b=function(a){this.name=a;this.listeners=[]};b.prototype={getListenerIndex:function(a){for(var f=0,d=this.listeners;f=0;t--)if(p[t].priority<=e){p.splice(t+1,0,m);return{removeListener:j}}p.unshift(m)}return{removeListener:j}}, +once:function(){var a=Array.prototype.slice.call(arguments),f=a[1];a[1]=function(a){a.removeListener();return f.apply(this,arguments)};return this.on.apply(this,a)},capture:function(){CKEDITOR.event.useCapture=1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,f=function(){a=1},d=0,b=function(){d=1};return function(h,m,j){var p=e(this)[h],h=a,u=d;a=d=0;if(p){var t=p.listeners;if(t.length)for(var t=t.slice(0),y,n=0;n=0&&d.listeners.splice(b,1)}},removeAllListeners:function(){var a=e(this),f;for(f in a)delete a[f]},hasListeners:function(a){return(a=e(this)[a])&&a.listeners.length> +0}}}());CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(a,e){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fire.call(this,a,e,this)},CKEDITOR.editor.prototype.fireOnce=function(a,e){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fireOnce.call(this,a,e,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)); CKEDITOR.env||(CKEDITOR.env=function(){var a=navigator.userAgent.toLowerCase(),e={ie:a.indexOf("trident/")>-1,webkit:a.indexOf(" applewebkit/")>-1,air:a.indexOf(" adobeair/")>-1,mac:a.indexOf("macintosh")>-1,quirks:document.compatMode=="BackCompat"&&(!document.documentMode||document.documentMode<10),mobile:a.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(a),isCustomDomain:function(){if(!this.ie)return false;var a=document.domain,d=window.location.hostname;return a!=d&&a!="["+d+"]"},secure:location.protocol== "https:"};e.gecko=navigator.product=="Gecko"&&!e.webkit&&!e.ie;if(e.webkit)a.indexOf("chrome")>-1?e.chrome=true:e.safari=true;var b=0;if(e.ie){b=e.quirks||!document.documentMode?parseFloat(a.match(/msie (\d+)/)[1]):document.documentMode;e.ie9Compat=b==9;e.ie8Compat=b==8;e.ie7Compat=b==7;e.ie6Compat=b<7||e.quirks}if(e.gecko){var c=a.match(/rv:([\d\.]+)/);if(c){c=c[1].split(".");b=c[0]*1E4+(c[1]||0)*100+(c[2]||0)*1}}e.air&&(b=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));e.webkit&&(b=parseFloat(a.match(/ applewebkit\/(\d+)/)[1])); e.version=b;e.isCompatible=e.iOS&&b>=534||!e.mobile&&(e.ie&&b>6||e.gecko&&b>=2E4||e.air&&b>=1||e.webkit&&b>=522||false);e.hidpi=window.devicePixelRatio>=2;e.needsBrFiller=e.gecko||e.webkit||e.ie&&b>10;e.needsNbspFiller=e.ie&&b<11;e.cssClass="cke_browser_"+(e.ie?"ie":e.gecko?"gecko":e.webkit?"webkit":"unknown");if(e.quirks)e.cssClass=e.cssClass+" cke_browser_quirks";if(e.ie)e.cssClass=e.cssClass+(" cke_browser_ie"+(e.quirks?"6 cke_browser_iequirks":e.version));if(e.air)e.cssClass=e.cssClass+" cke_browser_air"; if(e.iOS)e.cssClass=e.cssClass+" cke_browser_ios";if(e.hidpi)e.cssClass=e.cssClass+" cke_hidpi";return e}()); "unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if(CKEDITOR.status!="basic_ready")CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var a=document.createElement("script");a.type="text/javascript";a.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(a)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(a){(this._.pending||(this._.pending=[])).push(a)};(function(){CKEDITOR.domReady(function(){var a= CKEDITOR.loadFullCore,e=CKEDITOR.loadFullCoreTimeout;if(a){CKEDITOR.status="basic_ready";a&&a._load?a():e&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},e*1E3)}})})();CKEDITOR.status="basic_loaded"}();CKEDITOR.dom={}; -(function(){var a=[],e=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",b=/&/g,c=/>/g,f=//g,f=/"+f+""):d.push('');return d.join("")}, -htmlEncode:function(a){return(""+a).replace(b,"&").replace(c,">").replace(f,"<")},htmlDecode:function(a){return a.replace(g,"&").replace(j,">").replace(l,"<")},htmlEncodeAttr:function(a){return a.replace(d,""").replace(f,"<").replace(c,">")},htmlDecodeAttr:function(a){return a.replace(h,'"').replace(l,"<").replace(j,">")},getNextNumber:function(){var a=0;return function(){return++a}}(),getNextId:function(){return"cke_"+this.getNextNumber()},override:function(a,f){var d=f(a);d.prototype= +f=f-2}for(var c=1;c"+f+""):d.push('');return d.join("")}, +htmlEncode:function(a){return(""+a).replace(b,"&").replace(c,">").replace(f,"<")},htmlDecode:function(a){return a.replace(g,"&").replace(h,">").replace(m,"<")},htmlEncodeAttr:function(a){return a.replace(d,""").replace(f,"<").replace(c,">")},htmlDecodeAttr:function(a){return a.replace(j,'"').replace(m,"<").replace(h,">")},getNextNumber:function(){var a=0;return function(){return++a}}(),getNextId:function(){return"cke_"+this.getNextNumber()},override:function(a,f){var d=f(a);d.prototype= a.prototype;return d},setTimeout:function(a,f,d,b,c){c||(c=window);d||(d=c);return c.setTimeout(function(){b?a.apply(d,[].concat(b)):a.apply(d)},f||0)},trim:function(){var a=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(f){return f.replace(a,"")}}(),ltrim:function(){var a=/^[ \t\n\r]+/g;return function(f){return f.replace(a,"")}}(),rtrim:function(){var a=/[ \t\n\r]+$/g;return function(f){return f.replace(a,"")}}(),indexOf:function(a,f){if(typeof f=="function")for(var d=0,b=a.length;d=0?a[d]:null},bind:function(a,f){return function(){return a.apply(f,arguments)}},createClass:function(a){var f=a.$,d=a.base,b=a.privates||a._,c=a.proto,a=a.statics;!f&&(f=function(){d&&this.base.apply(this,arguments)});if(b)var e=f,f=function(){var a=this._||(this._={}),f;for(f in b){var d=b[f];a[f]=typeof d=="function"?CKEDITOR.tools.bind(d,this):d}e.apply(this,arguments)};if(d){f.prototype= this.prototypedCopy(d.prototype);f.prototype.constructor=f;f.base=d;f.baseProto=d.prototype;f.prototype.base=function(){this.base=d.prototype.base;d.apply(this,arguments);this.base=arguments.callee}}c&&this.extend(f.prototype,c,true);a&&this.extend(f,a,true);return f},addFunction:function(f,d){return a.push(function(){return f.apply(d||this,arguments)})-1},removeFunction:function(f){a[f]=null},callFunction:function(f){var d=a[f];return d&&d.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var a= @@ -31,11 +31,11 @@ function(a,f,d,b){a=[f,d,b];for(f=0;f<3;f++)a[f]=("0"+parseInt(a[f],10).toString c=CKEDITOR.tools.trim(c)}b[d]=c});return b},writeCssText:function(a,f){var d,b=[];for(d in a)b.push(d+":"+a[d]);f&&b.sort();return b.join("; ")},objectCompare:function(a,f,d){var b;if(!a&&!f)return true;if(!a||!f)return false;for(b in a)if(a[b]!=f[b])return false;if(!d)for(b in f)if(a[b]!=f[b])return false;return true},objectKeys:function(a){var f=[],d;for(d in a)f.push(d);return f},convertArrayToObject:function(a,f){var d={};arguments.length==1&&(f=true);for(var b=0,c=a.length;b8)&&e)a=e+":"+a;return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(a))},getHead:function(){var a=this.$.getElementsByTagName("head")[0]; +this.$.documentElement,c=0;b&&c]*?>)|^/i,'$&\n