Use custom CKEditor - refs #8175

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent 88b3acf700
commit 12c7e7eccb
  1. 5
      app/Resources/public/assets/ChamiloLMS/.bower.json
  2. 2
      app/Resources/public/assets/ChamiloLMS/bower.json
  3. 14
      app/Resources/public/assets/ckeditor/.bower.json
  4. 2
      app/Resources/public/assets/ckeditor/CHANGES.md
  5. 1283
      app/Resources/public/assets/ckeditor/ckeditor.js
  6. 49
      app/Resources/public/assets/ckeditor/config.js
  7. 2
      app/Resources/public/assets/ckeditor/lang/af.js
  8. 2
      app/Resources/public/assets/ckeditor/lang/ar.js
  9. 2
      app/Resources/public/assets/ckeditor/lang/bg.js
  10. 2
      app/Resources/public/assets/ckeditor/lang/bn.js
  11. 2
      app/Resources/public/assets/ckeditor/lang/bs.js
  12. 2
      app/Resources/public/assets/ckeditor/lang/ca.js
  13. 2
      app/Resources/public/assets/ckeditor/lang/cs.js
  14. 2
      app/Resources/public/assets/ckeditor/lang/cy.js
  15. 2
      app/Resources/public/assets/ckeditor/lang/da.js
  16. 2
      app/Resources/public/assets/ckeditor/lang/de-ch.js
  17. 2
      app/Resources/public/assets/ckeditor/lang/de.js
  18. 2
      app/Resources/public/assets/ckeditor/lang/el.js
  19. 2
      app/Resources/public/assets/ckeditor/lang/en-au.js
  20. 2
      app/Resources/public/assets/ckeditor/lang/en-ca.js
  21. 2
      app/Resources/public/assets/ckeditor/lang/en-gb.js
  22. 2
      app/Resources/public/assets/ckeditor/lang/en.js
  23. 2
      app/Resources/public/assets/ckeditor/lang/eo.js
  24. 2
      app/Resources/public/assets/ckeditor/lang/es.js
  25. 2
      app/Resources/public/assets/ckeditor/lang/et.js
  26. 2
      app/Resources/public/assets/ckeditor/lang/eu.js
  27. 2
      app/Resources/public/assets/ckeditor/lang/fa.js
  28. 2
      app/Resources/public/assets/ckeditor/lang/fi.js
  29. 2
      app/Resources/public/assets/ckeditor/lang/fo.js
  30. 2
      app/Resources/public/assets/ckeditor/lang/fr-ca.js
  31. 2
      app/Resources/public/assets/ckeditor/lang/fr.js
  32. 2
      app/Resources/public/assets/ckeditor/lang/gl.js
  33. 2
      app/Resources/public/assets/ckeditor/lang/gu.js
  34. 2
      app/Resources/public/assets/ckeditor/lang/he.js
  35. 2
      app/Resources/public/assets/ckeditor/lang/hi.js
  36. 2
      app/Resources/public/assets/ckeditor/lang/hr.js
  37. 2
      app/Resources/public/assets/ckeditor/lang/hu.js
  38. 2
      app/Resources/public/assets/ckeditor/lang/id.js
  39. 2
      app/Resources/public/assets/ckeditor/lang/is.js
  40. 2
      app/Resources/public/assets/ckeditor/lang/it.js
  41. 2
      app/Resources/public/assets/ckeditor/lang/ja.js
  42. 2
      app/Resources/public/assets/ckeditor/lang/ka.js
  43. 2
      app/Resources/public/assets/ckeditor/lang/km.js
  44. 2
      app/Resources/public/assets/ckeditor/lang/ko.js
  45. 2
      app/Resources/public/assets/ckeditor/lang/ku.js
  46. 2
      app/Resources/public/assets/ckeditor/lang/lt.js
  47. 2
      app/Resources/public/assets/ckeditor/lang/lv.js
  48. 2
      app/Resources/public/assets/ckeditor/lang/mk.js
  49. 2
      app/Resources/public/assets/ckeditor/lang/mn.js
  50. 2
      app/Resources/public/assets/ckeditor/lang/ms.js
  51. 2
      app/Resources/public/assets/ckeditor/lang/nb.js
  52. 2
      app/Resources/public/assets/ckeditor/lang/nl.js
  53. 2
      app/Resources/public/assets/ckeditor/lang/no.js
  54. 2
      app/Resources/public/assets/ckeditor/lang/pl.js
  55. 2
      app/Resources/public/assets/ckeditor/lang/pt-br.js
  56. 2
      app/Resources/public/assets/ckeditor/lang/pt.js
  57. 2
      app/Resources/public/assets/ckeditor/lang/ro.js
  58. 2
      app/Resources/public/assets/ckeditor/lang/ru.js
  59. 2
      app/Resources/public/assets/ckeditor/lang/si.js
  60. 2
      app/Resources/public/assets/ckeditor/lang/sk.js
  61. 2
      app/Resources/public/assets/ckeditor/lang/sl.js
  62. 2
      app/Resources/public/assets/ckeditor/lang/sq.js
  63. 2
      app/Resources/public/assets/ckeditor/lang/sr-latn.js
  64. 2
      app/Resources/public/assets/ckeditor/lang/sr.js
  65. 2
      app/Resources/public/assets/ckeditor/lang/sv.js
  66. 2
      app/Resources/public/assets/ckeditor/lang/th.js
  67. 2
      app/Resources/public/assets/ckeditor/lang/tr.js
  68. 2
      app/Resources/public/assets/ckeditor/lang/tt.js
  69. 2
      app/Resources/public/assets/ckeditor/lang/ug.js
  70. 2
      app/Resources/public/assets/ckeditor/lang/uk.js
  71. 2
      app/Resources/public/assets/ckeditor/lang/vi.js
  72. 2
      app/Resources/public/assets/ckeditor/lang/zh-cn.js
  73. 2
      app/Resources/public/assets/ckeditor/lang/zh.js
  74. 2
      app/Resources/public/assets/ckeditor/package.json
  75. 41
      app/Resources/public/assets/ckeditor/plugins/flash/dialogs/flash.js
  76. BIN
      app/Resources/public/assets/ckeditor/plugins/flash/swf/player.swf
  77. BIN
      app/Resources/public/assets/ckeditor/plugins/icons.png
  78. BIN
      app/Resources/public/assets/ckeditor/plugins/icons_hidpi.png
  79. 7
      app/Resources/public/assets/ckeditor/plugins/menubutton/plugin.js
  80. 2
      app/Resources/public/assets/ckeditor/skins/kama/editor.css
  81. 2
      app/Resources/public/assets/ckeditor/skins/kama/editor_ie.css
  82. 2
      app/Resources/public/assets/ckeditor/skins/kama/editor_ie7.css
  83. 2
      app/Resources/public/assets/ckeditor/skins/kama/editor_ie8.css
  84. 2
      app/Resources/public/assets/ckeditor/skins/kama/editor_iequirks.css
  85. BIN
      app/Resources/public/assets/ckeditor/skins/kama/icons.png
  86. BIN
      app/Resources/public/assets/ckeditor/skins/kama/icons_hidpi.png
  87. 2
      app/Resources/public/assets/ckeditor/skins/moono/editor.css
  88. 2
      app/Resources/public/assets/ckeditor/skins/moono/editor_gecko.css
  89. 2
      app/Resources/public/assets/ckeditor/skins/moono/editor_ie.css
  90. 2
      app/Resources/public/assets/ckeditor/skins/moono/editor_ie7.css
  91. 2
      app/Resources/public/assets/ckeditor/skins/moono/editor_ie8.css
  92. 2
      app/Resources/public/assets/ckeditor/skins/moono/editor_iequirks.css
  93. BIN
      app/Resources/public/assets/ckeditor/skins/moono/icons.png
  94. BIN
      app/Resources/public/assets/ckeditor/skins/moono/icons_hidpi.png
  95. 2
      src/Chamilo/CoreBundle/Resources/config/bower.json

