glebtv-ckeditor 4.4.6 → 4.4.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +14 -5
  3. data/lib/ckeditor/version.rb +1 -1
  4. data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +1 -1
  5. data/vendor/assets/javascripts/ckeditor/build-config.js +1 -0
  6. data/vendor/assets/javascripts/ckeditor/ckeditor.js +480 -478
  7. data/vendor/assets/javascripts/ckeditor/config.js +1 -1
  8. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +1 -1
  9. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +1 -1
  10. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +1 -1
  11. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +1 -1
  12. data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +1 -1
  13. data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +3 -3
  14. data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +1 -1
  15. data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +1 -1
  16. data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +21 -21
  17. data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +1 -1
  18. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +1 -1
  19. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +1 -1
  20. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +1 -1
  21. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +4 -5
  22. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +1 -1
  23. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +3 -3
  24. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +1 -1
  25. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +1 -1
  26. data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +1 -1
  27. data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +3 -3
  28. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +1 -1
  29. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +1 -1
  30. data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +1 -1
  31. data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +1 -1
  32. data/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +25 -0
  33. data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +1 -1
  34. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +1 -1
  35. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +1 -1
  36. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +1 -1
  37. data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +1 -1
  38. data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +1 -1
  39. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +1 -1
  40. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +1 -1
  41. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +1 -1
  42. data/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +25 -0
  43. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css.scss +771 -0
  44. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css.scss +812 -0
  45. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css.scss +844 -0
  46. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css.scss +825 -0
  47. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css.scss +816 -0
  48. data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css.scss +2136 -0
  49. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css.scss +2145 -0
  50. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css.scss +2194 -0
  51. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css.scss +2362 -0
  52. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css.scss +2206 -0
  53. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css.scss +2254 -0
  54. data/vendor/assets/javascripts/ckeditor/styles.js +1 -1
  55. metadata +29 -13
  56. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +0 -5
  57. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +0 -5
  58. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +0 -5
  59. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +0 -5
  60. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +0 -5
  61. data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +0 -5
  62. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +0 -5
  63. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +0 -5
  64. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +0 -5
  65. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +0 -5
  66. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +0 -5
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  * For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("a11yHelp",function(j){var a=j.lang.a11yhelp,l=CKEDITOR.tools.getNextId(),e={8:a.backspace,9:a.tab,13:a.enter,16:a.shift,17:a.ctrl,18:a.alt,19:a.pause,20:a.capslock,27:a.escape,33:a.pageUp,34:a.pageDown,35:a.end,36:a.home,37:a.leftArrow,38:a.upArrow,39:a.rightArrow,40:a.downArrow,45:a.insert,46:a["delete"],91:a.leftWindowKey,92:a.rightWindowKey,93:a.selectKey,96:a.numpad0,97:a.numpad1,98:a.numpad2,99:a.numpad3,100:a.numpad4,101:a.numpad5,102:a.numpad6,103:a.numpad7,104:a.numpad8,
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.plugins.setLang("a11yhelp","en",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"General",items:[{name:"Editor Toolbar",legend:"Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT-TAB. Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. Press SPACE or ENTER to activate the toolbar button."},{name:"Editor Dialog",legend:"Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page."},
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.plugins.setLang("a11yhelp","ru",{title:"Горячие клавиши",contents:"Помощь. Для закрытия этого окна нажмите ESC.",legend:[{name:"Основное",items:[{name:"Панель инструментов",legend:"Нажмите ${toolbarFocus} для перехода к панели инструментов. Для перемещения между группами панели инструментов используйте TAB и SHIFT-TAB. Для перемещения между кнопками панели иструментов используйте кнопки ВПРАВО или ВЛЕВО. Нажмите ПРОБЕЛ или ENTER для запуска кнопки панели инструментов."},{name:"Диалоги",legend:"В диалоговом окне, нажмите клавишу TAB для перехода к следующему диалоговому полю, нажмите клавиши SHIFT + TAB, чтобы перейти к предыдущему полю, нажмите ENTER, чтобы отправить данные, нажмите клавишу ESC, для отмены. Для окон, которые имеют несколько вкладок, нажмите ALT + F10 для перехода к списку вкладок. Переход к следующей вкладке TAB ИЛИ ПРАВУЮ СТРЕЛКУ. Переход к предыдущей вкладке с помощью SHIFT + TAB или ЛЕВАЯ СТРЕЛКА. Нажмите ПРОБЕЛ или ENTER, чтобы выбрать вкладку."},
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("about",function(a){var a=a.lang.about,b=CKEDITOR.getUrl(CKEDITOR.plugins.get("about").path+"dialogs/"+(CKEDITOR.env.hidpi?"hidpi/":"")+"logo_ckeditor.png");return{title:CKEDITOR.env.ie?a.dlgTitle:a.title,minWidth:390,minHeight:230,contents:[{id:"tab1",label:"",title:"",expand:!0,padding:0,elements:[{type:"html",html:'<style type="text/css">.cke_about_container{color:#000 !important;padding:10px 10px 0;margin-top:5px}.cke_about_container p{margin: 0 0 10px;}.cke_about_container .cke_about_logo{height:81px;background-color:#fff;background-image:url('+
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("paste",function(c){function h(a){var b=new CKEDITOR.dom.document(a.document),f=b.getBody(),d=b.getById("cke_actscrpt");d&&d.remove();f.setAttribute("contenteditable",!0);if(CKEDITOR.env.ie&&8>CKEDITOR.env.version)b.getWindow().on("blur",function(){b.$.selection.empty()});b.on("keydown",function(a){var a=a.data,b;switch(a.getKeystroke()){case 27:this.hide();b=1;break;case 9:case CKEDITOR.SHIFT+9:this.changeFocus(1),b=1}b&&a.preventDefault()},this);c.fire("ariaWidget",new CKEDITOR.dom.element(a.frameElement));
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("colordialog",function(t){function n(){f.getById(o).removeStyle("background-color");p.getContentElement("picker","selectedColor").setValue("");j&&j.removeAttribute("aria-selected");j=null}function u(a){var a=a.data.getTarget(),b;if("td"==a.getName()&&(b=a.getChild(0).getHtml()))j=a,j.setAttribute("aria-selected",!0),p.getContentElement("picker","selectedColor").setValue(b)}function y(a){for(var a=a.replace(/^#/,""),b=0,c=[];2>=b;b++)c[b]=parseInt(a.substr(2*b,2),16);return"#"+
@@ -9,5 +9,5 @@ else if(a=c.getParent().getNext())if((a=a.getChild([0]))&&1==a.type)a.focus(),b.
9
9
  a;s<a+3;s++){var e=new r(i.$.insertRow(-1));e.setAttribute("role","row");for(var f=d;f<d+3;f++)for(var g=0;6>g;g++)b(e.$,"#"+c[f]+c[g]+c[s])}}function b(a,c){var b=new r(a.insertCell(-1));b.setAttribute("class","ColorCell");b.setAttribute("tabIndex",-1);b.setAttribute("role","gridcell");b.on("keydown",z);b.on("click",u);b.on("focus",v);b.on("blur",q);b.setStyle("background-color",c);b.setStyle("border","1px solid "+c);b.setStyle("width","14px");b.setStyle("height","14px");var d=m("color_table_cell");
10
10
  b.setAttribute("aria-labelledby",d);b.append(CKEDITOR.dom.element.createFromHtml('<span id="'+d+'" class="cke_voice_label">'+c+"</span>",CKEDITOR.document))}i=CKEDITOR.dom.element.createFromHtml('<table tabIndex="-1" aria-label="'+h.options+'" role="grid" style="border-collapse:separate;" cellspacing="0"><caption class="cke_voice_label">'+h.options+'</caption><tbody role="presentation"></tbody></table>');i.on("mouseover",v);i.on("mouseout",q);var c="00 33 66 99 cc ff".split(" ");a(0,0);a(3,0);a(0,
11
11
  3);a(3,3);var e=new r(i.$.insertRow(-1));e.setAttribute("role","row");for(var d=0;6>d;d++)b(e.$,"#"+c[d]+c[d]+c[d]);for(d=0;12>d;d++)b(e.$,"#000000")})();return{title:h.title,minWidth:360,minHeight:220,onLoad:function(){p=this},onHide:function(){n();var a=g.getChild(0).getHtml();g.setStyle("border-color",a);g.setStyle("border-style","solid");f.getById(k).removeStyle("background-color");f.getById(l).setHtml("&nbsp;");g=null},contents:[{id:"picker",label:h.title,accessKey:"I",elements:[{type:"hbox",
12
- padding:0,widths:["70%","10%","30%"],children:[{type:"html",html:"<div></div>",onLoad:function(){CKEDITOR.document.getById(this.domId).append(i)},focus:function(){(g||this.getElement().getElementsByTag("td").getItem(0)).focus()}},x,{type:"vbox",padding:0,widths:["70%","5%","25%"],children:[{type:"html",html:"<span>"+h.highlight+'</span>\t\t\t\t\t\t\t\t\t\t\t\t<div id="'+k+'" style="border: 1px solid; height: 74px; width: 74px;"></div>\t\t\t\t\t\t\t\t\t\t\t\t<div id="'+l+'">&nbsp;</div><span>'+h.selected+
13
- '</span>\t\t\t\t\t\t\t\t\t\t\t\t<div id="'+o+'" style="border: 1px solid; height: 20px; width: 74px;"></div>'},{type:"text",label:h.selected,labelStyle:"display:none",id:"selectedColor",style:"width: 76px;margin-top:4px",onChange:function(){try{f.getById(o).setStyle("background-color",this.getValue())}catch(a){n()}}},x,{type:"button",id:"clear",label:h.clear,onClick:n}]}]}]}]}});
12
+ padding:0,widths:["70%","10%","30%"],children:[{type:"html",html:"<div></div>",onLoad:function(){CKEDITOR.document.getById(this.domId).append(i)},focus:function(){(g||this.getElement().getElementsByTag("td").getItem(0)).focus()}},x,{type:"vbox",padding:0,widths:["70%","5%","25%"],children:[{type:"html",html:"<span>"+h.highlight+'</span><div id="'+k+'" style="border: 1px solid; height: 74px; width: 74px;"></div><div id="'+l+'">&nbsp;</div><span>'+h.selected+'</span><div id="'+o+'" style="border: 1px solid; height: 20px; width: 74px;"></div>'},
13
+ {type:"text",label:h.selected,labelStyle:"display:none",id:"selectedColor",style:"width: 76px;margin-top:4px",onChange:function(){try{f.getById(o).setStyle("background-color",this.getValue())}catch(a){n()}}},x,{type:"button",id:"clear",label:h.clear,onClick:n}]}]}]}]}});
@@ -1,4 +1,4 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
@@ -1,4 +1,4 @@
1
- (function(){function p(a,k,o){if(!k.is||!k.getCustomData("block_processed"))k.is&&CKEDITOR.dom.element.setMarker(o,k,"block_processed",!0),a.push(k)}function n(a,k){function o(){this.foreach(function(a){if(/^(?!vbox|hbox)/.test(a.type)&&(a.setup||(a.setup=function(c){a.setValue(c.getAttribute(a.id)||"",1)}),!a.commit))a.commit=function(c){var g=this.getValue();"dir"==a.id&&c.getComputedStyle("direction")==g||(g?c.setAttribute(a.id,g):c.removeAttribute(a.id))}})}var n=function(){var f=CKEDITOR.tools.extend({},
1
+ (function(){function p(a,k,o){if(!k.is||!k.getCustomData("block_processed"))k.is&&CKEDITOR.dom.element.setMarker(o,k,"block_processed",!0),a.push(k)}function n(a,k){function o(){this.foreach(function(a){if(/^(?!vbox|hbox)/.test(a.type)&&(a.setup||(a.setup=function(c){a.setValue(c.getAttribute(a.id)||"",1)}),!a.commit))a.commit=function(c){var g=this.getValue();a.id=="dir"&&c.getComputedStyle("direction")==g||(g?c.setAttribute(a.id,g):c.removeAttribute(a.id))}})}var n=function(){var f=CKEDITOR.tools.extend({},
2
2
  CKEDITOR.dtd.$blockLimit);a.config.div_wrapTable&&(delete f.td,delete f.th);return f}(),q=CKEDITOR.dtd.div,l={},m=[];return{title:a.lang.div.title,minWidth:400,minHeight:165,contents:[{id:"info",label:a.lang.common.generalTab,title:a.lang.common.generalTab,elements:[{type:"hbox",widths:["50%","50%"],children:[{id:"elementStyle",type:"select",style:"width: 100%;",label:a.lang.div.styleSelectLabel,"default":"",items:[[a.lang.common.notSet,""]],onChange:function(){var f=["info:elementStyle","info:class",
3
3
  "advanced:dir","advanced:style"],c=this.getDialog(),g=c._element&&c._element.clone()||new CKEDITOR.dom.element("div",a.document);this.commit(g,!0);for(var f=[].concat(f),b=f.length,i,e=0;e<b;e++)(i=c.getContentElement.apply(c,f[e].split(":")))&&i.setup&&i.setup(g,!0)},setup:function(f){for(var c in l)l[c].checkElementRemovable(f,!0,a)&&this.setValue(c,1)},commit:function(f){var c;(c=this.getValue())?l[c].applyToObject(f,a):f.removeAttribute("style")}},{id:"class",type:"text",requiredContent:"div(cke-xyz)",
4
4
  label:a.lang.common.cssClass,"default":""}]}]},{id:"advanced",label:a.lang.common.advancedTab,title:a.lang.common.advancedTab,elements:[{type:"vbox",padding:1,children:[{type:"hbox",widths:["50%","50%"],children:[{type:"text",id:"id",requiredContent:"div[id]",label:a.lang.common.id,"default":""},{type:"text",id:"lang",requiredContent:"div[lang]",label:a.lang.common.langCode,"default":""}]},{type:"hbox",children:[{type:"text",id:"style",requiredContent:"div{cke-xyz}",style:"width: 100%;",label:a.lang.common.cssStyle,
@@ -1,24 +1,24 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
- (function(){function y(c){return c.type==CKEDITOR.NODE_TEXT&&0<c.getLength()&&(!o||!c.isReadOnly())}function s(c){return!(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary(CKEDITOR.tools.extend({},CKEDITOR.dtd.$empty,CKEDITOR.dtd.$nonEditable)))}var o,t=function(){return{textNode:this.textNode,offset:this.offset,character:this.textNode?this.textNode.getText().charAt(this.offset):null,hitMatchBoundary:this._.matchBoundary}},u=["find","replace"],p=[["txtFindFind","txtFindReplace"],["txtFindCaseChk",
6
- "txtReplaceCaseChk"],["txtFindWordChk","txtReplaceWordChk"],["txtFindCyclic","txtReplaceCyclic"]],n=function(c,g){function n(a,b){var d=c.createRange();d.setStart(a.textNode,b?a.offset:a.offset+1);d.setEndAt(c.editable(),CKEDITOR.POSITION_BEFORE_END);return d}function q(a){var b=c.getSelection(),d=c.editable();b&&!a?(a=b.getRanges()[0].clone(),a.collapse(!0)):(a=c.createRange(),a.setStartAt(d,CKEDITOR.POSITION_AFTER_START));a.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);return a}var v=new CKEDITOR.style(CKEDITOR.tools.extend({attributes:{"data-cke-highlight":1},
7
- fullMatch:1,ignoreReadonly:1,childRule:function(){return 0}},c.config.find_highlight,!0)),l=function(a,b){var d=this,c=new CKEDITOR.dom.walker(a);c.guard=b?s:function(a){!s(a)&&(d._.matchBoundary=!0)};c.evaluator=y;c.breakOnFalse=1;a.startContainer.type==CKEDITOR.NODE_TEXT&&(this.textNode=a.startContainer,this.offset=a.startOffset-1);this._={matchWord:b,walker:c,matchBoundary:!1}};l.prototype={next:function(){return this.move()},back:function(){return this.move(!0)},move:function(a){var b=this.textNode;
8
- if(null===b)return t.call(this);this._.matchBoundary=!1;if(b&&a&&0<this.offset)this.offset--;else if(b&&this.offset<b.getLength()-1)this.offset++;else{for(b=null;!b&&!(b=this._.walker[a?"previous":"next"].call(this._.walker),this._.matchWord&&!b||this._.walker._.end););this.offset=(this.textNode=b)?a?b.getLength()-1:0:0}return t.call(this)}};var r=function(a,b){this._={walker:a,cursors:[],rangeLength:b,highlightRange:null,isMatched:0}};r.prototype={toDomRange:function(){var a=c.createRange(),b=this._.cursors;
9
- if(1>b.length){var d=this._.walker.textNode;if(d)a.setStartAfter(d);else return null}else d=b[0],b=b[b.length-1],a.setStart(d.textNode,d.offset),a.setEnd(b.textNode,b.offset+1);return a},updateFromDomRange:function(a){var b=new l(a);this._.cursors=[];do a=b.next(),a.character&&this._.cursors.push(a);while(a.character);this._.rangeLength=this._.cursors.length},setMatched:function(){this._.isMatched=!0},clearMatched:function(){this._.isMatched=!1},isMatched:function(){return this._.isMatched},highlight:function(){if(!(1>
10
- this._.cursors.length)){this._.highlightRange&&this.removeHighlight();var a=this.toDomRange(),b=a.createBookmark();v.applyToRange(a,c);a.moveToBookmark(b);this._.highlightRange=a;b=a.startContainer;b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent());b.scrollIntoView();this.updateFromDomRange(a)}},removeHighlight:function(){if(this._.highlightRange){var a=this._.highlightRange.createBookmark();v.removeFromRange(this._.highlightRange,c);this._.highlightRange.moveToBookmark(a);this.updateFromDomRange(this._.highlightRange);
11
- this._.highlightRange=null}},isReadOnly:function(){return!this._.highlightRange?0:this._.highlightRange.startContainer.isReadOnly()},moveBack:function(){var a=this._.walker.back(),b=this._.cursors;a.hitMatchBoundary&&(this._.cursors=b=[]);b.unshift(a);b.length>this._.rangeLength&&b.pop();return a},moveNext:function(){var a=this._.walker.next(),b=this._.cursors;a.hitMatchBoundary&&(this._.cursors=b=[]);b.push(a);b.length>this._.rangeLength&&b.shift();return a},getEndCharacter:function(){var a=this._.cursors;
12
- return 1>a.length?null:a[a.length-1].character},getNextCharacterRange:function(a){var b,d;d=this._.cursors;d=(b=d[d.length-1])&&b.textNode?new l(n(b)):this._.walker;return new r(d,a)},getCursors:function(){return this._.cursors}};var w=function(a,b){var d=[-1];b&&(a=a.toLowerCase());for(var c=0;c<a.length;c++)for(d.push(d[c]+1);0<d[c+1]&&a.charAt(c)!=a.charAt(d[c+1]-1);)d[c+1]=d[d[c+1]-1]+1;this._={overlap:d,state:0,ignoreCase:!!b,pattern:a}};w.prototype={feedCharacter:function(a){for(this._.ignoreCase&&
13
- (a=a.toLowerCase());;){if(a==this._.pattern.charAt(this._.state))return this._.state++,this._.state==this._.pattern.length?(this._.state=0,2):1;if(this._.state)this._.state=this._.overlap[this._.state];else return 0}return null},reset:function(){this._.state=0}};var z=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,x=function(a){if(!a)return!0;var b=a.charCodeAt(0);return 9<=b&&13>=b||8192<=b&&8202>=b||z.test(a)},e={searchRange:null,matchRange:null,find:function(a,b,d,f,e,A){this.matchRange?
14
- (this.matchRange.removeHighlight(),this.matchRange=this.matchRange.getNextCharacterRange(a.length)):this.matchRange=new r(new l(this.searchRange),a.length);for(var i=new w(a,!b),j=0,k="%";null!==k;){for(this.matchRange.moveNext();k=this.matchRange.getEndCharacter();){j=i.feedCharacter(k);if(2==j)break;this.matchRange.moveNext().hitMatchBoundary&&i.reset()}if(2==j){if(d){var h=this.matchRange.getCursors(),m=h[h.length-1],h=h[0],g=c.createRange();g.setStartAt(c.editable(),CKEDITOR.POSITION_AFTER_START);
15
- g.setEnd(h.textNode,h.offset);h=g;m=n(m);h.trim();m.trim();h=new l(h,!0);m=new l(m,!0);if(!x(h.back().character)||!x(m.next().character))continue}this.matchRange.setMatched();!1!==e&&this.matchRange.highlight();return!0}}this.matchRange.clearMatched();this.matchRange.removeHighlight();return f&&!A?(this.searchRange=q(1),this.matchRange=null,arguments.callee.apply(this,Array.prototype.slice.call(arguments).concat([!0]))):!1},replaceCounter:0,replace:function(a,b,d,f,e,g,i){o=1;a=0;if(this.matchRange&&
16
- this.matchRange.isMatched()&&!this.matchRange._.isReplaced&&!this.matchRange.isReadOnly()){this.matchRange.removeHighlight();b=this.matchRange.toDomRange();d=c.document.createText(d);if(!i){var j=c.getSelection();j.selectRanges([b]);c.fire("saveSnapshot")}b.deleteContents();b.insertNode(d);i||(j.selectRanges([b]),c.fire("saveSnapshot"));this.matchRange.updateFromDomRange(b);i||this.matchRange.highlight();this.matchRange._.isReplaced=!0;this.replaceCounter++;a=1}else a=this.find(b,f,e,g,!i);o=0;return a}},
17
- f=c.lang.find;return{title:f.title,resizable:CKEDITOR.DIALOG_RESIZE_NONE,minWidth:350,minHeight:170,buttons:[CKEDITOR.dialog.cancelButton(c,{label:c.lang.common.close})],contents:[{id:"find",label:f.find,title:f.find,accessKey:"",elements:[{type:"hbox",widths:["230px","90px"],children:[{type:"text",id:"txtFindFind",label:f.findWhat,isChanged:!1,labelLayout:"horizontal",accessKey:"F"},{type:"button",id:"btnFind",align:"left",style:"width:100%",label:f.find,onClick:function(){var a=this.getDialog();
18
- e.find(a.getValueOf("find","txtFindFind"),a.getValueOf("find","txtFindCaseChk"),a.getValueOf("find","txtFindWordChk"),a.getValueOf("find","txtFindCyclic"))||alert(f.notFoundMsg)}}]},{type:"fieldset",label:CKEDITOR.tools.htmlEncode(f.findOptions),style:"margin-top:29px",children:[{type:"vbox",padding:0,children:[{type:"checkbox",id:"txtFindCaseChk",isChanged:!1,label:f.matchCase},{type:"checkbox",id:"txtFindWordChk",isChanged:!1,label:f.matchWord},{type:"checkbox",id:"txtFindCyclic",isChanged:!1,"default":!0,
19
- label:f.matchCyclic}]}]}]},{id:"replace",label:f.replace,accessKey:"M",elements:[{type:"hbox",widths:["230px","90px"],children:[{type:"text",id:"txtFindReplace",label:f.findWhat,isChanged:!1,labelLayout:"horizontal",accessKey:"F"},{type:"button",id:"btnFindReplace",align:"left",style:"width:100%",label:f.replace,onClick:function(){var a=this.getDialog();e.replace(a,a.getValueOf("replace","txtFindReplace"),a.getValueOf("replace","txtReplace"),a.getValueOf("replace","txtReplaceCaseChk"),a.getValueOf("replace",
20
- "txtReplaceWordChk"),a.getValueOf("replace","txtReplaceCyclic"))||alert(f.notFoundMsg)}}]},{type:"hbox",widths:["230px","90px"],children:[{type:"text",id:"txtReplace",label:f.replaceWith,isChanged:!1,labelLayout:"horizontal",accessKey:"R"},{type:"button",id:"btnReplaceAll",align:"left",style:"width:100%",label:f.replaceAll,isChanged:!1,onClick:function(){var a=this.getDialog();e.replaceCounter=0;e.searchRange=q(1);e.matchRange&&(e.matchRange.removeHighlight(),e.matchRange=null);for(c.fire("saveSnapshot");e.replace(a,
21
- a.getValueOf("replace","txtFindReplace"),a.getValueOf("replace","txtReplace"),a.getValueOf("replace","txtReplaceCaseChk"),a.getValueOf("replace","txtReplaceWordChk"),!1,!0););e.replaceCounter?(alert(f.replaceSuccessMsg.replace(/%1/,e.replaceCounter)),c.fire("saveSnapshot")):alert(f.notFoundMsg)}}]},{type:"fieldset",label:CKEDITOR.tools.htmlEncode(f.findOptions),children:[{type:"vbox",padding:0,children:[{type:"checkbox",id:"txtReplaceCaseChk",isChanged:!1,label:f.matchCase},{type:"checkbox",id:"txtReplaceWordChk",
22
- isChanged:!1,label:f.matchWord},{type:"checkbox",id:"txtReplaceCyclic",isChanged:!1,"default":!0,label:f.matchCyclic}]}]}]}],onLoad:function(){var a=this,b,c=0;this.on("hide",function(){c=0});this.on("show",function(){c=1});this.selectPage=CKEDITOR.tools.override(this.selectPage,function(f){return function(e){f.call(a,e);var g=a._.tabs[e],i;i="find"===e?"txtFindWordChk":"txtReplaceWordChk";b=a.getContentElement(e,"find"===e?"txtFindFind":"txtFindReplace");a.getContentElement(e,i);g.initialized||(CKEDITOR.document.getById(b._.inputId),
23
- g.initialized=!0);if(c){var j,e="find"===e?1:0,g=1-e,k,h=p.length;for(k=0;k<h;k++)i=this.getContentElement(u[e],p[k][e]),j=this.getContentElement(u[g],p[k][g]),j.setValue(i.getValue())}}})},onShow:function(){e.searchRange=q();var a=this.getParentEditor().getSelection().getSelectedText(),b=this.getContentElement(g,"find"==g?"txtFindFind":"txtFindReplace");b.setValue(a);b.select();this.selectPage(g);this[("find"==g&&this._.editor.readOnly?"hide":"show")+"Page"]("replace")},onHide:function(){var a;e.matchRange&&
24
- e.matchRange.isMatched()&&(e.matchRange.removeHighlight(),c.focus(),(a=e.matchRange.toDomRange())&&c.getSelection().selectRanges([a]));delete e.matchRange},onFocus:function(){return"replace"==g?this.getContentElement("replace","txtFindReplace"):this.getContentElement("find","txtFindFind")}}};CKEDITOR.dialog.add("find",function(c){return n(c,"find")});CKEDITOR.dialog.add("replace",function(c){return n(c,"replace")})})();
5
+ (function(){function y(c){return c.type==CKEDITOR.NODE_TEXT&&0<c.getLength()&&(!o||!c.isReadOnly())}function s(c){return!(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary(CKEDITOR.tools.extend({},CKEDITOR.dtd.$empty,CKEDITOR.dtd.$nonEditable)))}function n(c,g){function l(a,b){var d=this,c=new CKEDITOR.dom.walker(a);c.guard=b?s:function(a){!s(a)&&(d._.matchBoundary=!0)};c.evaluator=y;c.breakOnFalse=1;a.startContainer.type==CKEDITOR.NODE_TEXT&&(this.textNode=a.startContainer,this.offset=a.startOffset-
6
+ 1);this._={matchWord:b,walker:c,matchBoundary:!1}}function n(a,b){var d=c.createRange();d.setStart(a.textNode,b?a.offset:a.offset+1);d.setEndAt(c.editable(),CKEDITOR.POSITION_BEFORE_END);return d}function p(a){var b=c.getSelection(),d=c.editable();b&&!a?(a=b.getRanges()[0].clone(),a.collapse(!0)):(a=c.createRange(),a.setStartAt(d,CKEDITOR.POSITION_AFTER_START));a.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);return a}var t=new CKEDITOR.style(CKEDITOR.tools.extend({attributes:{"data-cke-highlight":1},fullMatch:1,
7
+ ignoreReadonly:1,childRule:function(){return 0}},c.config.find_highlight,!0));l.prototype={next:function(){return this.move()},back:function(){return this.move(!0)},move:function(a){var b=this.textNode;if(null===b)return u.call(this);this._.matchBoundary=!1;if(b&&a&&0<this.offset)this.offset--;else if(b&&this.offset<b.getLength()-1)this.offset++;else{for(b=null;!b&&!(b=this._.walker[a?"previous":"next"].call(this._.walker),this._.matchWord&&!b||this._.walker._.end););this.offset=(this.textNode=b)?
8
+ a?b.getLength()-1:0:0}return u.call(this)}};var q=function(a,b){this._={walker:a,cursors:[],rangeLength:b,highlightRange:null,isMatched:0}};q.prototype={toDomRange:function(){var a=c.createRange(),b=this._.cursors;if(1>b.length){var d=this._.walker.textNode;if(d)a.setStartAfter(d);else return null}else d=b[0],b=b[b.length-1],a.setStart(d.textNode,d.offset),a.setEnd(b.textNode,b.offset+1);return a},updateFromDomRange:function(a){var b=new l(a);this._.cursors=[];do a=b.next(),a.character&&this._.cursors.push(a);
9
+ while(a.character);this._.rangeLength=this._.cursors.length},setMatched:function(){this._.isMatched=!0},clearMatched:function(){this._.isMatched=!1},isMatched:function(){return this._.isMatched},highlight:function(){if(!(1>this._.cursors.length)){this._.highlightRange&&this.removeHighlight();var a=this.toDomRange(),b=a.createBookmark();t.applyToRange(a,c);a.moveToBookmark(b);this._.highlightRange=a;b=a.startContainer;b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent());b.scrollIntoView();this.updateFromDomRange(a)}},
10
+ removeHighlight:function(){if(this._.highlightRange){var a=this._.highlightRange.createBookmark();t.removeFromRange(this._.highlightRange,c);this._.highlightRange.moveToBookmark(a);this.updateFromDomRange(this._.highlightRange);this._.highlightRange=null}},isReadOnly:function(){return!this._.highlightRange?0:this._.highlightRange.startContainer.isReadOnly()},moveBack:function(){var a=this._.walker.back(),b=this._.cursors;a.hitMatchBoundary&&(this._.cursors=b=[]);b.unshift(a);b.length>this._.rangeLength&&
11
+ b.pop();return a},moveNext:function(){var a=this._.walker.next(),b=this._.cursors;a.hitMatchBoundary&&(this._.cursors=b=[]);b.push(a);b.length>this._.rangeLength&&b.shift();return a},getEndCharacter:function(){var a=this._.cursors;return 1>a.length?null:a[a.length-1].character},getNextCharacterRange:function(a){var b,d;d=this._.cursors;d=(b=d[d.length-1])&&b.textNode?new l(n(b)):this._.walker;return new q(d,a)},getCursors:function(){return this._.cursors}};var v=function(a,b){var d=[-1];b&&(a=a.toLowerCase());
12
+ for(var c=0;c<a.length;c++)for(d.push(d[c]+1);0<d[c+1]&&a.charAt(c)!=a.charAt(d[c+1]-1);)d[c+1]=d[d[c+1]-1]+1;this._={overlap:d,state:0,ignoreCase:!!b,pattern:a}};v.prototype={feedCharacter:function(a){for(this._.ignoreCase&&(a=a.toLowerCase());;){if(a==this._.pattern.charAt(this._.state))return this._.state++,this._.state==this._.pattern.length?(this._.state=0,2):1;if(this._.state)this._.state=this._.overlap[this._.state];else return 0}return null},reset:function(){this._.state=0}};var z=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,
13
+ w=function(a){if(!a)return!0;var b=a.charCodeAt(0);return 9<=b&&13>=b||8192<=b&&8202>=b||z.test(a)},e={searchRange:null,matchRange:null,find:function(a,b,d,f,e,A){this.matchRange?(this.matchRange.removeHighlight(),this.matchRange=this.matchRange.getNextCharacterRange(a.length)):this.matchRange=new q(new l(this.searchRange),a.length);for(var i=new v(a,!b),j=0,k="%";null!==k;){for(this.matchRange.moveNext();k=this.matchRange.getEndCharacter();){j=i.feedCharacter(k);if(2==j)break;this.matchRange.moveNext().hitMatchBoundary&&
14
+ i.reset()}if(2==j){if(d){var h=this.matchRange.getCursors(),m=h[h.length-1],h=h[0],g=c.createRange();g.setStartAt(c.editable(),CKEDITOR.POSITION_AFTER_START);g.setEnd(h.textNode,h.offset);h=g;m=n(m);h.trim();m.trim();h=new l(h,!0);m=new l(m,!0);if(!w(h.back().character)||!w(m.next().character))continue}this.matchRange.setMatched();!1!==e&&this.matchRange.highlight();return!0}}this.matchRange.clearMatched();this.matchRange.removeHighlight();return f&&!A?(this.searchRange=p(1),this.matchRange=null,
15
+ arguments.callee.apply(this,Array.prototype.slice.call(arguments).concat([!0]))):!1},replaceCounter:0,replace:function(a,b,d,f,e,g,i){o=1;a=0;if(this.matchRange&&this.matchRange.isMatched()&&!this.matchRange._.isReplaced&&!this.matchRange.isReadOnly()){this.matchRange.removeHighlight();b=this.matchRange.toDomRange();d=c.document.createText(d);if(!i){var j=c.getSelection();j.selectRanges([b]);c.fire("saveSnapshot")}b.deleteContents();b.insertNode(d);i||(j.selectRanges([b]),c.fire("saveSnapshot"));
16
+ this.matchRange.updateFromDomRange(b);i||this.matchRange.highlight();this.matchRange._.isReplaced=!0;this.replaceCounter++;a=1}else a=this.find(b,f,e,g,!i);o=0;return a}},f=c.lang.find;return{title:f.title,resizable:CKEDITOR.DIALOG_RESIZE_NONE,minWidth:350,minHeight:170,buttons:[CKEDITOR.dialog.cancelButton(c,{label:c.lang.common.close})],contents:[{id:"find",label:f.find,title:f.find,accessKey:"",elements:[{type:"hbox",widths:["230px","90px"],children:[{type:"text",id:"txtFindFind",label:f.findWhat,
17
+ isChanged:!1,labelLayout:"horizontal",accessKey:"F"},{type:"button",id:"btnFind",align:"left",style:"width:100%",label:f.find,onClick:function(){var a=this.getDialog();e.find(a.getValueOf("find","txtFindFind"),a.getValueOf("find","txtFindCaseChk"),a.getValueOf("find","txtFindWordChk"),a.getValueOf("find","txtFindCyclic"))||alert(f.notFoundMsg)}}]},{type:"fieldset",label:CKEDITOR.tools.htmlEncode(f.findOptions),style:"margin-top:29px",children:[{type:"vbox",padding:0,children:[{type:"checkbox",id:"txtFindCaseChk",
18
+ isChanged:!1,label:f.matchCase},{type:"checkbox",id:"txtFindWordChk",isChanged:!1,label:f.matchWord},{type:"checkbox",id:"txtFindCyclic",isChanged:!1,"default":!0,label:f.matchCyclic}]}]}]},{id:"replace",label:f.replace,accessKey:"M",elements:[{type:"hbox",widths:["230px","90px"],children:[{type:"text",id:"txtFindReplace",label:f.findWhat,isChanged:!1,labelLayout:"horizontal",accessKey:"F"},{type:"button",id:"btnFindReplace",align:"left",style:"width:100%",label:f.replace,onClick:function(){var a=
19
+ this.getDialog();e.replace(a,a.getValueOf("replace","txtFindReplace"),a.getValueOf("replace","txtReplace"),a.getValueOf("replace","txtReplaceCaseChk"),a.getValueOf("replace","txtReplaceWordChk"),a.getValueOf("replace","txtReplaceCyclic"))||alert(f.notFoundMsg)}}]},{type:"hbox",widths:["230px","90px"],children:[{type:"text",id:"txtReplace",label:f.replaceWith,isChanged:!1,labelLayout:"horizontal",accessKey:"R"},{type:"button",id:"btnReplaceAll",align:"left",style:"width:100%",label:f.replaceAll,isChanged:!1,
20
+ onClick:function(){var a=this.getDialog();e.replaceCounter=0;e.searchRange=p(1);e.matchRange&&(e.matchRange.removeHighlight(),e.matchRange=null);for(c.fire("saveSnapshot");e.replace(a,a.getValueOf("replace","txtFindReplace"),a.getValueOf("replace","txtReplace"),a.getValueOf("replace","txtReplaceCaseChk"),a.getValueOf("replace","txtReplaceWordChk"),!1,!0););e.replaceCounter?(alert(f.replaceSuccessMsg.replace(/%1/,e.replaceCounter)),c.fire("saveSnapshot")):alert(f.notFoundMsg)}}]},{type:"fieldset",
21
+ label:CKEDITOR.tools.htmlEncode(f.findOptions),children:[{type:"vbox",padding:0,children:[{type:"checkbox",id:"txtReplaceCaseChk",isChanged:!1,label:f.matchCase},{type:"checkbox",id:"txtReplaceWordChk",isChanged:!1,label:f.matchWord},{type:"checkbox",id:"txtReplaceCyclic",isChanged:!1,"default":!0,label:f.matchCyclic}]}]}]}],onLoad:function(){var a=this,b,c=0;this.on("hide",function(){c=0});this.on("show",function(){c=1});this.selectPage=CKEDITOR.tools.override(this.selectPage,function(f){return function(e){f.call(a,
22
+ e);var g=a._.tabs[e],i;i="find"===e?"txtFindWordChk":"txtReplaceWordChk";b=a.getContentElement(e,"find"===e?"txtFindFind":"txtFindReplace");a.getContentElement(e,i);g.initialized||(CKEDITOR.document.getById(b._.inputId),g.initialized=!0);if(c){var j,e="find"===e?1:0,g=1-e,k,h=r.length;for(k=0;k<h;k++)i=this.getContentElement(x[e],r[k][e]),j=this.getContentElement(x[g],r[k][g]),j.setValue(i.getValue())}}})},onShow:function(){e.searchRange=p();var a=this.getParentEditor().getSelection().getSelectedText(),
23
+ b=this.getContentElement(g,"find"==g?"txtFindFind":"txtFindReplace");b.setValue(a);b.select();this.selectPage(g);this[("find"==g&&this._.editor.readOnly?"hide":"show")+"Page"]("replace")},onHide:function(){var a;e.matchRange&&e.matchRange.isMatched()&&(e.matchRange.removeHighlight(),c.focus(),(a=e.matchRange.toDomRange())&&c.getSelection().selectRanges([a]));delete e.matchRange},onFocus:function(){return"replace"==g?this.getContentElement("replace","txtFindReplace"):this.getContentElement("find",
24
+ "txtFindFind")}}}var o,u=function(){return{textNode:this.textNode,offset:this.offset,character:this.textNode?this.textNode.getText().charAt(this.offset):null,hitMatchBoundary:this._.matchBoundary}},x=["find","replace"],r=[["txtFindFind","txtFindReplace"],["txtFindCaseChk","txtReplaceCaseChk"],["txtFindWordChk","txtReplaceWordChk"],["txtFindCyclic","txtReplaceCyclic"]];CKEDITOR.dialog.add("find",function(c){return n(c,"find")});CKEDITOR.dialog.add("replace",function(c){return n(c,"replace")})})();
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  (function(){function b(a,b,c){var k=n[this.id];if(k)for(var f=this instanceof CKEDITOR.ui.dialog.checkbox,e=0;e<k.length;e++){var d=k[e];switch(d.type){case g: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 o: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 i:if(!b)continue;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("button",function(b){function d(a){var b=this.getValue();b?(a.attributes[this.id]=b,"name"==this.id&&(a.attributes["data-cke-saved-name"]=b)):(delete a.attributes[this.id],"name"==this.id&&delete a.attributes["data-cke-saved-name"])}return{title:b.lang.forms.button.title,minWidth:350,minHeight:150,onShow:function(){delete this.button;var a=this.getParentEditor().getSelection().getSelectedElement();a&&a.is("input")&&a.getAttribute("type")in{button:1,reset:1,submit:1}&&(this.button=
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("checkbox",function(d){return{title:d.lang.forms.checkboxAndRadio.checkboxTitle,minWidth:350,minHeight:140,onShow:function(){delete this.checkbox;var a=this.getParentEditor().getSelection().getSelectedElement();a&&"checkbox"==a.getAttribute("type")&&(this.checkbox=a,this.setupContent(a))},onOk:function(){var a,b=this.checkbox;b||(a=this.getParentEditor(),b=a.document.createElement("input"),b.setAttribute("type","checkbox"),a.insertElement(b));this.commitContent({element:b})},contents:[{id:"info",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("form",function(a){var d={action:1,id:1,method:1,enctype:1,target:1};return{title:a.lang.forms.form.title,minWidth:350,minHeight:200,onShow:function(){delete this.form;var b=this.getParentEditor().elementPath().contains("form",1);b&&(this.form=b,this.setupContent(b))},onOk:function(){var b,a=this.form,c=!a;c&&(b=this.getParentEditor(),a=b.document.createElement("form"),a.appendBogus());c&&b.insertElement(a);this.commitContent(a)},onLoad:function(){function a(b){this.setValue(b.getAttribute(this.id)||
@@ -1,8 +1,7 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
- CKEDITOR.dialog.add("hiddenfield",function(d){return{title:d.lang.forms.hidden.title,hiddenField:null,minWidth:350,minHeight:110,onShow:function(){delete this.hiddenField;var a=this.getParentEditor(),b=a.getSelection(),c=b.getSelectedElement();c&&(c.data("cke-real-element-type")&&"hiddenfield"==c.data("cke-real-element-type"))&&(this.hiddenField=c,c=a.restoreRealElement(this.hiddenField),this.setupContent(c),b.selectElement(this.hiddenField))},onOk:function(){var a=this.getValueOf("info","_cke_saved_name");
6
- this.getValueOf("info","value");var b=this.getParentEditor(),a=CKEDITOR.env.ie&&!(8<=CKEDITOR.document.$.documentMode)?b.document.createElement('<input name="'+CKEDITOR.tools.htmlEncode(a)+'">'):b.document.createElement("input");a.setAttribute("type","hidden");this.commitContent(a);a=b.createFakeElement(a,"cke_hidden","hiddenfield");this.hiddenField?(a.replace(this.hiddenField),b.getSelection().selectElement(a)):b.insertElement(a);return!0},contents:[{id:"info",label:d.lang.forms.hidden.title,title:d.lang.forms.hidden.title,
7
- elements:[{id:"_cke_saved_name",type:"text",label:d.lang.forms.hidden.name,"default":"",accessKey:"N",setup:function(a){this.setValue(a.data("cke-saved-name")||a.getAttribute("name")||"")},commit:function(a){this.getValue()?a.setAttribute("name",this.getValue()):a.removeAttribute("name")}},{id:"value",type:"text",label:d.lang.forms.hidden.value,"default":"",accessKey:"V",setup:function(a){this.setValue(a.getAttribute("value")||"")},commit:function(a){this.getValue()?a.setAttribute("value",this.getValue()):
8
- a.removeAttribute("value")}}]}]}});
5
+ CKEDITOR.dialog.add("hiddenfield",function(d){return{title:d.lang.forms.hidden.title,hiddenField:null,minWidth:350,minHeight:110,onShow:function(){delete this.hiddenField;var a=this.getParentEditor(),b=a.getSelection(),c=b.getSelectedElement();c&&(c.data("cke-real-element-type")&&"hiddenfield"==c.data("cke-real-element-type"))&&(this.hiddenField=c,c=a.restoreRealElement(this.hiddenField),this.setupContent(c),b.selectElement(this.hiddenField))},onOk:function(){var a=this.getValueOf("info","_cke_saved_name"),
6
+ b=this.getParentEditor(),a=8>CKEDITOR.document.$.documentMode?'<input name="'+CKEDITOR.tools.htmlEncode(a)+'">':"input",a=CKEDITOR.env.ie&&b.document.createElement(a);a.setAttribute("type","hidden");this.commitContent(a);a=b.createFakeElement(a,"cke_hidden","hiddenfield");this.hiddenField?(a.replace(this.hiddenField),b.getSelection().selectElement(a)):b.insertElement(a);return!0},contents:[{id:"info",label:d.lang.forms.hidden.title,title:d.lang.forms.hidden.title,elements:[{id:"_cke_saved_name",type:"text",
7
+ label:d.lang.forms.hidden.name,"default":"",accessKey:"N",setup:function(a){this.setValue(a.data("cke-saved-name")||a.getAttribute("name")||"")},commit:function(a){this.getValue()?a.setAttribute("name",this.getValue()):a.removeAttribute("name")}},{id:"value",type:"text",label:d.lang.forms.hidden.value,"default":"",accessKey:"V",setup:function(a){this.setValue(a.getAttribute("value")||"")},commit:function(a){this.getValue()?a.setAttribute("value",this.getValue()):a.removeAttribute("value")}}]}]}});
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("radio",function(d){return{title:d.lang.forms.checkboxAndRadio.radioTitle,minWidth:350,minHeight:140,onShow:function(){delete this.radioButton;var a=this.getParentEditor().getSelection().getSelectedElement();a&&("input"==a.getName()&&"radio"==a.getAttribute("type"))&&(this.radioButton=a,this.setupContent(a))},onOk:function(){var a,b=this.radioButton,c=!b;c&&(a=this.getParentEditor(),b=a.document.createElement("input"),b.setAttribute("type","radio"));c&&a.insertElement(b);this.commitContent({element:b})},
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("select",function(c){function h(a,b,e,d,c){a=f(a);d=d?d.createElement("OPTION"):document.createElement("OPTION");if(a&&d&&"option"==d.getName())CKEDITOR.env.ie?(isNaN(parseInt(c,10))?a.$.options.add(d.$):a.$.options.add(d.$,c),d.$.innerHTML=0<b.length?b:"",d.$.value=e):(null!==c&&c<a.getChildCount()?a.getChild(0>c?0:c).insertBeforeMe(d):a.append(d),d.setText(0<b.length?b:""),d.setValue(e));else return!1;return d}function m(a){for(var a=f(a),b=g(a),e=a.getChildren().count()-1;0<=
@@ -12,8 +12,8 @@ return""===this.getValue()||a.apply(this)},setup:function(a,b){"select"==a&&this
12
12
  "115px","100px"],children:[{type:"vbox",children:[{id:"txtOptName",type:"text",label:c.lang.forms.select.opText,style:"width:115px",setup:function(a){"clear"==a&&this.setValue("")}},{type:"select",id:"cmbName",label:"",title:"",size:5,style:"width:115px;height:75px",items:[],onChange:function(){var a=this.getDialog(),b=a.getContentElement("info","cmbValue"),e=a.getContentElement("info","txtOptName"),a=a.getContentElement("info","txtOptValue"),d=g(this);i(b,d);e.setValue(this.getValue());a.setValue(b.getValue())},
13
13
  setup:function(a,b){"clear"==a?k(this):"option"==a&&h(this,b.getText(),b.getText(),this.getDialog().getParentEditor().document)},commit:function(a){var b=this.getDialog(),e=l(this),d=l(b.getContentElement("info","cmbValue")),c=b.getContentElement("info","txtValue").getValue();k(a);for(var f=0;f<e.count();f++){var g=h(a,e.getItem(f).getValue(),d.getItem(f).getValue(),b.getParentEditor().document);d.getItem(f).getValue()==c&&(g.setAttribute("selected","selected"),g.selected=!0)}}}]},{type:"vbox",children:[{id:"txtOptValue",
14
14
  type:"text",label:c.lang.forms.select.opValue,style:"width:115px",setup:function(a){"clear"==a&&this.setValue("")}},{type:"select",id:"cmbValue",label:"",size:5,style:"width:115px;height:75px",items:[],onChange:function(){var a=this.getDialog(),b=a.getContentElement("info","cmbName"),e=a.getContentElement("info","txtOptName"),a=a.getContentElement("info","txtOptValue"),d=g(this);i(b,d);e.setValue(b.getValue());a.setValue(this.getValue())},setup:function(a,b){if("clear"==a)k(this);else if("option"==
15
- a){var e=b.getValue();h(this,e,e,this.getDialog().getParentEditor().document);"selected"==b.getAttribute("selected")&&this.getDialog().getContentElement("info","txtValue").setValue(e)}}}]},{type:"vbox",padding:5,children:[{type:"button",id:"btnAdd",style:"",label:c.lang.forms.select.btnAdd,title:c.lang.forms.select.btnAdd,style:"width:100%;",onClick:function(){var a=this.getDialog();a.getParentEditor();var b=a.getContentElement("info","txtOptName"),e=a.getContentElement("info","txtOptValue"),d=a.getContentElement("info",
16
- "cmbName"),c=a.getContentElement("info","cmbValue");h(d,b.getValue(),b.getValue(),a.getParentEditor().document);h(c,e.getValue(),e.getValue(),a.getParentEditor().document);b.setValue("");e.setValue("")}},{type:"button",id:"btnModify",label:c.lang.forms.select.btnModify,title:c.lang.forms.select.btnModify,style:"width:100%;",onClick:function(){var a=this.getDialog(),b=a.getContentElement("info","txtOptName"),e=a.getContentElement("info","txtOptValue"),d=a.getContentElement("info","cmbName"),a=a.getContentElement("info",
15
+ a){var e=b.getValue();h(this,e,e,this.getDialog().getParentEditor().document);"selected"==b.getAttribute("selected")&&this.getDialog().getContentElement("info","txtValue").setValue(e)}}}]},{type:"vbox",padding:5,children:[{type:"button",id:"btnAdd",label:c.lang.forms.select.btnAdd,title:c.lang.forms.select.btnAdd,style:"width:100%;",onClick:function(){var a=this.getDialog(),b=a.getContentElement("info","txtOptName"),e=a.getContentElement("info","txtOptValue"),d=a.getContentElement("info","cmbName"),
16
+ c=a.getContentElement("info","cmbValue");h(d,b.getValue(),b.getValue(),a.getParentEditor().document);h(c,e.getValue(),e.getValue(),a.getParentEditor().document);b.setValue("");e.setValue("")}},{type:"button",id:"btnModify",label:c.lang.forms.select.btnModify,title:c.lang.forms.select.btnModify,style:"width:100%;",onClick:function(){var a=this.getDialog(),b=a.getContentElement("info","txtOptName"),e=a.getContentElement("info","txtOptValue"),d=a.getContentElement("info","cmbName"),a=a.getContentElement("info",
17
17
  "cmbValue"),c=g(d);0<=c&&(n(d,c,b.getValue(),b.getValue()),n(a,c,e.getValue(),e.getValue()))}},{type:"button",id:"btnUp",style:"width:100%;",label:c.lang.forms.select.btnUp,title:c.lang.forms.select.btnUp,onClick:function(){var a=this.getDialog(),b=a.getContentElement("info","cmbName"),c=a.getContentElement("info","cmbValue");j(b,-1,a.getParentEditor().document);j(c,-1,a.getParentEditor().document)}},{type:"button",id:"btnDown",style:"width:100%;",label:c.lang.forms.select.btnDown,title:c.lang.forms.select.btnDown,
18
18
  onClick:function(){var a=this.getDialog(),b=a.getContentElement("info","cmbName"),c=a.getContentElement("info","cmbValue");j(b,1,a.getParentEditor().document);j(c,1,a.getParentEditor().document)}}]}]},{type:"hbox",widths:["40%","20%","40%"],children:[{type:"button",id:"btnSetValue",label:c.lang.forms.select.btnSetValue,title:c.lang.forms.select.btnSetValue,onClick:function(){var a=this.getDialog(),b=a.getContentElement("info","cmbValue");a.getContentElement("info","txtValue").setValue(b.getValue())}},
19
19
  {type:"button",id:"btnDelete",label:c.lang.forms.select.btnDelete,title:c.lang.forms.select.btnDelete,onClick:function(){var a=this.getDialog(),b=a.getContentElement("info","cmbName"),c=a.getContentElement("info","cmbValue"),d=a.getContentElement("info","txtOptName"),a=a.getContentElement("info","txtOptValue");m(b);m(c);d.setValue("");a.setValue("")}},{id:"chkMulti",type:"checkbox",label:c.lang.forms.select.chkMulti,"default":"",accessKey:"M",value:"checked",setup:function(a,b){"select"==a&&this.setValue(b.getAttribute("multiple"));
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("textarea",function(b){return{title:b.lang.forms.textarea.title,minWidth:350,minHeight:220,onShow:function(){delete this.textarea;var a=this.getParentEditor().getSelection().getSelectedElement();a&&"textarea"==a.getName()&&(this.textarea=a,this.setupContent(a))},onOk:function(){var a,b=this.textarea,c=!b;c&&(a=this.getParentEditor(),b=a.document.createElement("textarea"));this.commitContent(b);c&&a.insertElement(b)},contents:[{id:"info",label:b.lang.forms.textarea.title,title:b.lang.forms.textarea.title,
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("textfield",function(b){function e(a){var a=a.element,c=this.getValue();c?a.setAttribute(this.id,c):a.removeAttribute(this.id)}function f(a){this.setValue(a.hasAttribute(this.id)&&a.getAttribute(this.id)||"")}var g={email:1,password:1,search:1,tel:1,text:1,url:1};return{title:b.lang.forms.textfield.title,minWidth:350,minHeight:150,onShow:function(){delete this.textField;var a=this.getParentEditor().getSelection().getSelectedElement();if(a&&"input"==a.getName()&&(g[a.getAttribute("type")]||
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  (function(){function c(b){var c=this instanceof CKEDITOR.ui.dialog.checkbox;b.hasAttribute(this.id)&&(b=b.getAttribute(this.id),c?this.setValue(e[this.id]["true"]==b.toLowerCase()):this.setValue(b))}function d(b){var c=""===this.getValue(),a=this instanceof CKEDITOR.ui.dialog.checkbox,d=this.getValue();c?b.removeAttribute(this.att||this.id):a?b.setAttribute(this.id,e[this.id][d]):b.setAttribute(this.att||this.id,d)}var e={scrolling:{"true":"yes","false":"no"},frameborder:{"true":"1","false":"0"}};
@@ -1,13 +1,13 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  (function(){var r=function(c,j){function r(){var a=arguments,b=this.getContentElement("advanced","txtdlgGenStyle");b&&b.commit.apply(b,a);this.foreach(function(b){b.commit&&"txtdlgGenStyle"!=b.id&&b.commit.apply(b,a)})}function i(a){if(!s){s=1;var b=this.getDialog(),d=b.imageElement;if(d){this.commit(f,d);for(var a=[].concat(a),e=a.length,c,g=0;g<e;g++)(c=b.getContentElement.apply(b,a[g].split(":")))&&c.setup(f,d)}s=0}}var f=1,k=/^\s*(\d+)((px)|\%)?\s*$/i,v=/(^\s*(\d+)((px)|\%)?\s*$)|^$/i,o=/^\d+px$/,
6
6
  w=function(){var a=this.getValue(),b=this.getDialog(),d=a.match(k);d&&("%"==d[2]&&l(b,!1),a=d[1]);b.lockRatio&&(d=b.originalElement,"true"==d.getCustomData("isReady")&&("txtHeight"==this.id?(a&&"0"!=a&&(a=Math.round(d.$.width*(a/d.$.height))),isNaN(a)||b.setValueOf("info","txtWidth",a)):(a&&"0"!=a&&(a=Math.round(d.$.height*(a/d.$.width))),isNaN(a)||b.setValueOf("info","txtHeight",a))));g(b)},g=function(a){if(!a.originalElement||!a.preview)return 1;a.commitContent(4,a.preview);return 0},s,l=function(a,
7
- b){if(!a.getContentElement("info","ratioLock"))return null;var d=a.originalElement;if(!d)return null;if("check"==b){if(!a.userlockRatio&&"true"==d.getCustomData("isReady")){var e=a.getValueOf("info","txtWidth"),c=a.getValueOf("info","txtHeight"),d=1E3*d.$.width/d.$.height,f=1E3*e/c;a.lockRatio=!1;!e&&!c?a.lockRatio=!0:!isNaN(d)&&!isNaN(f)&&Math.round(d)==Math.round(f)&&(a.lockRatio=!0)}}else void 0!=b?a.lockRatio=b:(a.userlockRatio=1,a.lockRatio=!a.lockRatio);e=CKEDITOR.document.getById(p);a.lockRatio?
7
+ b){if(!a.getContentElement("info","ratioLock"))return null;var d=a.originalElement;if(!d)return null;if("check"==b){if(!a.userlockRatio&&"true"==d.getCustomData("isReady")){var e=a.getValueOf("info","txtWidth"),c=a.getValueOf("info","txtHeight"),d=1E3*d.$.width/d.$.height,f=1E3*e/c;a.lockRatio=!1;!e&&!c?a.lockRatio=!0:!isNaN(d)&&!isNaN(f)&&Math.round(d)==Math.round(f)&&(a.lockRatio=!0)}}else void 0!==b?a.lockRatio=b:(a.userlockRatio=1,a.lockRatio=!a.lockRatio);e=CKEDITOR.document.getById(p);a.lockRatio?
8
8
  e.removeClass("cke_btn_unlocked"):e.addClass("cke_btn_unlocked");e.setAttribute("aria-checked",a.lockRatio);CKEDITOR.env.hc&&e.getChild(0).setHtml(a.lockRatio?CKEDITOR.env.ie?"■":"▣":CKEDITOR.env.ie?"□":"▢");return a.lockRatio},x=function(a){var b=a.originalElement;if("true"==b.getCustomData("isReady")){var d=a.getContentElement("info","txtWidth"),e=a.getContentElement("info","txtHeight");d&&d.setValue(b.$.width);e&&e.setValue(b.$.height)}g(a)},y=function(a,b){function d(a,b){var d=a.match(k);return d?
9
9
  ("%"==d[2]&&(d[1]+="%",l(e,!1)),d[1]):b}if(a==f){var e=this.getDialog(),c="",g="txtWidth"==this.id?"width":"height",h=b.getAttribute(g);h&&(c=d(h,c));c=d(b.getStyle(g),c);this.setValue(c)}},t,q=function(){var a=this.originalElement,b=CKEDITOR.document.getById(m);a.setCustomData("isReady","true");a.removeListener("load",q);a.removeListener("error",h);a.removeListener("abort",h);b&&b.setStyle("display","none");this.dontResetSize||x(this);this.firstLoad&&CKEDITOR.tools.setTimeout(function(){l(this,"check")},
10
- 0,this);this.dontResetSize=this.firstLoad=!1},h=function(){var a=this.originalElement,b=CKEDITOR.document.getById(m);a.removeListener("load",q);a.removeListener("error",h);a.removeListener("abort",h);a=CKEDITOR.getUrl(CKEDITOR.plugins.get("image").path+"images/noimage.png");this.preview&&this.preview.setAttribute("src",a);b&&b.setStyle("display","none");l(this,!1)},n=function(a){return CKEDITOR.tools.getNextId()+"_"+a},p=n("btnLockSizes"),u=n("btnResetSize"),m=n("ImagePreviewLoader"),A=n("previewLink"),
10
+ 0,this);this.dontResetSize=this.firstLoad=!1;g(this)},h=function(){var a=this.originalElement,b=CKEDITOR.document.getById(m);a.removeListener("load",q);a.removeListener("error",h);a.removeListener("abort",h);a=CKEDITOR.getUrl(CKEDITOR.plugins.get("image").path+"images/noimage.png");this.preview&&this.preview.setAttribute("src",a);b&&b.setStyle("display","none");l(this,!1)},n=function(a){return CKEDITOR.tools.getNextId()+"_"+a},p=n("btnLockSizes"),u=n("btnResetSize"),m=n("ImagePreviewLoader"),A=n("previewLink"),
11
11
  z=n("previewImage");return{title:c.lang.image["image"==j?"title":"titleButton"],minWidth:420,minHeight:360,onShow:function(){this.linkEditMode=this.imageEditMode=this.linkElement=this.imageElement=!1;this.lockRatio=!0;this.userlockRatio=0;this.dontResetSize=!1;this.firstLoad=!0;this.addLink=!1;var a=this.getParentEditor(),b=a.getSelection(),d=(b=b&&b.getSelectedElement())&&a.elementPath(b).contains("a",1),c=CKEDITOR.document.getById(m);c&&c.setStyle("display","none");t=new CKEDITOR.dom.element("img",
12
12
  a.document);this.preview=CKEDITOR.document.getById(z);this.originalElement=a.document.createElement("img");this.originalElement.setAttribute("alt","");this.originalElement.setCustomData("isReady","false");if(d){this.linkElement=d;this.linkEditMode=!0;c=d.getChildren();if(1==c.count()){var g=c.getItem(0).getName();if("img"==g||"input"==g)this.imageElement=c.getItem(0),"img"==this.imageElement.getName()?this.imageEditMode="img":"input"==this.imageElement.getName()&&(this.imageEditMode="input")}"image"==
13
13
  j&&this.setupContent(2,d)}if(this.customImageElement)this.imageEditMode="img",this.imageElement=this.customImageElement,delete this.customImageElement;else if(b&&"img"==b.getName()&&!b.data("cke-realelement")||b&&"input"==b.getName()&&"image"==b.getAttribute("type"))this.imageEditMode=b.getName(),this.imageElement=b;this.imageEditMode?(this.cleanImageElement=this.imageElement,this.imageElement=this.cleanImageElement.clone(!0,!0),this.setupContent(f,this.imageElement)):this.imageElement=a.document.createElement("img");
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("anchor",function(c){function d(a,b){return a.createFakeElement(a.document.createElement("a",{attributes:b}),"cke_anchor","anchor")}return{title:c.lang.link.anchor.title,minWidth:300,minHeight:60,onOk:function(){var a=CKEDITOR.tools.trim(this.getValueOf("info","txtName")),a={id:a,name:a,"data-cke-saved-name":a};if(this._.selectedElement)this._.selectedElement.data("cke-realelement")?(a=d(c,a),a.replace(this._.selectedElement),CKEDITOR.env.ie&&c.getSelection().selectElement(a)):
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  (function(){CKEDITOR.dialog.add("link",function(g){var l=CKEDITOR.plugins.link,m=function(){var a=this.getDialog(),b=a.getContentElement("target","popupFeatures"),a=a.getContentElement("target","linkTargetName"),k=this.getValue();if(b&&a)switch(b=b.getElement(),b.hide(),a.setValue(""),k){case "frame":a.setLabel(g.lang.link.targetFrameName);a.getElement().show();break;case "popup":b.show();a.setLabel(g.lang.link.targetPopupName);a.getElement().show();break;default:a.setValue(k),a.getElement().hide()}},
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  (function(){function d(c,d){var b;try{b=c.getSelection().getRanges()[0]}catch(f){return null}b.shrink(CKEDITOR.SHRINK_TEXT);return c.elementPath(b.getCommonAncestor()).contains(d,1)}function e(c,e){var b=c.lang.liststyle;if("bulletedListStyle"==e)return{title:b.bulletedTitle,minWidth:300,minHeight:50,contents:[{id:"info",accessKey:"I",elements:[{type:"select",label:b.type,id:"type",align:"center",style:"width:150px",items:[[b.notset,""],[b.circle,"circle"],[b.disc,"disc"],[b.square,"square"]],setup:function(a){this.setValue(a.getStyle("list-style-type")||
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  (function(){function y(a){for(var a=a.toUpperCase(),c=z.length,b=0,f=0;f<c;++f)for(var d=z[f],e=d[1].length;a.substr(0,e)==d[1];a=a.substr(e))b+=d[0];return b}function A(a){for(var a=a.toUpperCase(),c=B.length,b=1,f=1;0<a.length;f*=c)b+=B.indexOf(a.charAt(a.length-1))*f,a=a.substr(0,a.length-1);return b}var C=CKEDITOR.htmlParser.fragment.prototype,o=CKEDITOR.htmlParser.element.prototype;C.onlyChild=o.onlyChild=function(){var a=this.children;return 1==a.length&&a[0]||null};o.removeAnyChildWithName=
@@ -0,0 +1,25 @@
1
+ CKEditor SCAYT Plugin
2
+ =====================
3
+
4
+ This plugin brings Spell Check As You Type (SCAYT) into up to CKEditor 4+.
5
+
6
+ SCAYT is a "installation-less", using the web-services of [WebSpellChecker.net](http://www.webspellchecker.net/). It's an out of the box solution.
7
+
8
+ Installation
9
+ ------------
10
+
11
+ 1. Clone/copy this repository contents in a new "plugins/scayt" folder in your CKEditor installation.
12
+ 2. Enable the "scayt" plugin in the CKEditor configuration file (config.js):
13
+
14
+ config.extraPlugins = 'scayt';
15
+
16
+ That's all. SCAYT will appear on the editor toolbar and will be ready to use.
17
+
18
+ License
19
+ -------
20
+
21
+ Licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html).
22
+
23
+ See LICENSE.md for more information.
24
+
25
+ Developed in cooperation with [WebSpellChecker.net](http://www.webspellchecker.net/).
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("smiley",function(f){for(var e=f.config,a=f.lang.smiley,h=e.smiley_images,g=e.smiley_columns||8,i,k=function(j){var c=j.data.getTarget(),b=c.getName();if("a"==b)c=c.getChild(0);else if("img"!=b)return;var b=c.getAttribute("cke_src"),a=c.getAttribute("title"),c=f.document.createElement("img",{attributes:{src:b,"data-cke-saved-src":b,title:a,alt:a,width:c.$.width,height:c.$.height}});f.insertElement(c);i.hide();j.data.preventDefault()},n=CKEDITOR.tools.addFunction(function(a,c){var a=
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.plugins.setLang("specialchar","en",{euro:"Euro sign",lsquo:"Left single quotation mark",rsquo:"Right single quotation mark",ldquo:"Left double quotation mark",rdquo:"Right double quotation mark",ndash:"En dash",mdash:"Em dash",iexcl:"Inverted exclamation mark",cent:"Cent sign",pound:"Pound sign",curren:"Currency sign",yen:"Yen sign",brvbar:"Broken bar",sect:"Section sign",uml:"Diaeresis",copy:"Copyright sign",ordf:"Feminine ordinal indicator",laquo:"Left-pointing double angle quotation mark",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.plugins.setLang("specialchar","ru",{euro:"Знак евро",lsquo:"Левая одинарная кавычка",rsquo:"Правая одинарная кавычка",ldquo:"Левая двойная кавычка",rdquo:"Левая двойная кавычка",ndash:"Среднее тире",mdash:"Длинное тире",iexcl:"перевёрнутый восклицательный знак",cent:"Цент",pound:"Фунт",curren:"Знак валюты",yen:"Йена",brvbar:"Вертикальная черта с разрывом",sect:"Знак параграфа",uml:"Умлаут",copy:"Знак охраны авторского права",ordf:"Указатель окончания женского рода ...ая",laquo:"Левая кавычка-«ёлочка»",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("specialchar",function(i){var e,l=i.lang.specialchar,k=function(c){var b,c=c.data?c.data.getTarget():new CKEDITOR.dom.element(c);if("a"==c.getName()&&(b=c.getChild(0).getHtml()))c.removeClass("cke_light_background"),e.hide(),c=i.document.createElement("span"),c.setHtml(b),i.insertText(c.getText())},m=CKEDITOR.tools.addFunction(k),j,g=function(c,b){var a,b=b||c.data.getTarget();"span"==b.getName()&&(b=b.getParent());if("a"==b.getName()&&(a=b.getChild(0).getHtml())){j&&d(null,j);
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  (function(){function r(a){for(var e=0,l=0,k=0,m,g=a.$.rows.length;k<g;k++){m=a.$.rows[k];for(var d=e=0,c,b=m.cells.length;d<b;d++)c=m.cells[d],e+=c.colSpan;e>l&&(l=e)}return l}function o(a){return function(){var e=this.getValue(),e=!!(CKEDITOR.dialog.validate.integer()(e)&&0<e);e||(alert(a),this.select());return e}}function n(a,e){var l=function(g){return new CKEDITOR.dom.element(g,a.document)},n=a.editable(),m=a.plugins.dialogadvtab;return{title:a.lang.table.title,minWidth:310,minHeight:CKEDITOR.env.ie?
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.dialog.add("cellProperties",function(g){function d(a){return function(b){for(var c=a(b[0]),d=1;d<b.length;d++)if(a(b[d])!==c){c=null;break}"undefined"!=typeof c&&(this.setValue(c),CKEDITOR.env.gecko&&("select"==this.type&&!c)&&(this.getInputElement().$.selectedIndex=-1))}}function j(a){if(a=l.exec(a.getStyle("width")||a.getAttribute("width")))return a[2]}var h=g.lang.table,c=h.cell,e=g.lang.common,i=CKEDITOR.dialog.validate,l=/^(\d+(?:\.\d+)?)(px|%)$/,f={type:"html",html:"&nbsp;"},m="rtl"==
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  (function(){CKEDITOR.dialog.add("templates",function(c){function o(a,b){var k=CKEDITOR.dom.element.createFromHtml('<a href="javascript:void(0)" tabIndex="-1" role="option" ><div class="cke_tpl_item"></div></a>'),d='<table style="width:350px;" class="cke_tpl_preview" role="presentation"><tr>';a.image&&b&&(d+='<td class="cke_tpl_preview_img"><img src="'+CKEDITOR.getUrl(b+a.image)+'"'+(CKEDITOR.env.ie6Compat?' onload="this.width=this.width"':"")+' alt="" title=""></td>');d+='<td style="white-space:normal;"><span class="cke_tpl_title">'+
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
5
  CKEDITOR.addTemplates("default",{imagesPath:CKEDITOR.getUrl(CKEDITOR.plugins.getPath("templates")+"templates/images/"),templates:[{title:"Image and Title",image:"template1.gif",description:"One main image with a title and text that surround the image.",html:'<h3><img src=" " alt="" style="margin-right: 10px" height="100" width="100" align="left" />Type the title here</h3><p>Type the text here</p>'},{title:"Strange Template",image:"template2.gif",description:"A template that defines two colums, each one with a title, and some text.",
@@ -0,0 +1,25 @@
1
+ CKEditor WebSpellChecker Plugin
2
+ ===============================
3
+
4
+ This plugin brings Web Spell Checker (WSC) into CKEditor.
5
+
6
+ WSC is "installation-less", using the web-services of [WebSpellChecker.net](http://www.webspellchecker.net/). It's an out of the box solution.
7
+
8
+ Installation
9
+ ------------
10
+
11
+ 1. Clone/copy this repository contents in a new "plugins/wsc" folder in your CKEditor installation.
12
+ 2. Enable the "wsc" plugin in the CKEditor configuration file (config.js):
13
+
14
+ config.extraPlugins = 'wsc';
15
+
16
+ That's all. WSC will appear on the editor toolbar and will be ready to use.
17
+
18
+ License
19
+ -------
20
+
21
+ Licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html).
22
+
23
+ See LICENSE.md for more information.
24
+
25
+ Developed in cooperation with [WebSpellChecker.net](http://www.webspellchecker.net/).
@@ -0,0 +1,771 @@
1
+ /*
2
+ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
5
+
6
+ .cke_dialog {
7
+ visibility: visible;
8
+ }
9
+
10
+ .cke_dialog_body {
11
+ z-index: 1;
12
+ background: #eaeaea;
13
+ border: 1px solid #b2b2b2;
14
+ border-bottom-color: #999;
15
+ -moz-border-radius: 3px;
16
+ -webkit-border-radius: 3px;
17
+ border-radius: 3px;
18
+ -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
19
+ -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
20
+ box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
21
+ }
22
+
23
+ .cke_dialog strong {
24
+ font-weight: bold;
25
+ }
26
+
27
+ .cke_dialog_title {
28
+ font-weight: bold;
29
+ font-size: 13px;
30
+ cursor: move;
31
+ position: relative;
32
+ color: #474747;
33
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
34
+ border-bottom: 1px solid #999;
35
+ padding: 6px 10px;
36
+ -moz-border-radius: 2px 2px 0 0;
37
+ -webkit-border-radius: 2px 2px 0 0;
38
+ border-radius: 2px 2px 0 0;
39
+ -moz-box-shadow: 0 1px 0 #fff inset;
40
+ -webkit-box-shadow: 0 1px 0 #fff inset;
41
+ box-shadow: 0 1px 0 #fff inset;
42
+ background: #cfd1cf;
43
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#cfd1cf));
44
+ background-image: -moz-linear-gradient(top, #f5f5f5, #cfd1cf);
45
+ background-image: -webkit-linear-gradient(top, #f5f5f5, #cfd1cf);
46
+ background-image: -o-linear-gradient(top, #f5f5f5, #cfd1cf);
47
+ background-image: -ms-linear-gradient(top, #f5f5f5, #cfd1cf);
48
+ background-image: linear-gradient(top, #f5f5f5, #cfd1cf);
49
+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#f5f5f5',endColorstr='#cfd1cf');
50
+ }
51
+
52
+ .cke_dialog_contents {
53
+ background-color: #fff;
54
+ overflow: auto;
55
+ padding: 15px 10px 5px 10px;
56
+ margin-top: 30px;
57
+ border-top: 1px solid #bfbfbf;
58
+ -moz-border-radius: 0 0 3px 3px;
59
+ -webkit-border-radius: 0 0 3px 3px;
60
+ border-radius: 0 0 3px 3px;
61
+ }
62
+
63
+ .cke_dialog_contents_body {
64
+ overflow: auto;
65
+ padding: 17px 10px 5px 10px;
66
+ margin-top: 22px;
67
+ }
68
+
69
+ .cke_dialog_footer {
70
+ text-align: right;
71
+ position: relative;
72
+ border: 0;
73
+ outline: 1px solid #bfbfbf;
74
+ -moz-box-shadow: 0 1px 0 #fff inset;
75
+ -webkit-box-shadow: 0 1px 0 #fff inset;
76
+ box-shadow: 0 1px 0 #fff inset;
77
+ -moz-border-radius: 0 0 2px 2px;
78
+ -webkit-border-radius: 0 0 2px 2px;
79
+ border-radius: 0 0 2px 2px;
80
+ background: #cfd1cf;
81
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#cfd1cf));
82
+ background-image: -moz-linear-gradient(top, #ebebeb, #cfd1cf);
83
+ background-image: -webkit-linear-gradient(top, #ebebeb, #cfd1cf);
84
+ background-image: -o-linear-gradient(top, #ebebeb, #cfd1cf);
85
+ background-image: -ms-linear-gradient(top, #ebebeb, #cfd1cf);
86
+ background-image: linear-gradient(top, #ebebeb, #cfd1cf);
87
+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#ebebeb',endColorstr='#cfd1cf');
88
+ }
89
+
90
+ .cke_rtl .cke_dialog_footer {
91
+ text-align: left;
92
+ }
93
+
94
+ .cke_hc .cke_dialog_footer {
95
+ outline: 0;
96
+ border-top: 1px solid #fff;
97
+ }
98
+
99
+ .cke_dialog {
100
+ .cke_resizer {
101
+ margin-top: 22px;
102
+ }
103
+ .cke_resizer_rtl {
104
+ margin-left: 5px;
105
+ }
106
+ .cke_resizer_ltr {
107
+ margin-right: 5px;
108
+ }
109
+ }
110
+
111
+ .cke_dialog_tabs {
112
+ height: 24px;
113
+ display: inline-block;
114
+ margin: 5px 0 0;
115
+ position: absolute;
116
+ z-index: 2;
117
+ left: 10px;
118
+ }
119
+
120
+ .cke_rtl .cke_dialog_tabs {
121
+ right: 10px;
122
+ }
123
+
124
+ a.cke_dialog_tab {
125
+ height: 16px;
126
+ padding: 4px 8px;
127
+ margin-right: 3px;
128
+ display: inline-block;
129
+ cursor: pointer;
130
+ line-height: 16px;
131
+ outline: 0;
132
+ color: #595959;
133
+ border: 1px solid #bfbfbf;
134
+ -moz-border-radius: 3px 3px 0 0;
135
+ -webkit-border-radius: 3px 3px 0 0;
136
+ border-radius: 3px 3px 0 0;
137
+ background: #d4d4d4;
138
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#fafafa), to(#ededed));
139
+ background-image: -moz-linear-gradient(top, #fafafa, #ededed);
140
+ background-image: -webkit-linear-gradient(top, #fafafa, #ededed);
141
+ background-image: -o-linear-gradient(top, #fafafa, #ededed);
142
+ background-image: -ms-linear-gradient(top, #fafafa, #ededed);
143
+ background-image: linear-gradient(top, #fafafa, #ededed);
144
+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#fafafa',endColorstr='#ededed');
145
+ }
146
+
147
+ .cke_rtl a.cke_dialog_tab {
148
+ margin-right: 0;
149
+ margin-left: 3px;
150
+ }
151
+
152
+ a {
153
+ &.cke_dialog_tab:hover {
154
+ background: #ebebeb;
155
+ background: -moz-linear-gradient(top, #ebebeb 0, #dfdfdf 100%);
156
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ebebeb), color-stop(100%, #dfdfdf));
157
+ background: -webkit-linear-gradient(top, #ebebeb 0, #dfdfdf 100%);
158
+ background: -o-linear-gradient(top, #ebebeb 0, #dfdfdf 100%);
159
+ background: -ms-linear-gradient(top, #ebebeb 0, #dfdfdf 100%);
160
+ background: linear-gradient(to bottom, #ebebeb 0, #dfdfdf 100%);
161
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ebebeb',endColorstr='#dfdfdf',GradientType=0);
162
+ }
163
+ &.cke_dialog_tab_selected {
164
+ background: #fff;
165
+ color: #383838;
166
+ border-bottom-color: #fff;
167
+ cursor: default;
168
+ filter: none;
169
+ &:hover {
170
+ background: #ededed;
171
+ background: -moz-linear-gradient(top, #ededed 0, #fff 100%);
172
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ededed), color-stop(100%, #fff));
173
+ background: -webkit-linear-gradient(top, #ededed 0, #fff 100%);
174
+ background: -o-linear-gradient(top, #ededed 0, #fff 100%);
175
+ background: -ms-linear-gradient(top, #ededed 0, #fff 100%);
176
+ background: linear-gradient(to bottom, #ededed 0, #fff 100%);
177
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed',endColorstr='#ffffff',GradientType=0);
178
+ }
179
+ }
180
+ }
181
+
182
+ .cke_hc a {
183
+ &.cke_dialog_tab:hover, &.cke_dialog_tab_selected {
184
+ border: 3px solid;
185
+ padding: 2px 6px;
186
+ }
187
+ }
188
+
189
+ a.cke_dialog_tab_disabled {
190
+ color: #bababa;
191
+ cursor: default;
192
+ }
193
+
194
+ .cke_single_page {
195
+ .cke_dialog_tabs {
196
+ display: none;
197
+ }
198
+ .cke_dialog_contents {
199
+ padding-top: 5px;
200
+ margin-top: 0;
201
+ border-top: 0;
202
+ }
203
+ }
204
+
205
+ .cke_dialog_close_button {
206
+ background-image: image-url("ckeditor/skins/moono/images/close.png");
207
+ background-repeat: no-repeat;
208
+ background-position: 50%;
209
+ position: absolute;
210
+ cursor: pointer;
211
+ text-align: center;
212
+ height: 20px;
213
+ width: 20px;
214
+ top: 5px;
215
+ z-index: 5;
216
+ opacity: .8;
217
+ filter: alpha(opacity = 80);
218
+ &:hover {
219
+ opacity: 1;
220
+ filter: alpha(opacity = 100);
221
+ }
222
+ }
223
+
224
+ .cke_hidpi .cke_dialog_close_button {
225
+ background-image: image-url("ckeditor/skins/moono/images/hidpi/close.png");
226
+ background-size: 16px;
227
+ }
228
+
229
+ .cke_dialog_close_button span {
230
+ display: none;
231
+ }
232
+
233
+ .cke_hc .cke_dialog_close_button span {
234
+ display: inline;
235
+ cursor: pointer;
236
+ font-weight: bold;
237
+ position: relative;
238
+ top: 3px;
239
+ }
240
+
241
+ .cke_ltr .cke_dialog_close_button {
242
+ right: 5px;
243
+ }
244
+
245
+ .cke_rtl .cke_dialog_close_button {
246
+ left: 6px;
247
+ }
248
+
249
+ .cke_dialog_close_button {
250
+ top: 4px;
251
+ }
252
+
253
+ div.cke_disabled .cke_dialog_ui_labeled_content div * {
254
+ background-color: #ddd;
255
+ cursor: default;
256
+ }
257
+
258
+ .cke_dialog_ui_vbox table, .cke_dialog_ui_hbox table {
259
+ margin: auto;
260
+ }
261
+
262
+ .cke_dialog_ui_vbox_child {
263
+ padding: 5px 0;
264
+ }
265
+
266
+ .cke_dialog_ui_hbox {
267
+ width: 100%;
268
+ }
269
+
270
+ .cke_dialog_ui_hbox_first, .cke_dialog_ui_hbox_child, .cke_dialog_ui_hbox_last {
271
+ vertical-align: top;
272
+ }
273
+
274
+ .cke_ltr {
275
+ .cke_dialog_ui_hbox_first, .cke_dialog_ui_hbox_child {
276
+ padding-right: 10px;
277
+ }
278
+ }
279
+
280
+ .cke_rtl {
281
+ .cke_dialog_ui_hbox_first, .cke_dialog_ui_hbox_child {
282
+ padding-left: 10px;
283
+ }
284
+ }
285
+
286
+ .cke_ltr .cke_dialog_footer_buttons {
287
+ .cke_dialog_ui_hbox_first, .cke_dialog_ui_hbox_child {
288
+ padding-right: 5px;
289
+ }
290
+ }
291
+
292
+ .cke_rtl .cke_dialog_footer_buttons {
293
+ .cke_dialog_ui_hbox_first, .cke_dialog_ui_hbox_child {
294
+ padding-left: 5px;
295
+ padding-right: 0;
296
+ }
297
+ }
298
+
299
+ .cke_hc div {
300
+ &.cke_dialog_ui_input_text, &.cke_dialog_ui_input_password, &.cke_dialog_ui_input_textarea, &.cke_dialog_ui_input_select, &.cke_dialog_ui_input_file {
301
+ border: 1px solid;
302
+ }
303
+ }
304
+
305
+ textarea.cke_dialog_ui_input_textarea {
306
+ overflow: auto;
307
+ resize: none;
308
+ }
309
+
310
+ input {
311
+ &.cke_dialog_ui_input_text, &.cke_dialog_ui_input_password {
312
+ background-color: #fff;
313
+ border: 1px solid #c9cccf;
314
+ border-top-color: #aeb3b9;
315
+ padding: 4px 6px;
316
+ outline: 0;
317
+ width: 100%;
318
+ *width: 95%;
319
+ -moz-box-sizing: border-box;
320
+ -webkit-box-sizing: border-box;
321
+ box-sizing: border-box;
322
+ -moz-border-radius: 3px;
323
+ -webkit-border-radius: 3px;
324
+ border-radius: 3px;
325
+ -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
326
+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
327
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
328
+ }
329
+ }
330
+
331
+ textarea.cke_dialog_ui_input_textarea {
332
+ background-color: #fff;
333
+ border: 1px solid #c9cccf;
334
+ border-top-color: #aeb3b9;
335
+ padding: 4px 6px;
336
+ outline: 0;
337
+ width: 100%;
338
+ *width: 95%;
339
+ -moz-box-sizing: border-box;
340
+ -webkit-box-sizing: border-box;
341
+ box-sizing: border-box;
342
+ -moz-border-radius: 3px;
343
+ -webkit-border-radius: 3px;
344
+ border-radius: 3px;
345
+ -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
346
+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
347
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
348
+ }
349
+
350
+ input {
351
+ &.cke_dialog_ui_input_text:hover, &.cke_dialog_ui_input_password:hover {
352
+ border: 1px solid #aeb3b9;
353
+ border-top-color: #a0a6ad;
354
+ }
355
+ }
356
+
357
+ textarea.cke_dialog_ui_input_textarea:hover {
358
+ border: 1px solid #aeb3b9;
359
+ border-top-color: #a0a6ad;
360
+ }
361
+
362
+ input {
363
+ &.cke_dialog_ui_input_text:focus, &.cke_dialog_ui_input_password:focus {
364
+ outline: 0;
365
+ border: 1px solid #139ff7;
366
+ border-top-color: #1392e9;
367
+ }
368
+ }
369
+
370
+ textarea.cke_dialog_ui_input_textarea:focus, select.cke_dialog_ui_input_select:focus {
371
+ outline: 0;
372
+ border: 1px solid #139ff7;
373
+ border-top-color: #1392e9;
374
+ }
375
+
376
+ a.cke_dialog_ui_button {
377
+ display: inline-block;
378
+ *display: inline;
379
+ *zoom: 1;
380
+ padding: 4px 0;
381
+ margin: 0;
382
+ text-align: center;
383
+ color: #333;
384
+ vertical-align: middle;
385
+ cursor: pointer;
386
+ border: 1px solid #b6b6b6;
387
+ border-bottom-color: #999;
388
+ -moz-border-radius: 3px;
389
+ -webkit-border-radius: 3px;
390
+ border-radius: 3px;
391
+ -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 1px 0 rgba(255, 255, 255, 0.15) inset;
392
+ -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 1px 0 rgba(255, 255, 255, 0.15) inset;
393
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 1px 0 rgba(255, 255, 255, 0.15) inset;
394
+ background: #e4e4e4;
395
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e4e4e4));
396
+ background-image: -moz-linear-gradient(top, #fff, #e4e4e4);
397
+ background-image: -webkit-linear-gradient(top, #fff, #e4e4e4);
398
+ background-image: -o-linear-gradient(top, #fff, #e4e4e4);
399
+ background-image: -ms-linear-gradient(top, #fff, #e4e4e4);
400
+ background-image: linear-gradient(top, #fff, #e4e4e4);
401
+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#ffffff',endColorstr='#e4e4e4');
402
+ }
403
+
404
+ span.cke_dialog_ui_button {
405
+ padding: 0 10px;
406
+ }
407
+
408
+ a.cke_dialog_ui_button {
409
+ &:hover {
410
+ border-color: #9e9e9e;
411
+ background: #ccc;
412
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#ccc));
413
+ background-image: -moz-linear-gradient(top, #f2f2f2, #ccc);
414
+ background-image: -webkit-linear-gradient(top, #f2f2f2, #ccc);
415
+ background-image: -o-linear-gradient(top, #f2f2f2, #ccc);
416
+ background-image: -ms-linear-gradient(top, #f2f2f2, #ccc);
417
+ background-image: linear-gradient(top, #f2f2f2, #ccc);
418
+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#f2f2f2',endColorstr='#cccccc');
419
+ }
420
+ &:focus, &:active {
421
+ border-color: #969696;
422
+ outline: 0;
423
+ -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.4) inset;
424
+ -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.4) inset;
425
+ box-shadow: 0 0 6px rgba(0, 0, 0, 0.4) inset;
426
+ }
427
+ }
428
+
429
+ .cke_hc a.cke_dialog_ui_button {
430
+ &:hover, &:focus, &:active {
431
+ border: 3px solid;
432
+ padding-top: 1px;
433
+ padding-bottom: 1px;
434
+ }
435
+ &:hover span, &:focus span, &:active span {
436
+ padding-left: 10px;
437
+ padding-right: 10px;
438
+ }
439
+ }
440
+
441
+ .cke_dialog_footer_buttons a.cke_dialog_ui_button span {
442
+ color: inherit;
443
+ font-size: 12px;
444
+ font-weight: bold;
445
+ line-height: 18px;
446
+ padding: 0 12px;
447
+ }
448
+
449
+ a {
450
+ &.cke_dialog_ui_button_ok {
451
+ color: #fff;
452
+ text-shadow: 0 -1px 0 #55830c;
453
+ border-color: #62a60a #62a60a #4d9200;
454
+ background: #69b10b;
455
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#9ad717), to(#69b10b));
456
+ background-image: -webkit-linear-gradient(top, #9ad717, #69b10b);
457
+ background-image: -o-linear-gradient(top, #9ad717, #69b10b);
458
+ background-image: linear-gradient(to bottom, #9ad717, #69b10b);
459
+ background-image: -moz-linear-gradient(top, #9ad717, #69b10b);
460
+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#9ad717',endColorstr='#69b10b');
461
+ &:hover {
462
+ border-color: #5b9909 #5b9909 #478500;
463
+ background: #88be14;
464
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #88be14), color-stop(100%, #5d9c0a));
465
+ background: -webkit-linear-gradient(top, #88be14 0, #5d9c0a 100%);
466
+ background: -o-linear-gradient(top, #88be14 0, #5d9c0a 100%);
467
+ background: linear-gradient(to bottom, #88be14 0, #5d9c0a 100%);
468
+ background: -moz-linear-gradient(top, #88be14 0, #5d9c0a 100%);
469
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#88be14',endColorstr='#5d9c0a',GradientType=0);
470
+ }
471
+ }
472
+ &.cke_dialog_ui_button span {
473
+ text-shadow: 0 1px 0 #fff;
474
+ }
475
+ &.cke_dialog_ui_button_ok span {
476
+ text-shadow: 0 -1px 0 #55830c;
477
+ }
478
+ }
479
+
480
+ span.cke_dialog_ui_button {
481
+ cursor: pointer;
482
+ }
483
+
484
+ a {
485
+ &.cke_dialog_ui_button_ok {
486
+ &:focus, &:active {
487
+ border-width: 2px;
488
+ padding: 3px 0;
489
+ }
490
+ }
491
+ &.cke_dialog_ui_button_cancel {
492
+ &:focus, &:active {
493
+ border-width: 2px;
494
+ padding: 3px 0;
495
+ }
496
+ }
497
+ &.cke_dialog_ui_button_ok {
498
+ &:focus, &:active {
499
+ border-color: #568c0a;
500
+ }
501
+ &:focus span, &:active span {
502
+ padding: 0 11px;
503
+ }
504
+ }
505
+ &.cke_dialog_ui_button_cancel {
506
+ &:focus span, &:active span {
507
+ padding: 0 11px;
508
+ }
509
+ }
510
+ }
511
+
512
+ .cke_dialog_footer_buttons {
513
+ display: inline-table;
514
+ margin: 5px;
515
+ width: auto;
516
+ position: relative;
517
+ vertical-align: middle;
518
+ }
519
+
520
+ div.cke_dialog_ui_input_select {
521
+ display: table;
522
+ }
523
+
524
+ select.cke_dialog_ui_input_select {
525
+ height: 25px;
526
+ line-height: 25px;
527
+ background-color: #fff;
528
+ border: 1px solid #c9cccf;
529
+ border-top-color: #aeb3b9;
530
+ padding: 3px 3px 3px 6px;
531
+ outline: 0;
532
+ -moz-border-radius: 3px;
533
+ -webkit-border-radius: 3px;
534
+ border-radius: 3px;
535
+ -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
536
+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
537
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
538
+ }
539
+
540
+ .cke_dialog_ui_input_file {
541
+ width: 100%;
542
+ height: 25px;
543
+ }
544
+
545
+ .cke_hc .cke_dialog_ui_labeled_content {
546
+ input:focus, select:focus, textarea:focus {
547
+ outline: 1px dotted;
548
+ }
549
+ }
550
+
551
+ .cke_dialog {
552
+ .cke_dark_background {
553
+ background-color: #dedede;
554
+ }
555
+ .cke_light_background {
556
+ background-color: #ebebeb;
557
+ }
558
+ .cke_centered {
559
+ text-align: center;
560
+ }
561
+ a.cke_btn_reset {
562
+ float: right;
563
+ background: image-url("ckeditor/skins/moono/images/refresh.png") top left no-repeat;
564
+ width: 16px;
565
+ height: 16px;
566
+ border: 1px none;
567
+ font-size: 1px;
568
+ }
569
+ }
570
+
571
+ .cke_hidpi .cke_dialog a.cke_btn_reset {
572
+ background-size: 16px;
573
+ background-image: image-url("ckeditor/skins/moono/images/hidpi/refresh.png");
574
+ }
575
+
576
+ .cke_rtl .cke_dialog a.cke_btn_reset {
577
+ float: left;
578
+ }
579
+
580
+ .cke_dialog a {
581
+ &.cke_btn_locked, &.cke_btn_unlocked {
582
+ float: left;
583
+ width: 16px;
584
+ height: 16px;
585
+ background-repeat: no-repeat;
586
+ border: none 1px;
587
+ font-size: 1px;
588
+ }
589
+ &.cke_btn_locked .cke_icon {
590
+ display: none;
591
+ }
592
+ }
593
+
594
+ .cke_rtl .cke_dialog a {
595
+ &.cke_btn_locked, &.cke_btn_unlocked {
596
+ float: right;
597
+ }
598
+ }
599
+
600
+ .cke_dialog a {
601
+ &.cke_btn_locked {
602
+ background-image: image-url("ckeditor/skins/moono/images/lock.png");
603
+ }
604
+ &.cke_btn_unlocked {
605
+ background-image: image-url("ckeditor/skins/moono/images/lock-open.png");
606
+ }
607
+ }
608
+
609
+ .cke_hidpi .cke_dialog a {
610
+ &.cke_btn_unlocked {
611
+ background-size: 16px;
612
+ }
613
+ &.cke_btn_locked {
614
+ background-size: 16px;
615
+ background-image: image-url("ckeditor/skins/moono/images/hidpi/lock.png");
616
+ }
617
+ &.cke_btn_unlocked {
618
+ background-image: image-url("ckeditor/skins/moono/images/hidpi/lock-open.png");
619
+ }
620
+ }
621
+
622
+ .cke_dialog {
623
+ .cke_btn_over {
624
+ border: outset 1px;
625
+ cursor: pointer;
626
+ }
627
+ .ImagePreviewBox {
628
+ border: 2px ridge black;
629
+ overflow: scroll;
630
+ height: 200px;
631
+ width: 300px;
632
+ padding: 2px;
633
+ background-color: white;
634
+ table td {
635
+ white-space: normal;
636
+ }
637
+ }
638
+ .ImagePreviewLoader {
639
+ position: absolute;
640
+ white-space: normal;
641
+ overflow: hidden;
642
+ height: 160px;
643
+ width: 230px;
644
+ margin: 2px;
645
+ padding: 2px;
646
+ opacity: .9;
647
+ filter: alpha(opacity = 90);
648
+ background-color: #e4e4e4;
649
+ }
650
+ .FlashPreviewBox {
651
+ white-space: normal;
652
+ border: 2px ridge black;
653
+ overflow: auto;
654
+ height: 160px;
655
+ width: 390px;
656
+ padding: 2px;
657
+ background-color: white;
658
+ }
659
+ .cke_pastetext {
660
+ width: 346px;
661
+ height: 170px;
662
+ textarea {
663
+ width: 340px;
664
+ height: 170px;
665
+ resize: none;
666
+ }
667
+ }
668
+ iframe.cke_pasteframe {
669
+ width: 346px;
670
+ height: 130px;
671
+ background-color: white;
672
+ border: 1px solid #aeb3b9;
673
+ -moz-border-radius: 3px;
674
+ -webkit-border-radius: 3px;
675
+ border-radius: 3px;
676
+ }
677
+ .cke_hand {
678
+ cursor: pointer;
679
+ }
680
+ }
681
+
682
+ .cke_disabled {
683
+ color: #a0a0a0;
684
+ }
685
+
686
+ .cke_dialog_body {
687
+ .cke_label {
688
+ display: none;
689
+ }
690
+ label {
691
+ display: inline;
692
+ margin-bottom: auto;
693
+ cursor: default;
694
+ &.cke_required {
695
+ font-weight: bold;
696
+ }
697
+ }
698
+ }
699
+
700
+ a {
701
+ &.cke_smile {
702
+ overflow: hidden;
703
+ display: block;
704
+ text-align: center;
705
+ padding: .3em 0;
706
+ img {
707
+ vertical-align: middle;
708
+ }
709
+ }
710
+ &.cke_specialchar {
711
+ cursor: inherit;
712
+ display: block;
713
+ height: 1.25em;
714
+ padding: .2em .3em;
715
+ text-align: center;
716
+ }
717
+ &.cke_smile, &.cke_specialchar {
718
+ border: 1px solid transparent;
719
+ }
720
+ &.cke_smile {
721
+ &:hover, &:focus, &:active {
722
+ background: #fff;
723
+ outline: 0;
724
+ }
725
+ }
726
+ &.cke_specialchar {
727
+ &:hover, &:focus, &:active {
728
+ background: #fff;
729
+ outline: 0;
730
+ }
731
+ }
732
+ &.cke_smile:hover, &.cke_specialchar:hover {
733
+ border-color: #888;
734
+ }
735
+ &.cke_smile {
736
+ &:focus, &:active {
737
+ border-color: #139ff7;
738
+ }
739
+ }
740
+ &.cke_specialchar {
741
+ &:focus, &:active {
742
+ border-color: #139ff7;
743
+ }
744
+ }
745
+ }
746
+
747
+ .cke_dialog_contents a.colorChooser {
748
+ display: block;
749
+ margin-top: 6px;
750
+ margin-left: 10px;
751
+ width: 80px;
752
+ }
753
+
754
+ .cke_rtl .cke_dialog_contents a.colorChooser {
755
+ margin-right: 10px;
756
+ }
757
+
758
+ .cke_dialog_ui_checkbox_input:focus, .cke_dialog_ui_radio_input:focus, .cke_btn_over {
759
+ outline: 1px dotted #696969;
760
+ }
761
+
762
+ .cke_iframe_shim {
763
+ display: block;
764
+ position: absolute;
765
+ top: 0;
766
+ left: 0;
767
+ z-index: -1;
768
+ filter: alpha(opacity = 0);
769
+ width: 100%;
770
+ height: 100%;
771
+ }