@ -13,7 +13,7 @@
"jquery": "2.2.0",
"jquery-ui": "1.11.*",
"bootstrap-daterangepicker": "1.3.*",
"ckeditor": "4.*",
"ckeditor": "https://github.com/AngelFQC/ckeditor-releases.git",
"jquery-timeago": "1.4.*",
"mediaelement": "2.*",
"modernizr": "2.8.*",
@ -33,5 +33,6 @@
},
"_source": "/var/www/html/chamilo/src/Chamilo/CoreBundle/Resources/config/bower.json",
"_target": "*",
"_originalSource": "/var/www/html/chamilo/src/Chamilo/CoreBundle/Resources/config/bower.json"
"_originalSource": "/var/www/html/chamilo/src/Chamilo/CoreBundle/Resources/config/bower.json",
"_direct": true
}

@ -13,7 +13,7 @@
"jquery": "2.2.0",
"jquery-ui": "1.11.*",
"bootstrap-daterangepicker": "1.3.*",
"ckeditor": "4.*",
"ckeditor": "https://github.com/AngelFQC/ckeditor-releases.git",
"jquery-timeago": "1.4.*",
"mediaelement": "2.*",
"modernizr": "2.8.*",

@ -16,14 +16,14 @@
"homepage": "http://ckeditor.com",
"main": "./ckeditor.js",
"moduleType": "globals",
"version": "4.5.8",
"_release": "4.5.8",
"version": "4.5.9",
"_release": "4.5.9",
"_resolution": {
"type": "version",
"tag": "4.5.8",
"commit": "6345bc8f142bb72ffb83b4a964be4d88ad3905c8"
"tag": "4.5.9",
"commit": "ba2580967f7409784921b4320e297522175e45bb"
},
"_source": "git://github.com/ckeditor/ckeditor-releases.git",
"_target": "4.*",
"_originalSource": "ckeditor"
"_source": "https://github.com/AngelFQC/ckeditor-releases.git",
"_target": "*",
"_originalSource": "https://github.com/AngelFQC/ckeditor-releases.git"
}

@ -1,6 +1,8 @@
CKEditor 4 Changelog
====================
## CKEditor 4.5.9
## CKEditor 4.5.8
New Features:

File diff suppressed because it is too large Load Diff

@ -1,38 +1,11 @@
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For complete reference see:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
// The toolbar groups arrangement, optimized for two toolbar rows.
config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'forms' },
{ name: 'tools' },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'others' },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
{ name: 'styles' },
{ name: 'colors' },
{ name: 'about' }
];
// Remove some buttons provided by the standard plugins, which are
// not needed in the Standard(s) toolbar.
config.removeButtons = 'Underline,Subscript,Superscript';
// Set the most common block elements.
config.format_tags = 'p;h1;h2;h3;pre';
// Simplify the dialog windows.
config.removeDialogTabs = 'image:advanced;link:advanced';
};
/**
* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -5,7 +5,7 @@
"main": "ckeditor.js",
"repository": {
"type": "git",
"url": "git+https://github.com/ckeditor/ckeditor-releases.git"
"url": "git+https://github.com/AngelFQC/ckeditor-releases.git"
},
"keywords": [
"ckeditor",

@ -2,23 +2,24 @@
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){function b(a,b,c){var h=n[this.id];if(h)for(var f=this instanceof CKEDITOR.ui.dialog.checkbox,e=0;e<h.length;e++){var d=h[e];switch(d.type){case 1:if(!a)continue;if(null!==a.getAttribute(d.name)){a=a.getAttribute(d.name);f?this.setValue("true"==a.toLowerCase()):this.setValue(a);return}f&&this.setValue(!!d["default"]);break;case 2:if(!a)continue;if(d.name in c){a=c[d.name];f?this.setValue("true"==a.toLowerCase()):this.setValue(a);return}f&&this.setValue(!!d["default"]);break;case 4:if(!b)continue;
if(b.getAttribute(d.name)){a=b.getAttribute(d.name);f?this.setValue("true"==a.toLowerCase()):this.setValue(a);return}f&&this.setValue(!!d["default"])}}}function c(a,b,c){var h=n[this.id];if(h)for(var f=""===this.getValue(),e=this instanceof CKEDITOR.ui.dialog.checkbox,d=0;d<h.length;d++){var g=h[d];switch(g.type){case 1:if(!a||"data"==g.name&&b&&!a.hasAttribute("data"))continue;var m=this.getValue();f||e&&m===g["default"]?a.removeAttribute(g.name):a.setAttribute(g.name,m);break;case 2:if(!a)continue;
m=this.getValue();if(f||e&&m===g["default"])g.name in c&&c[g.name].remove();else if(g.name in c)c[g.name].setAttribute("value",m);else{var p=CKEDITOR.dom.element.createFromHtml("\x3ccke:param\x3e\x3c/cke:param\x3e",a.getDocument());p.setAttributes({name:g.name,value:m});1>a.getChildCount()?p.appendTo(a):p.insertBefore(a.getFirst())}break;case 4:if(!b)continue;m=this.getValue();f||e&&m===g["default"]?b.removeAttribute(g.name):b.setAttribute(g.name,m)}}}for(var n={id:[{type:1,name:"id"}],classid:[{type:1,
name:"classid"}],codebase:[{type:1,name:"codebase"}],pluginspage:[{type:4,name:"pluginspage"}],src:[{type:2,name:"movie"},{type:4,name:"src"},{type:1,name:"data"}],name:[{type:4,name:"name"}],align:[{type:1,name:"align"}],"class":[{type:1,name:"class"},{type:4,name:"class"}],width:[{type:1,name:"width"},{type:4,name:"width"}],height:[{type:1,name:"height"},{type:4,name:"height"}],hSpace:[{type:1,name:"hSpace"},{type:4,name:"hSpace"}],vSpace:[{type:1,name:"vSpace"},{type:4,name:"vSpace"}],style:[{type:1,
name:"style"},{type:4,name:"style"}],type:[{type:4,name:"type"}]},k="play loop menu quality scale salign wmode bgcolor base flashvars allowScriptAccess allowFullScreen".split(" "),l=0;l<k.length;l++)n[k[l]]=[{type:4,name:k[l]},{type:2,name:k[l]}];k=["play","loop","menu"];for(l=0;l<k.length;l++)n[k[l]][0]["default"]=n[k[l]][1]["default"]=!0;CKEDITOR.dialog.add("flash",function(a){var l=!a.config.flashEmbedTagOnly,k=a.config.flashAddEmbedTag||a.config.flashEmbedTagOnly,h,f="\x3cdiv\x3e"+CKEDITOR.tools.htmlEncode(a.lang.common.preview)+
'\x3cbr\x3e\x3cdiv id\x3d"cke_FlashPreviewLoader'+CKEDITOR.tools.getNextNumber()+'" style\x3d"display:none"\x3e\x3cdiv class\x3d"loading"\x3e\x26nbsp;\x3c/div\x3e\x3c/div\x3e\x3cdiv id\x3d"cke_FlashPreviewBox'+CKEDITOR.tools.getNextNumber()+'" class\x3d"FlashPreviewBox"\x3e\x3c/div\x3e\x3c/div\x3e';return{title:a.lang.flash.title,minWidth:420,minHeight:310,onShow:function(){this.fakeImage=this.objectNode=this.embedNode=null;h=new CKEDITOR.dom.element("embed",a.document);var e=this.getSelectedElement();
if(e&&e.data("cke-real-element-type")&&"flash"==e.data("cke-real-element-type")){this.fakeImage=e;var d=a.restoreRealElement(e),g=null,b=null,c={};if("cke:object"==d.getName()){g=d;d=g.getElementsByTag("embed","cke");0<d.count()&&(b=d.getItem(0));for(var d=g.getElementsByTag("param","cke"),f=0,l=d.count();f<l;f++){var k=d.getItem(f),n=k.getAttribute("name"),k=k.getAttribute("value");c[n]=k}}else"cke:embed"==d.getName()&&(b=d);this.objectNode=g;this.embedNode=b;this.setupContent(g,b,c,e)}},onOk:function(){var e=
null,d=null,b=null;this.fakeImage?(e=this.objectNode,d=this.embedNode):(l&&(e=CKEDITOR.dom.element.createFromHtml("\x3ccke:object\x3e\x3c/cke:object\x3e",a.document),e.setAttributes({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",codebase:"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version\x3d6,0,40,0"})),k&&(d=CKEDITOR.dom.element.createFromHtml("\x3ccke:embed\x3e\x3c/cke:embed\x3e",a.document),d.setAttributes({type:"application/x-shockwave-flash",pluginspage:"http://www.macromedia.com/go/getflashplayer"}),
e&&d.appendTo(e)));if(e)for(var b={},c=e.getElementsByTag("param","cke"),f=0,h=c.count();f<h;f++)b[c.getItem(f).getAttribute("name")]=c.getItem(f);c={};f={};this.commitContent(e,d,b,c,f);e=a.createFakeElement(e||d,"cke_flash","flash",!0);e.setAttributes(f);e.setStyles(c);this.fakeImage?(e.replace(this.fakeImage),a.getSelection().selectElement(e)):a.insertElement(e)},onHide:function(){this.preview&&this.preview.setHtml("")},contents:[{id:"info",label:a.lang.common.generalTab,accessKey:"I",elements:[{type:"vbox",
padding:0,children:[{type:"hbox",widths:["280px","110px"],align:"right",children:[{id:"src",type:"text",label:a.lang.common.url,required:!0,validate:CKEDITOR.dialog.validate.notEmpty(a.lang.flash.validateSrc),setup:b,commit:c,onLoad:function(){var a=this.getDialog(),b=function(b){h.setAttribute("src",b);a.preview.setHtml('\x3cembed height\x3d"100%" width\x3d"100%" src\x3d"'+CKEDITOR.tools.htmlEncode(h.getAttribute("src"))+'" type\x3d"application/x-shockwave-flash"\x3e\x3c/embed\x3e')};a.preview=a.getContentElement("info",
"preview").getElement().getChild(3);this.on("change",function(a){a.data&&a.data.value&&b(a.data.value)});this.getInputElement().on("change",function(){b(this.getValue())},this)}},{type:"button",id:"browse",filebrowser:"info:src",hidden:!0,style:"display:inline-block;margin-top:14px;",label:a.lang.common.browseServer}]}]},{type:"hbox",widths:["25%","25%","25%","25%","25%"],children:[{type:"text",id:"width",requiredContent:"embed[width]",style:"width:95px",label:a.lang.common.width,validate:CKEDITOR.dialog.validate.htmlLength(a.lang.common.invalidHtmlLength.replace("%1",
a.lang.common.width)),setup:b,commit:c},{type:"text",id:"height",requiredContent:"embed[height]",style:"width:95px",label:a.lang.common.height,validate:CKEDITOR.dialog.validate.htmlLength(a.lang.common.invalidHtmlLength.replace("%1",a.lang.common.height)),setup:b,commit:c},{type:"text",id:"hSpace",requiredContent:"embed[hspace]",style:"width:95px",label:a.lang.flash.hSpace,validate:CKEDITOR.dialog.validate.integer(a.lang.flash.validateHSpace),setup:b,commit:c},{type:"text",id:"vSpace",requiredContent:"embed[vspace]",
style:"width:95px",label:a.lang.flash.vSpace,validate:CKEDITOR.dialog.validate.integer(a.lang.flash.validateVSpace),setup:b,commit:c}]},{type:"vbox",children:[{type:"html",id:"preview",style:"width:95%;",html:f}]}]},{id:"Upload",hidden:!0,filebrowser:"uploadButton",label:a.lang.common.upload,elements:[{type:"file",id:"upload",label:a.lang.common.upload,size:38},{type:"fileButton",id:"uploadButton",label:a.lang.common.uploadSubmit,filebrowser:"info:src","for":["Upload","upload"]}]},{id:"properties",
label:a.lang.flash.propertiesTab,elements:[{type:"hbox",widths:["50%","50%"],children:[{id:"scale",type:"select",requiredContent:"embed[scale]",label:a.lang.flash.scale,"default":"",style:"width : 100%;",items:[[a.lang.common.notSet,""],[a.lang.flash.scaleAll,"showall"],[a.lang.flash.scaleNoBorder,"noborder"],[a.lang.flash.scaleFit,"exactfit"]],setup:b,commit:c},{id:"allowScriptAccess",type:"select",requiredContent:"embed[allowscriptaccess]",label:a.lang.flash.access,"default":"",style:"width : 100%;",
items:[[a.lang.common.notSet,""],[a.lang.flash.accessAlways,"always"],[a.lang.flash.accessSameDomain,"samedomain"],[a.lang.flash.accessNever,"never"]],setup:b,commit:c}]},{type:"hbox",widths:["50%","50%"],children:[{id:"wmode",type:"select",requiredContent:"embed[wmode]",label:a.lang.flash.windowMode,"default":"",style:"width : 100%;",items:[[a.lang.common.notSet,""],[a.lang.flash.windowModeWindow,"window"],[a.lang.flash.windowModeOpaque,"opaque"],[a.lang.flash.windowModeTransparent,"transparent"]],
setup:b,commit:c},{id:"quality",type:"select",requiredContent:"embed[quality]",label:a.lang.flash.quality,"default":"high",style:"width : 100%;",items:[[a.lang.common.notSet,""],[a.lang.flash.qualityBest,"best"],[a.lang.flash.qualityHigh,"high"],[a.lang.flash.qualityAutoHigh,"autohigh"],[a.lang.flash.qualityMedium,"medium"],[a.lang.flash.qualityAutoLow,"autolow"],[a.lang.flash.qualityLow,"low"]],setup:b,commit:c}]},{type:"hbox",widths:["50%","50%"],children:[{id:"align",type:"select",requiredContent:"object[align]",
label:a.lang.common.align,"default":"",style:"width : 100%;",items:[[a.lang.common.notSet,""],[a.lang.common.alignLeft,"left"],[a.lang.flash.alignAbsBottom,"absBottom"],[a.lang.flash.alignAbsMiddle,"absMiddle"],[a.lang.flash.alignBaseline,"baseline"],[a.lang.common.alignBottom,"bottom"],[a.lang.common.alignMiddle,"middle"],[a.lang.common.alignRight,"right"],[a.lang.flash.alignTextTop,"textTop"],[a.lang.common.alignTop,"top"]],setup:b,commit:function(a,b,f,k,l){var h=this.getValue();c.apply(this,arguments);
h&&(l.align=h)}},{type:"html",html:"\x3cdiv\x3e\x3c/div\x3e"}]},{type:"fieldset",label:CKEDITOR.tools.htmlEncode(a.lang.flash.flashvars),children:[{type:"vbox",padding:0,children:[{type:"checkbox",id:"menu",label:a.lang.flash.chkMenu,"default":!0,setup:b,commit:c},{type:"checkbox",id:"play",label:a.lang.flash.chkPlay,"default":!0,setup:b,commit:c},{type:"checkbox",id:"loop",label:a.lang.flash.chkLoop,"default":!0,setup:b,commit:c},{type:"checkbox",id:"allowFullScreen",label:a.lang.flash.chkFull,"default":!0,
setup:b,commit:c}]}]}]},{id:"advanced",label:a.lang.common.advancedTab,elements:[{type:"hbox",children:[{type:"text",id:"id",requiredContent:"object[id]",label:a.lang.common.id,setup:b,commit:c}]},{type:"hbox",widths:["45%","55%"],children:[{type:"text",id:"bgcolor",requiredContent:"embed[bgcolor]",label:a.lang.flash.bgcolor,setup:b,commit:c},{type:"text",id:"class",requiredContent:"embed(cke-xyz)",label:a.lang.common.cssClass,setup:b,commit:c}]},{type:"text",id:"style",requiredContent:"embed{cke-xyz}",
validate:CKEDITOR.dialog.validate.inlineStyle(a.lang.common.invalidInlineStyle),label:a.lang.common.cssStyle,setup:b,commit:c}]}]}})})();
(function(){function b(a,b,e){var m=n[this.id];if(m)for(var k=this instanceof CKEDITOR.ui.dialog.checkbox,f=0;f<m.length;f++){var d=m[f];switch(d.type){case 1:if(!a)continue;if(null!==a.getAttribute(d.name)){a=a.getAttribute(d.name);k?this.setValue("true"==a.toLowerCase()):this.setValue(a);return}k&&this.setValue(!!d["default"]);break;case 2:if(!a)continue;if(d.name in e){a=e[d.name];k?this.setValue("true"==a.toLowerCase()):this.setValue(a);return}k&&this.setValue(!!d["default"]);break;case 4:if(!b)continue;
if(b.getAttribute(d.name)){a=b.getAttribute(d.name);k?this.setValue("true"==a.toLowerCase()):this.setValue(a);return}k&&this.setValue(!!d["default"])}}}function e(a,b,e){var m=n[this.id];if(m)for(var k=""===this.getValue(),f=this instanceof CKEDITOR.ui.dialog.checkbox,d=0;d<m.length;d++){var g=m[d];switch(g.type){case 1:if(!a||"data"==g.name&&b&&!a.hasAttribute("data"))continue;var c=this.getValue();k||f&&c===g["default"]?a.removeAttribute(g.name):a.setAttribute(g.name,c);break;case 2:if(!a)continue;
c=this.getValue();if(k||f&&c===g["default"])g.name in e&&e[g.name].remove();else if(g.name in e)e[g.name].setAttribute("value",c);else{var p=CKEDITOR.dom.element.createFromHtml("\x3ccke:param\x3e\x3c/cke:param\x3e",a.getDocument());p.setAttributes({name:g.name,value:c});1>a.getChildCount()?p.appendTo(a):p.insertBefore(a.getFirst())}break;case 4:if(!b)continue;c=this.getValue();k||f&&c===g["default"]?b.removeAttribute(g.name):"src"===g.name&&/\.flv(?:$|\?)/i.test(c)?(b.setAttribute(g.name,q.flash_flvPlayer),
b.setAttribute("flashvars","file\x3d"+c+"\x26link\x3d"+c)):b.setAttribute(g.name,c)}}}for(var q={},n={id:[{type:1,name:"id"}],classid:[{type:1,name:"classid"}],codebase:[{type:1,name:"codebase"}],pluginspage:[{type:4,name:"pluginspage"}],src:[{type:2,name:"movie"},{type:4,name:"src"},{type:1,name:"data"}],name:[{type:4,name:"name"}],align:[{type:1,name:"align"}],"class":[{type:1,name:"class"},{type:4,name:"class"}],width:[{type:1,name:"width"},{type:4,name:"width"}],height:[{type:1,name:"height"},
{type:4,name:"height"}],hSpace:[{type:1,name:"hSpace"},{type:4,name:"hSpace"}],vSpace:[{type:1,name:"vSpace"},{type:4,name:"vSpace"}],style:[{type:1,name:"style"},{type:4,name:"style"}],type:[{type:4,name:"type"}]},l="play loop menu quality scale salign wmode bgcolor base flashvars allowScriptAccess allowFullScreen".split(" "),h=0;h<l.length;h++)n[l[h]]=[{type:4,name:l[h]},{type:2,name:l[h]}];l=["play","loop","menu"];for(h=0;h<l.length;h++)n[l[h]][0]["default"]=n[l[h]][1]["default"]=!0;CKEDITOR.dialog.add("flash",
function(a){var h=!a.config.flashEmbedTagOnly,l=a.config.flashAddEmbedTag||a.config.flashEmbedTagOnly;q=a.config;var m,k="\x3cdiv\x3e"+CKEDITOR.tools.htmlEncode(a.lang.common.preview)+'\x3cbr\x3e\x3cdiv id\x3d"cke_FlashPreviewLoader'+CKEDITOR.tools.getNextNumber()+'" style\x3d"display:none"\x3e\x3cdiv class\x3d"loading"\x3e\x26nbsp;\x3c/div\x3e\x3c/div\x3e\x3cdiv id\x3d"cke_FlashPreviewBox'+CKEDITOR.tools.getNextNumber()+'" class\x3d"FlashPreviewBox"\x3e\x3c/div\x3e\x3c/div\x3e';return{title:a.lang.flash.title,
minWidth:420,minHeight:310,onShow:function(){this.fakeImage=this.objectNode=this.embedNode=null;m=new CKEDITOR.dom.element("embed",a.document);var f=this.getSelectedElement();if(f&&f.data("cke-real-element-type")&&"flash"==f.data("cke-real-element-type")){this.fakeImage=f;var d=a.restoreRealElement(f),g=null,c=null,b={};if("cke:object"==d.getName()){g=d;d=g.getElementsByTag("embed","cke");0<d.count()&&(c=d.getItem(0));for(var d=g.getElementsByTag("param","cke"),e=0,k=d.count();e<k;e++){var h=d.getItem(e),
l=h.getAttribute("name"),h=h.getAttribute("value");b[l]=h}}else"cke:embed"==d.getName()&&(c=d);this.objectNode=g;this.embedNode=c;this.setupContent(g,c,b,f)}},onOk:function(){var f=null,d=null,g=null;this.fakeImage?(f=this.objectNode,d=this.embedNode):(h&&(f=CKEDITOR.dom.element.createFromHtml("\x3ccke:object\x3e\x3c/cke:object\x3e",a.document),f.setAttributes({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",codebase:"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version\x3d6,0,40,0"})),
l&&(d=CKEDITOR.dom.element.createFromHtml("\x3ccke:embed\x3e\x3c/cke:embed\x3e",a.document),d.setAttributes({type:"application/x-shockwave-flash",pluginspage:"http://www.macromedia.com/go/getflashplayer"}),f&&d.appendTo(f)));if(f)for(var g={},c=f.getElementsByTag("param","cke"),b=0,e=c.count();b<e;b++)g[c.getItem(b).getAttribute("name")]=c.getItem(b);c={};b={};this.commitContent(f,d,g,c,b);f=a.createFakeElement(f||d,"cke_flash","flash",!0);f.setAttributes(b);f.setStyles(c);this.fakeImage?(f.replace(this.fakeImage),
a.getSelection().selectElement(f)):a.insertElement(f)},onHide:function(){this.preview&&this.preview.setHtml("")},contents:[{id:"info",label:a.lang.common.generalTab,accessKey:"I",elements:[{type:"vbox",padding:0,children:[{type:"hbox",widths:["280px","110px"],align:"right",children:[{id:"src",type:"text",label:a.lang.common.url,required:!0,validate:CKEDITOR.dialog.validate.notEmpty(a.lang.flash.validateSrc),setup:b,commit:e,onLoad:function(){var a=this.getDialog(),b=function(b){m.setAttribute("src",
b);var c=document.createElement("embed");c.setAttribute("allowfullscreen","true");c.setAttribute("type","application/x-shockwave-flash");c.setAttribute("quality","high");c.setAttribute("height","100%");c.setAttribute("width","100%");/\.flv(?:$|\?)/i.test(b)?(c.setAttribute("flashvars",CKEDITOR.tools.htmlEncode("file\x3d"+b+"\x26link\x3d"+b+"\x26height\x3d100%\x26width\x3d100%")),c.setAttribute("src",CKEDITOR.tools.htmlEncode(q.flash_flvPlayer))):c.setAttribute("src",CKEDITOR.tools.htmlEncode(m.getAttribute("src")));
a.preview.setHtml(c.outerHTML)};a.preview=a.getContentElement("info","preview").getElement().getChild(3);this.on("change",function(a){a.data&&a.data.value&&b(a.data.value)});this.getInputElement().on("change",function(){b(this.getValue())},this)}},{type:"button",id:"browse",filebrowser:"info:src",hidden:!0,style:"display:inline-block;margin-top:14px;",label:a.lang.common.browseServer}]}]},{type:"hbox",widths:["25%","25%","25%","25%","25%"],children:[{type:"text",id:"width",requiredContent:"embed[width]",
style:"width:95px",label:a.lang.common.width,validate:CKEDITOR.dialog.validate.htmlLength(a.lang.common.invalidHtmlLength.replace("%1",a.lang.common.width)),setup:b,commit:e},{type:"text",id:"height",requiredContent:"embed[height]",style:"width:95px",label:a.lang.common.height,validate:CKEDITOR.dialog.validate.htmlLength(a.lang.common.invalidHtmlLength.replace("%1",a.lang.common.height)),setup:b,commit:e},{type:"text",id:"hSpace",requiredContent:"embed[hspace]",style:"width:95px",label:a.lang.flash.hSpace,
validate:CKEDITOR.dialog.validate.integer(a.lang.flash.validateHSpace),setup:b,commit:e},{type:"text",id:"vSpace",requiredContent:"embed[vspace]",style:"width:95px",label:a.lang.flash.vSpace,validate:CKEDITOR.dialog.validate.integer(a.lang.flash.validateVSpace),setup:b,commit:e}]},{type:"vbox",children:[{type:"html",id:"preview",style:"width:95%;",html:k}]}]},{id:"Upload",hidden:!0,filebrowser:"uploadButton",label:a.lang.common.upload,elements:[{type:"file",id:"upload",label:a.lang.common.upload,
size:38},{type:"fileButton",id:"uploadButton",label:a.lang.common.uploadSubmit,filebrowser:"info:src","for":["Upload","upload"]}]},{id:"properties",label:a.lang.flash.propertiesTab,elements:[{type:"hbox",widths:["50%","50%"],children:[{id:"scale",type:"select",requiredContent:"embed[scale]",label:a.lang.flash.scale,"default":"",style:"width : 100%;",items:[[a.lang.common.notSet,""],[a.lang.flash.scaleAll,"showall"],[a.lang.flash.scaleNoBorder,"noborder"],[a.lang.flash.scaleFit,"exactfit"]],setup:b,
commit:e},{id:"allowScriptAccess",type:"select",requiredContent:"embed[allowscriptaccess]",label:a.lang.flash.access,"default":"",style:"width : 100%;",items:[[a.lang.common.notSet,""],[a.lang.flash.accessAlways,"always"],[a.lang.flash.accessSameDomain,"samedomain"],[a.lang.flash.accessNever,"never"]],setup:b,commit:e}]},{type:"hbox",widths:["50%","50%"],children:[{id:"wmode",type:"select",requiredContent:"embed[wmode]",label:a.lang.flash.windowMode,"default":"",style:"width : 100%;",items:[[a.lang.common.notSet,
""],[a.lang.flash.windowModeWindow,"window"],[a.lang.flash.windowModeOpaque,"opaque"],[a.lang.flash.windowModeTransparent,"transparent"]],setup:b,commit:e},{id:"quality",type:"select",requiredContent:"embed[quality]",label:a.lang.flash.quality,"default":"high",style:"width : 100%;",items:[[a.lang.common.notSet,""],[a.lang.flash.qualityBest,"best"],[a.lang.flash.qualityHigh,"high"],[a.lang.flash.qualityAutoHigh,"autohigh"],[a.lang.flash.qualityMedium,"medium"],[a.lang.flash.qualityAutoLow,"autolow"],
[a.lang.flash.qualityLow,"low"]],setup:b,commit:e}]},{type:"hbox",widths:["50%","50%"],children:[{id:"align",type:"select",requiredContent:"object[align]",label:a.lang.common.align,"default":"",style:"width : 100%;",items:[[a.lang.common.notSet,""],[a.lang.common.alignLeft,"left"],[a.lang.flash.alignAbsBottom,"absBottom"],[a.lang.flash.alignAbsMiddle,"absMiddle"],[a.lang.flash.alignBaseline,"baseline"],[a.lang.common.alignBottom,"bottom"],[a.lang.common.alignMiddle,"middle"],[a.lang.common.alignRight,
"right"],[a.lang.flash.alignTextTop,"textTop"],[a.lang.common.alignTop,"top"]],setup:b,commit:function(a,b,g,c,h){var k=this.getValue();e.apply(this,arguments);k&&(h.align=k)}},{type:"html",html:"\x3cdiv\x3e\x3c/div\x3e"}]},{type:"fieldset",label:CKEDITOR.tools.htmlEncode(a.lang.flash.flashvars),children:[{type:"vbox",padding:0,children:[{type:"checkbox",id:"menu",label:a.lang.flash.chkMenu,"default":!0,setup:b,commit:e},{type:"checkbox",id:"play",label:a.lang.flash.chkPlay,"default":!0,setup:b,commit:e},
{type:"checkbox",id:"loop",label:a.lang.flash.chkLoop,"default":!0,setup:b,commit:e},{type:"checkbox",id:"allowFullScreen",label:a.lang.flash.chkFull,"default":!0,setup:b,commit:e}]}]}]},{id:"advanced",label:a.lang.common.advancedTab,elements:[{type:"hbox",children:[{type:"text",id:"id",requiredContent:"object[id]",label:a.lang.common.id,setup:b,commit:e}]},{type:"hbox",widths:["45%","55%"],children:[{type:"text",id:"bgcolor",requiredContent:"embed[bgcolor]",label:a.lang.flash.bgcolor,setup:b,commit:e},
{type:"text",id:"class",requiredContent:"embed(cke-xyz)",label:a.lang.common.cssClass,setup:b,commit:e}]},{type:"text",id:"style",requiredContent:"embed{cke-xyz}",validate:CKEDITOR.dialog.validate.inlineStyle(a.lang.common.invalidInlineStyle),label:a.lang.common.cssStyle,setup:b,commit:e}]}]}})})();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 59 KiB

@ -0,0 +1,7 @@
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.add("menubutton",{requires:"button,menu",onLoad:function(){var d=function(c){var a=this._,b=a.menu;a.state!==CKEDITOR.TRISTATE_DISABLED&&(a.on&&b?b.hide():(a.previousState=a.state,b||(b=a.menu=new CKEDITOR.menu(c,{panel:{className:"cke_menu_panel",attributes:{"aria-label":c.lang.common.options}}}),b.onHide=CKEDITOR.tools.bind(function(){var b=this.command?c.getCommand(this.command).modes:this.modes;this.setState(!b||b[c.mode]?a.previousState:CKEDITOR.TRISTATE_DISABLED);a.on=0},this),
this.onMenu&&b.addListener(this.onMenu)),this.setState(CKEDITOR.TRISTATE_ON),a.on=1,setTimeout(function(){b.show(CKEDITOR.document.getById(a.id),4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(c){delete c.panel;this.base(c);this.hasArrow=!0;this.click=d},statics:{handler:{create:function(c){return new CKEDITOR.ui.menuButton(c)}}}})},beforeInit:function(d){d.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}});
CKEDITOR.UI_MENUBUTTON="menubutton";

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 59 KiB

@ -13,7 +13,7 @@
"jquery": "2.2.0",
"jquery-ui": "1.11.*",
"bootstrap-daterangepicker": "1.3.*",
"ckeditor": "4.*",
"ckeditor": "https://github.com/AngelFQC/ckeditor-releases.git",
"jquery-timeago": "1.4.*",
"mediaelement": "2.*",
"modernizr": "2.8.*",

Loading…
Cancel
Save