Index: lams_central/web/ckeditor/README.md =================================================================== diff -u -r228804d048290a0597c798197cd24e3c3445650c -rf4fbb4144a2d2b05c7ad0ebec33ee9a01d7e6ea5 --- lams_central/web/ckeditor/README.md (.../README.md) (revision 228804d048290a0597c798197cd24e3c3445650c) +++ lams_central/web/ckeditor/README.md (.../README.md) (revision f4fbb4144a2d2b05c7ad0ebec33ee9a01d7e6ea5) @@ -84,6 +84,14 @@ ``` (Similar to [https://code.lamsfoundation.org/fisheye/changelog/lams-github?cs=2fbab8924ec9cef2ab6ed231386042fc8ab17fe4](https://code.lamsfoundation.org/fisheye/changelog/lams-github?cs=2fbab8924ec9cef2ab6ed231386042fc8ab17fe4)) +It also seems that CKEditor optimiser breaks brackets, so pay attention to what is in the non-optimised plugin.js and reproduce the same logical operators (with modifications) in the optimised ckeditor.js +So it should be + +``` +return!(a instanceof CKEDITOR.dom.document)&&(("a"==a.name&&"tab"==a.attributes.role)||a.hasClass("bootstrap-tabs")) +instea of +return!(a instanceof CKEDITOR.dom.document)&&("a"==a.name&&"tab"==a.attributes.role||a.hasClass("bootstrap-tabs")) +``` - Modify html5audio plugin. (NOT USED IN ANY TOOLBAR SO IGNORED FOR CKEDITOR UPGRADE TO 4.16.0) @@ -150,10 +158,85 @@ ``` - Including bootstrap tables CSS styles. -(Maybe it is not required anymore as of CKEditor 4.16.0. We will see if clients require this functionality): Replace /lams_central/web/ckeditor/plugins/table/dialogs/table.js entirely with the following file [https://code.lamsfoundation.org/fisheye/browse/~raw,r=2b9f93362e5be1cb3a8718e7f8f26bda31bd4a60/lams-github/lams_central/web/ckeditor/plugins/table/dialogs/table.js](https://code.lamsfoundation.org/fisheye/browse/~raw,r=2b9f93362e5be1cb3a8718e7f8f26bda31bd4a60/lams-github/lams_central/web/ckeditor/plugins/table/dialogs/table.js) (as in [https://code.lamsfoundation.org/fisheye/changelog/lams-github?cs=2b9f93362e5be1cb3a8718e7f8f26bda31bd4a60](https://code.lamsfoundation.org/fisheye/changelog/lams-github?cs=2b9f93362e5be1cb3a8718e7f8f26bda31bd4a60)) +For 4.16.0 upgrade following code has been added +``` +* after +if (!table.getAttribute('style')) + table.removeAttribute('style'); + +* added + +var bootstrapClass = 'table'; +bootstrapClass += this.getValueOf('bootstrapCssTab', 'stripedRows') ? ' table-striped' : ''; +bootstrapClass += this.getValueOf('bootstrapCssTab', 'bordered') ? ' table-bordered' : ''; +bootstrapClass += this.getValueOf('bootstrapCssTab', 'hover') ? ' table-hover' : ''; +bootstrapClass += this.getValueOf('bootstrapCssTab', 'condensed') ? ' table-condensed' : ''; +table.$.className = bootstrapClass; + +* then in "contents" table after "info" added +{ + id: 'bootstrapCssTab', + label: 'Bootstrap CSS', + elements: [ + { + type: 'hbox', + widths: ['50%', '50%'], + children: [ + { + id: 'stripedRows', + label: 'Striped Rows', + type: 'checkbox', + value: 'table-striped', + setup: function(a) { + var tableClasses = (a.getAttribute('class')).split(' '); + this.setValue(mj_in_array('table-striped', tableClasses)); + } + }, + { + id: 'bordered', + label: 'Bordered', + type: 'checkbox', + value: 'table-bordered', + setup: function(a) { + var tableClasses = (a.getAttribute('class')).split(' '); + this.setValue(mj_in_array('table-bordered', tableClasses)); + } + } + ] + }, + { + type: 'hbox', + widths: ['50%', '50%'], + children: [ + { + id: 'hover', + label: 'Hover', + type: 'checkbox', + value: 'table-hover', + setup: function(a) { + var tableClasses = (a.getAttribute('class')).split(' '); + this.setValue(mj_in_array('table-hover', tableClasses)); + } + }, + { + id: 'condensed', + label: 'Condensed', + type: 'checkbox', + value: 'table-condensed', + setup: function(a) { + var tableClasses = (a.getAttribute('class')).split(' '); + this.setValue(mj_in_array('table-condensed', tableClasses)); + } + } + ] + } + ] +}, +``` + - image2 plugin. Add 'classes' field to its dialog. * Edit /lams_central/web/ckeditor/plugins/image2/dialogs/image2.js Index: lams_central/web/ckeditor/ckeditor.js =================================================================== diff -u -ra1b665aa0bd519d1c6e46fee803b9eb245fa6563 -rf4fbb4144a2d2b05c7ad0ebec33ee9a01d7e6ea5 --- lams_central/web/ckeditor/ckeditor.js (.../ckeditor.js) (revision a1b665aa0bd519d1c6e46fee803b9eb245fa6563) +++ lams_central/web/ckeditor/ckeditor.js (.../ckeditor.js) (revision f4fbb4144a2d2b05c7ad0ebec33ee9a01d7e6ea5) @@ -823,7 +823,7 @@ "subscript",b.coreStyles_subscript);d("Superscript",a.superscript,"superscript",b.coreStyles_superscript);c.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}});CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"};CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"};CKEDITOR.config.coreStyles_underline={element:"u"};CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"};CKEDITOR.config.coreStyles_subscript={element:"sub"}; CKEDITOR.config.coreStyles_superscript={element:"sup"};CKEDITOR.plugins.add("bootstrapTabs",{lang:"en,ru",requires:"dialog",icons:"bootstrapTabs",init:function(a){a.addCommand("bootstrapTabs",new CKEDITOR.dialogCommand("bootstrapTabsDialog",{allowedContent:"div ul li a[role,href,id,aria-*,data-number-of-tabs,data-tab-set-title,data-toggle](bootstrap-tabs,nav,nav-tabs,tab-link,active,tab-content,tab-pane,tab-pane-content)"}));a.ui.addButton("BootstrapTabs",{label:a.lang.bootstrapTabs.buttonLabel,command:"bootstrapTabs",toolbar:"insert"});CKEDITOR.dialog.add("bootstrapTabsDialog", this.path+"dialogs/bootstrapTabs.js");a.contextMenu&&(a.addMenuGroup("bootstrapTabsGroup"),a.addMenuItem("bootstrapTabsItem",{label:a.lang.bootstrapTabs.contextMenuLabel,icon:this.path+"icons/bootstrapTabs.png",command:"bootstrapTabs",group:"bootstrapTabsGroup"}),a.contextMenu.addListener(function(a){if(ascendant=a.getAscendant(function(a){return!(a instanceof CKEDITOR.dom.document)&&a.hasClass("bootstrap-tabs")}))return{bootstrapTabsItem:CKEDITOR.TRISTATE_OFF}}));a.on("doubleclick", -function(a){if(ascendant=a.data.element.getAscendant(function(a){return!(a instanceof CKEDITOR.dom.document)&&("a"==a.name&&"tab"==a.attributes.role||a.hasClass("bootstrap-tabs"))}))a.data.dialog="bootstrapTabsDialog"})}});CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function e(c){var b=this._;b.state!=CKEDITOR.TRISTATE_DISABLED&&(this.createPanel(c),b.on?b.panel.hide():b.panel.showBlock(this._.id,this.document.getById(this._.id),4))}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(c){var b=c.panel||{};delete c.panel;this.base(c);this.document=b.parent&&b.parent.getDocument()||CKEDITOR.document;b.block={attributes:b.attributes};b.toolbarRelated=!0;this.hasArrow= +function(a){if(ascendant=a.data.element.getAscendant(function(a){return!(a instanceof CKEDITOR.dom.document)&&(("a"==a.name&&"tab"==a.attributes.role)||a.hasClass("bootstrap-tabs"))}))a.data.dialog="bootstrapTabsDialog"})}});CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function e(c){var b=this._;b.state!=CKEDITOR.TRISTATE_DISABLED&&(this.createPanel(c),b.on?b.panel.hide():b.panel.showBlock(this._.id,this.document.getById(this._.id),4))}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(c){var b=c.panel||{};delete c.panel;this.base(c);this.document=b.parent&&b.parent.getDocument()||CKEDITOR.document;b.block={attributes:b.attributes};b.toolbarRelated=!0;this.hasArrow= "listbox";this.click=e;this._={panelDefinition:b}},statics:{handler:{create:function(c){return new CKEDITOR.ui.panelButton(c)}}},proto:{createPanel:function(c){var b=this._;if(!b.panel){var f=this._.panelDefinition,e=this._.panelDefinition.block,h=f.parent||CKEDITOR.document.getBody(),d=this._.panel=new CKEDITOR.ui.floatPanel(c,h,f),f=d.addBlock(b.id,e),a=this,g=c.getCommand(this.command);d.onShow=function(){a.className&&this.element.addClass(a.className+"_panel");a.setState(CKEDITOR.TRISTATE_ON); b.on=1;a.editorFocus&&c.focus();if(a.onOpen)a.onOpen()};d.onHide=function(d){a.className&&this.element.getFirst().removeClass(a.className+"_panel");!a.modes&&g?a.setStateFromCommand(g):a.setState(a.modes&&a.modes[c.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);b.on=0;if(!d&&a.onClose)a.onClose()};d.onEscape=function(){d.hide(1);a.document.getById(b.id).focus()};if(this.onBlock)this.onBlock(d,f);f.onHide=function(){b.on=0;!a.modes&&a.command?a.setStateFromCommand(g):a.setState(CKEDITOR.TRISTATE_OFF)}}}, setStateFromCommand:function(c){this.setState(c.state)}}})},beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_PANELBUTTON,CKEDITOR.ui.panelButton.handler)}});CKEDITOR.UI_PANELBUTTON="panelbutton";(function(){CKEDITOR.plugins.add("panel",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}});CKEDITOR.UI_PANEL="panel";CKEDITOR.ui.panel=function(a,b){b&&CKEDITOR.tools.extend(this,b);CKEDITOR.tools.extend(this,{className:"",css:[]});this.id=CKEDITOR.tools.getNextId();this.document=a;this.isFramed=this.forceIFrame||this.css.length;this._={blocks:{}}};CKEDITOR.ui.panel.handler={create:function(a){return new CKEDITOR.ui.panel(a)}};var g=CKEDITOR.addTemplate("panel", @@ -1135,17 +1135,14 @@ a.contextMenu&&a.contextMenu.addListener(function(a){if(a&&a.is("img")&&"iframe"==a.data("cke-real-element-type"))return{iframe:CKEDITOR.TRISTATE_OFF}})},afterInit:function(a){var b=a.dataProcessor;(b=b&&b.dataFilter)&&b.addRules({elements:{iframe:function(b){return a.createFakeParserElement(b,"cke_iframe","iframe",!0)}}})}})})();CKEDITOR.plugins.add("iframedialog",{requires:"dialog",onLoad:function(){CKEDITOR.dialog.addIframe=function(e,d,a,l,f,n,g){a={type:"iframe",src:a,width:"100%",height:"100%"};a.onContentLoad="function"==typeof n?n:function(){var a=this.getElement().$.contentWindow;if(a.onDialogEvent){var b=this.getDialog(),c=function(b){return a.onDialogEvent(b)};b.on("ok",c);b.on("cancel",c);b.on("resize",c);b.on("hide",function(a){b.removeListener("ok",c);b.removeListener("cancel",c);b.removeListener("resize",c); a.removeListener()});a.onDialogEvent({name:"load",sender:this,editor:b._.editor})}};var h={title:d,minWidth:l,minHeight:f,contents:[{id:"iframe",label:d,expand:!0,elements:[a],style:"width:"+a.width+";height:"+a.height}]},k;for(k in g)h[k]=g[k];this.add(e,function(){return h})};(function(){var e=function(d,a,l){if(!(3>arguments.length)){var f=this._||(this._={}),e=a.onContentLoad&&CKEDITOR.tools.bind(a.onContentLoad,this),g=CKEDITOR.tools.cssLength(a.width),h=CKEDITOR.tools.cssLength(a.height);f.frameId= CKEDITOR.tools.getNextId()+"_iframe";d.on("load",function(){CKEDITOR.document.getById(f.frameId).getParent().setStyles({width:g,height:h})});var k={src:"%2",id:f.frameId,frameborder:0,allowtransparency:!0},m=[];"function"==typeof a.onContentLoad&&(k.onload="CKEDITOR.tools.callFunction(%1);");CKEDITOR.ui.dialog.uiElement.call(this,d,a,m,"iframe",{width:g,height:h},k,"");l.push('\x3cdiv style\x3d"width:'+g+";height:"+h+';" id\x3d"'+this.domId+'"\x3e\x3c/div\x3e');m=m.join("");d.on("show",function(){var b= -CKEDITOR.document.getById(f.frameId).getParent(),c=CKEDITOR.tools.addFunction(e),c=m.replace("%1",c).replace("%2",CKEDITOR.tools.htmlEncode(a.src));b.setHtml(c)})}};e.prototype=new CKEDITOR.ui.dialog.uiElement;CKEDITOR.dialog.addUIElement("iframe",{build:function(d,a,l){return new e(d,a,l)}})})()}});(function(){function e(b,a){a||(a=b.getSelection().getSelectedElement());if(a&&a.is("img")&&!a.data("cke-realelement")&&!a.isReadOnly())return a}function f(b){var a=b.getStyle("float");if("inherit"==a||"none"==a)a=0;a||(a=b.getAttribute("align"));return a}CKEDITOR.plugins.add("image",{requires:"dialog",init:function(b){if(!b.plugins.detectConflict("image",["easyimage","image2"])){CKEDITOR.dialog.add("image",this.path+"dialogs/image.js");var a="img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}"; -CKEDITOR.dialog.isTabEnabled(b,"image","advanced")&&(a="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)");b.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:a,requiredContent:"img[alt,src]",contentTransformations:[["img{width}: sizeToStyle","img[width]: sizeToAttribute"],["img{float}: alignmentToStyle","img[align]: alignmentToAttribute"]]}));b.ui.addButton&&b.ui.addButton("Image",{label:b.lang.common.image,command:"image",toolbar:"insert,10"});b.on("doubleclick",function(b){var a= -b.data.element;!a.is("img")||a.data("cke-realelement")||a.isReadOnly()||(b.data.dialog="image")});b.addMenuItems&&b.addMenuItems({image:{label:b.lang.image.menu,command:"image",group:"image"}});b.contextMenu&&b.contextMenu.addListener(function(a){if(e(b,a))return{image:CKEDITOR.TRISTATE_OFF}})}},afterInit:function(b){function a(a){var d=b.getCommand("justify"+a);if(d){if("left"==a||"right"==a)d.on("exec",function(d){var c=e(b),g;c&&(g=f(c),g==a?(c.removeStyle("float"),a==f(c)&&c.removeAttribute("align")): -c.setStyle("float",a),d.cancel())});d.on("refresh",function(d){var c=e(b);c&&(c=f(c),this.setState(c==a?CKEDITOR.TRISTATE_ON:"right"==a||"left"==a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),d.cancel())})}}b.plugins.image2||(a("left"),a("right"),a("center"),a("block"))}})})();CKEDITOR.config.image_removeLinkByEmptyURL=!0;(function(){function F(a){function b(){this.deflated||(a.widgets.focused==this.widget&&(this.focused=!0),a.widgets.destroy(this.widget),this.deflated=!0)}function h(){var d=a.editable(),c=a.document;if(this.deflated)this.widget=a.widgets.initOn(this.element,"image",this.widget.data),this.widget.inline&&!(new CKEDITOR.dom.elementPath(this.widget.wrapper,d)).block&&(d=c.createElement(a.activeEnterMode==CKEDITOR.ENTER_P?"p":"div"),d.replace(this.widget.wrapper),this.widget.wrapper.move(d)),this.focused&& +CKEDITOR.document.getById(f.frameId).getParent(),c=CKEDITOR.tools.addFunction(e),c=m.replace("%1",c).replace("%2",CKEDITOR.tools.htmlEncode(a.src));b.setHtml(c)})}};e.prototype=new CKEDITOR.ui.dialog.uiElement;CKEDITOR.dialog.addUIElement("iframe",{build:function(d,a,l){return new e(d,a,l)}})})()}});(function(){function F(a){function b(){this.deflated||(a.widgets.focused==this.widget&&(this.focused=!0),a.widgets.destroy(this.widget),this.deflated=!0)}function h(){var d=a.editable(),c=a.document;if(this.deflated)this.widget=a.widgets.initOn(this.element,"image",this.widget.data),this.widget.inline&&!(new CKEDITOR.dom.elementPath(this.widget.wrapper,d)).block&&(d=c.createElement(a.activeEnterMode==CKEDITOR.ENTER_P?"p":"div"),d.replace(this.widget.wrapper),this.widget.wrapper.move(d)),this.focused&& (this.widget.focus(),delete this.focused),delete this.deflated;else{var f=this.widget,d=e,c=f.wrapper,b=f.data.align,f=f.data.hasCaption;if(d){for(var x=3;x--;)c.removeClass(d[x]);"center"==b?f&&c.addClass(d[1]):"none"!=b&&c.addClass(d[p[b]])}else"center"==b?(f?c.setStyle("text-align","center"):c.removeStyle("text-align"),c.removeStyle("float")):("none"==b?c.removeStyle("float"):c.setStyle("float",b),c.removeStyle("text-align"))}}var e=a.config.image2_alignClasses,g=a.config.image2_captionedClass; -return{allowedContent:G(a),requiredContent:"img[src,alt]",features:H(a),styleableElements:"img figure",contentTransformations:[["img[width]: sizeToAttribute"]],editables:{caption:{selector:"figcaption",allowedContent:"br em strong sub sup u s; a[!href,target]"}},parts:{image:"img",caption:"figcaption"},dialog:"image2",template:'\x3cimg alt\x3d"" src\x3d"" /\x3e',data:function(){var d=this.features;this.data.hasCaption&&!a.filter.checkFeature(d.caption)&&(this.data.hasCaption=!1);"none"==this.data.align|| +return{allowedContent:G(a),requiredContent:"img[src,alt]",features:H(a),styleableElements:"img figure",contentTransformations:[["img[width]: sizeToAttribute"]],editables:{caption:{selector:"figcaption",allowedContent:"br em strong sub sup u s; a[!href,target]"}},parts:{image:"img",caption:"figcaption"},dialog:"image2",template:'\x3cimg class\x3d"img-responsive" alt\x3d"" src\x3d"" /\x3e',data:function(){var d=this.features;this.data.hasCaption&&!a.filter.checkFeature(d.caption)&&(this.data.hasCaption=!1);"none"==this.data.align|| a.filter.checkFeature(d.align)||(this.data.align="none");this.shiftState({widget:this,element:this.element,oldData:this.oldData,newData:this.data,deflate:b,inflate:h});this.data.link?this.parts.link||(this.parts.link=this.parts.image.getParent()):this.parts.link&&delete this.parts.link;this.parts.image.setAttributes({src:this.data.src,"data-cke-saved-src":this.data.src,alt:this.data.alt});if(this.oldData&&!this.oldData.hasCaption&&this.data.hasCaption)for(var c in this.data.classes)this.parts.image.removeClass(c); if(a.filter.checkFeature(d.dimension)){d=this.data;d={width:d.width,height:d.height};c=this.parts.image;for(var e in d)d[e]?c.setAttribute(e,d[e]):c.removeAttribute(e)}this.oldData=CKEDITOR.tools.extend({},this.data)},init:function(){var d=CKEDITOR.plugins.image2,c=this.parts.image,b={hasCaption:!!this.parts.caption,src:c.getAttribute("src"),alt:c.getAttribute("alt")||"",width:c.getAttribute("width")||"",height:c.getAttribute("height")||"",lock:this.ready?d.checkHasNaturalRatio(c):!0},h=c.getAscendant("a"); h&&this.wrapper.contains(h)&&(this.parts.link=h);b.align||(c=b.hasCaption?this.element:c,e?(c.hasClass(e[0])?b.align="left":c.hasClass(e[2])&&(b.align="right"),b.align?c.removeClass(e[p[b.align]]):b.align="none"):(b.align=c.getStyle("float")||"none",c.removeStyle("float")));a.plugins.link&&this.parts.link&&(b.link=d.getLinkAttributesParser()(a,this.parts.link),(c=b.link.advanced)&&c.advCSSClasses&&(c.advCSSClasses=CKEDITOR.tools.trim(c.advCSSClasses.replace(/cke_\S+/,""))));this.wrapper[(b.hasCaption? "remove":"add")+"Class"]("cke_image_nocaption");this.setData(b);a.filter.checkFeature(this.features.dimension)&&!0!==a.config.image2_disableResizer&&I(this);this.shiftState=d.stateShifter(this.editor);this.on("contextMenu",function(a){a.data.image=CKEDITOR.TRISTATE_OFF;if(this.parts.link||this.wrapper.getAscendant("a"))a.data.link=a.data.unlink=CKEDITOR.TRISTATE_OFF})},addClass:function(a){q(this).addClass(a)},hasClass:function(a){return q(this).hasClass(a)},removeClass:function(a){q(this).removeClass(a)}, -getClasses:function(){var a=new RegExp("^("+[].concat(g,e).join("|")+")$");return function(){var c=this.repository.parseElementClasses(q(this).getAttribute("class")),b;for(b in c)a.test(b)&&delete c[b];return c}}(),upcast:J(a),downcast:K(a),getLabel:function(){return this.editor.lang.widget.label.replace(/%1/,(this.data.alt||"")+" "+this.pathName)}}}function J(a){var b=r(a),h=a.config.image2_captionedClass;return function(a,g){var d={width:1,height:1},c=a.name,f;if(!a.attributes["data-cke-realelement"]&& +getClasses:function(){var a=new RegExp("^("+[].concat(g,e).join("|")+")$");return function(){var c=this.repository.parseElementClasses(q(this).getAttribute("class")),b;for(b in c)a.test(b)&&delete c[b];return c}}(),upcast:J(a),downcast:K(a),getLabel:function(){return this.editor.lang.widget.label.replace(/%1/,(this.data.alt||"")+" "+this.pathName)}}}function J(a){var b=r(a),h=a.config.image2_captionedClass;return function(a,g){var d={width:1,height:1},c=a.name,f;if(!a.attributes["data-cke-realelement"]&&!a.attributes["data-jlatexmath"]&& (b(a)?("div"==c&&(f=a.getFirst("figure"))&&(a.replaceWith(f),a=f),g.align="center",f=a.getFirst("img")||a.getFirst("a").getFirst("img")):"figure"==c&&a.hasClass(h)?f=a.find(function(a){return"img"===a.name&&-1!==CKEDITOR.tools.array.indexOf(["figure","a"],a.parent.name)},!0)[0]:m(a)&&(f="a"==a.name?a.children[0]:a),f)){for(var D in d)(d=f.attributes[D])&&d.match(L)&&delete f.attributes[D];return a}}}function K(a){var b=a.config.image2_alignClasses;return function(a){var e="a"==a.name?a.getFirst(): a,g=e.attributes,d=this.data.align;if(!this.inline){var c=a.getFirst("span");c&&c.replaceWith(c.getFirst({img:1,a:1}))}d&&"none"!=d&&(c=CKEDITOR.tools.parseCssText(g.style||""),"center"==d&&"figure"==a.name?a=a.wrapWith(new CKEDITOR.htmlParser.element("div",b?{"class":b[1]}:{style:"text-align:center"})):d in{left:1,right:1}&&(b?e.addClass(b[p[d]]):c["float"]=d),b||CKEDITOR.tools.isEmpty(c)||(g.style=CKEDITOR.tools.writeCssText(c)));return a}}function r(a){var b=a.config.image2_captionedClass,h=a.config.image2_alignClasses, e={figure:1,a:1,img:1};return function(g){if(!(g.name in{div:1,p:1}))return!1;var d=g.children;if(1!==d.length)return!1;d=d[0];if(!(d.name in e))return!1;if("p"==g.name){if(!m(d))return!1}else if("figure"==d.name){if(!d.hasClass(b))return!1}else if(a.enterMode==CKEDITOR.ENTER_P||!m(d))return!1;return(h?g.hasClass(h[1]):"center"==CKEDITOR.tools.parseCssText(g.attributes.style||"",!0)["text-align"])?!0:!1}}function m(a){return"img"==a.name?!0:"a"==a.name?1==a.children.length&&a.getFirst("img"):!1}function I(a){var b= @@ -1156,7 +1153,7 @@ center:1};c&&(void 0===h&&(h=a.filter.checkFeature(a.widgets.registered.image.features.align)),h?this.setState(c.data.align==e?CKEDITOR.TRISTATE_ON:e in g?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED):this.setState(CKEDITOR.TRISTATE_DISABLED),b.cancel())})}}}function O(a){if(a.plugins.link){var b=CKEDITOR.on("dialogDefinition",function(b){b=b.data;if("link"==b.name){b=b.definition;var e=b.onShow,g=b.onOk;b.onShow=function(){var b=k(a),c=this.getContentElement("info","linkDisplayText").getElement().getParent().getParent(); b&&(b.inline?!b.wrapper.getAscendant("a"):1)?(this.setupContent(b.data.link||{}),c.hide()):(c.show(),e.apply(this,arguments))};b.onOk=function(){var b=k(a);if(b&&(b.inline?!b.wrapper.getAscendant("a"):1)){var c={};this.commitContent(c);b.setData("link",c)}else g.apply(this,arguments)}}});a.on("destroy",function(){b.removeListener()});a.getCommand("unlink").on("exec",function(b){var e=k(a);e&&e.parts.link&&(e.setData("link",null),this.refresh(a,a.elementPath()),b.cancel())});a.getCommand("unlink").on("refresh", function(b){var e=k(a);e&&(this.setState(e.data.link||e.wrapper.getAscendant("a")?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),b.cancel())})}}function k(a){return(a=a.widgets.focused)&&"image"==a.name?a:null}function G(a){var b=a.config.image2_alignClasses;a={div:{match:r(a)},p:{match:r(a)},img:{attributes:"!src,alt,width,height"},figure:{classes:"!"+a.config.image2_captionedClass},figcaption:!0};b?(a.div.classes=b[1],a.p.classes=a.div.classes,a.img.classes=b[0]+","+b[2],a.figure.classes+=","+ -a.img.classes):(a.div.styles="text-align",a.p.styles="text-align",a.img.styles="float",a.figure.styles="float,display");return a}function H(a){a=a.config.image2_alignClasses;return{dimension:{requiredContent:"img[width,height]"},align:{requiredContent:"img"+(a?"("+a[0]+")":"{float}")},caption:{requiredContent:"figcaption"}}}function q(a){return a.data.hasCaption?a.element:a.parts.image}var P=new CKEDITOR.template('\x3cfigure class\x3d"{captionedClass}"\x3e\x3cimg alt\x3d"" src\x3d"" /\x3e\x3cfigcaption\x3e{captionPlaceholder}\x3c/figcaption\x3e\x3c/figure\x3e'), +a.img.classes):(a.div.styles="text-align",a.p.styles="text-align",a.img.styles="float",a.figure.styles="float,display");return a}function H(a){a=a.config.image2_alignClasses;return{dimension:{requiredContent:"img[width,height]"},align:{requiredContent:"img"+(a?"("+a[0]+")":"{float}")},caption:{requiredContent:"figcaption"}}}function q(a){return a.data.hasCaption?a.element:a.parts.image}var P=new CKEDITOR.template('\x3cfigure class\x3d"{captionedClass}"\x3e\x3cimg class\x3d"img-responsive" alt\x3d"" src\x3d"" /\x3e\x3cfigcaption\x3e{captionPlaceholder}\x3c/figcaption\x3e\x3c/figure\x3e'), p={left:0,center:1,right:2},L=/^\s*(\d+\%)\s*$/i;CKEDITOR.plugins.add("image2",{requires:"widget,dialog",icons:"image",hidpi:!0,onLoad:function(){CKEDITOR.addCss('.cke_image_nocaption{line-height:0}.cke_editable.cke_image_sw, .cke_editable.cke_image_sw *{cursor:sw-resize !important}.cke_editable.cke_image_se, .cke_editable.cke_image_se *{cursor:se-resize !important}.cke_image_resizer{display:none;position:absolute;width:10px;height:10px;bottom:-5px;right:-5px;background:#000;outline:1px solid #fff;line-height:0;cursor:se-resize;}.cke_image_resizer_wrapper{position:relative;display:inline-block;line-height:0;}.cke_image_resizer.cke_image_resizer_left{right:auto;left:-5px;cursor:sw-resize;}.cke_widget_wrapper:hover .cke_image_resizer,.cke_image_resizer.cke_image_resizing{display:block}.cke_editable[contenteditable\x3d"false"] .cke_image_resizer{display:none;}.cke_widget_wrapper\x3ea{display:inline-block}')}, init:function(a){if(!a.plugins.detectConflict("image2",["easyimage"])){var b=a.config,h=a.lang.image2,e=F(a);b.filebrowserImage2BrowseUrl=b.filebrowserImageBrowseUrl;b.filebrowserImage2UploadUrl=b.filebrowserImageUploadUrl;e.pathName=h.pathName;e.editables.caption.pathName=h.pathNameCaption;a.widgets.add("image",e);a.ui.addButton&&a.ui.addButton("Image",{label:a.lang.common.image,command:"image",toolbar:"insert,10"});a.contextMenu&&(a.addMenuGroup("image",10),a.addMenuItem("image",{label:h.menu,command:"image", group:"image"}));CKEDITOR.dialog.add("image2",this.path+"dialogs/image2.js")}},afterInit:function(a){var b={left:1,right:1,center:1,block:1},h=N(a),e;for(e in b)h(e);O(a)}});CKEDITOR.plugins.image2={stateShifter:function(a){function b(a,b){var c={};g?c.attributes={"class":g[1]}:c.styles={"text-align":"center"};c=e.createElement(a.activeEnterMode==CKEDITOR.ENTER_P?"p":"div",c);h(c,b);b.move(c);return c}function h(b,d){if(d.getParent()){var e=a.createRange();e.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START); @@ -1234,7 +1231,7 @@ b.notification:!0})}});CKEDITOR.plugins.clipboard.addPasteButton(a,"PasteFromWord",{label:a.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});a.pasteTools.register({filters:a.config.pasteFromWordCleanupFile?[a.config.pasteFromWordCleanupFile]:e,canHandle:function(a){a=CKEDITOR.plugins.pastetools.getClipboardData(a.data,"text/html");var b=CKEDITOR.plugins.pastetools.getContentGeneratorName(a),d=/(class="?Mso|style=["'][^"]*?\bmso\-|w:WordDocument||<\/font>)/,b=b?"microsoft"=== b:d.test(a);return a&&(f||b)},handle:function(e,b){var d=e.data,c=CKEDITOR.plugins.pastetools.getClipboardData(d,"text/html"),g=CKEDITOR.plugins.pastetools.getClipboardData(d,"text/rtf"),c={dataValue:c,dataTransfer:{"text/rtf":g}};if(!1!==a.fire("pasteFromWord",c)||f){d.dontFilter=!0;if(f||!a.config.pasteFromWordPromptCleanup||confirm(a.lang.pastefromword.confirmCleanup))c.dataValue=CKEDITOR.cleanWord(c.dataValue,a),CKEDITOR.plugins.clipboard.isCustomDataTypesSupported&&k&&CKEDITOR.pasteFilters.image&& (c.dataValue=CKEDITOR.pasteFilters.image(c.dataValue,a,g)),a.fire("afterPasteFromWord",c),d.dataValue=c.dataValue,!0===a.config.forcePasteAsPlainText?d.type="text":CKEDITOR.plugins.clipboard.isCustomCopyCutSupported||"allow-word"!==a.config.forcePasteAsPlainText||(d.type="html");f=0;b()}}})}})})();(function(){function h(a){var e=CKEDITOR.plugins.getPath("preview"),d=a.config,g=a.lang.preview.preview,f=function(){var a=location.origin,b=location.pathname;if(!d.baseHref&&!CKEDITOR.env.gecko)return"";if(d.baseHref)return'\x3cbase href\x3d"{HREF}"\x3e'.replace("{HREF}",d.baseHref);b=b.split("/");b.pop();b=b.join("/");return'\x3cbase href\x3d"{HREF}"\x3e'.replace("{HREF}",a+b+"/")}();return d.fullPage?a.getData().replace(//,"$\x26"+f).replace(/[^>]*(?=<\/title>)/,"$\x26 \x26mdash; "+g):d.docType+ -'\x3chtml dir\x3d"'+d.contentsLangDirection+'"\x3e\x3chead\x3e'+f+"\x3ctitle\x3e"+g+"\x3c/title\x3e"+CKEDITOR.tools.buildStyleHtml(d.contentsCss)+'\x3clink rel\x3d"stylesheet" media\x3d"screen" href\x3d"'+e+'styles/screen.css"\x3e\x3c/head\x3e'+function(){var c="\x3cbody\x3e",b=a.document&&a.document.getBody();if(!b)return c;b.getAttribute("id")&&(c=c.replace("\x3e",' id\x3d"'+b.getAttribute("id")+'"\x3e'));b.getAttribute("class")&&(c=c.replace("\x3e",' class\x3d"'+b.getAttribute("class")+'"\x3e')); +'\x3chtml dir\x3d"'+d.contentsLangDirection+'"\x3e\x3chead\x3e'+f+"\x3ctitle\x3e"+g+"\x3c/title\x3e"+CKEDITOR.tools.buildStyleHtml(d.contentsCss)+""+'\x3clink rel\x3d"stylesheet" media\x3d"screen" href\x3d"'+e+'styles/screen.css"\x3e\x3c/head\x3e'+function(){var c="\x3cbody\x3e",b=a.document&&a.document.getBody();if(!b)return c;b.getAttribute("id")&&(c=c.replace("\x3e",' id\x3d"'+b.getAttribute("id")+'"\x3e')); return c}()+a.getData()+"\x3c/body\x3e\x3c/html\x3e"}CKEDITOR.plugins.add("preview",{init:function(a){a.addCommand("preview",{modes:{wysiwyg:1},canUndo:!1,readOnly:1,exec:CKEDITOR.plugins.preview.createPreview});a.ui.addButton&&a.ui.addButton("Preview",{label:a.lang.preview.preview,command:"preview",toolbar:"document,40"})}});CKEDITOR.plugins.preview={createPreview:function(a){var e,d,g,f={dataValue:h(a)},c=window.screen;e=Math.round(.8*c.width);d=Math.round(.7*c.height);g=Math.round(.1*c.width); c=CKEDITOR.env.ie?"javascript:void( (function(){document.open();"+("("+CKEDITOR.tools.fixDomain+")();").replace(/\/\/.*?\n/g,"").replace(/parent\./g,"window.opener.")+"document.write( window.opener._cke_htmlToLoad );document.close();window.opener._cke_htmlToLoad \x3d null;})() )":null;var b;b=CKEDITOR.plugins.getPath("preview");b=CKEDITOR.env.gecko?CKEDITOR.getUrl(b+"preview.html"):"";if(!1===a.fire("contentPreview",f))return!1;if(c||b)window._cke_htmlToLoad=f.dataValue;a=window.open(b,null,["toolbar\x3dyes,location\x3dno,status\x3dyes,menubar\x3dyes,scrollbars\x3dyes,resizable\x3dyes", "width\x3d"+e,"height\x3d"+d,"left\x3d"+g].join());c&&a&&(a.location=c);window._cke_htmlToLoad||(e=a.document,e.open(),e.write(f.dataValue),e.close());return new CKEDITOR.dom.window(a)}}})();CKEDITOR.plugins.add("resize",{init:function(b){function f(d){var e=c.width,m=c.height,f=e+(d.data.$.screenX-n.x)*("rtl"==g?-1:1);d=m+(d.data.$.screenY-n.y);h&&(e=Math.max(a.resize_minWidth,Math.min(f,a.resize_maxWidth)));p&&(m=Math.max(a.resize_minHeight,Math.min(d,a.resize_maxHeight)));b.resize(h?e:null,m)}function k(){CKEDITOR.document.removeListener("mousemove",f);CKEDITOR.document.removeListener("mouseup",k);b.document&&(b.document.removeListener("mousemove",f),b.document.removeListener("mouseup", @@ -1334,4 +1331,4 @@ (a=a.replace(/]*>/,"$\x26\x3c!-- cke-content-start --\x3e")));c='\x3cscript id\x3d"cke_actscrpt" type\x3d"text/javascript"'+(CKEDITOR.env.ie?' defer\x3d"defer" ':"")+"\x3evar wasLoaded\x3d0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+this._.frameLoadedHandler+",window);wasLoaded\x3d1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"\x3c/script\x3e";CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(c+='\x3cscript id\x3d"cke_shimscrpt"\x3ewindow.parent.CKEDITOR.tools.enableHtml5Elements(document)\x3c/script\x3e'); h&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(c+='\x3cscript id\x3d"cke_basetagscrpt"\x3evar baseTag \x3d document.querySelector( "base" );baseTag.href \x3d baseTag.href;\x3c/script\x3e');a=a.replace(/(?=\s*<\/(:?head)>)/,c);this.clearCustomData();this.clearListeners();b.fire("contentDomUnload");var k=this.getDocument();try{k.write(a)}catch(l){setTimeout(function(){k.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();a=this.editor;var e=a.config,b=e.fullPage,c=b&&a.docType,d=b&&a.xmlDeclaration, f=this.getDocument(),b=b?f.getDocumentElement().getOuterHtml():f.getBody().getHtml();CKEDITOR.env.gecko&&e.enterMode!=CKEDITOR.ENTER_BR&&(b=b.replace(/
(?=\s*(:?$|<\/body>))/,""));b=a.dataProcessor.toDataFormat(b);d&&(b=d+"\n"+b);c&&(b=c+"\n"+b);return b},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:l.baseProto.focus.call(this)},detach:function(){var a=this.editor,e=a.document,a=a.container.findOne("iframe.cke_wysiwyg_frame");l.baseProto.detach.call(this);this.clearCustomData(this._.expandoNumber); -e.getDocumentElement().clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);a&&(a.clearCustomData(),(e=a.removeCustomData("onResize"))&&e.removeListener(),a.isDetached()||a.remove())}}})})();CKEDITOR.config.disableObjectResizing=!1;CKEDITOR.config.disableNativeTableHandles=!0;CKEDITOR.config.disableNativeSpellChecker=!0;CKEDITOR.config.plugins='dialogui,dialog,notification,button,toolbar,clipboard,textmatch,fakeobjects,link,autolink,undo,autoembed,autogrow,basicstyles,bootstrapTabs,panelbutton,panel,floatpanel,colorbutton,colordialog,menu,contextmenu,copyformatting,dialogadvtab,div,elementspath,lineutils,widgetselection,widget,notificationaggregator,embedbase,embed,emojione,enterkey,entities,popup,filetools,filebrowser,find,flash,floatingspace,listblock,richcombo,font,format,forms,horizontalrule,html5audio,htmlwriter,iframe,iframedialog,image,image2,indent,indentblock,indentlist,justify,list,liststyle,maximize,xml,ajax,pastetools,pastefromword,preview,resize,showborders,sourcearea,sourcedialog,stylescombo,tab,table,tabletools,tableselection,templates,wysiwygarea';CKEDITOR.config.skin='office2013';(function() {var setIcons = function(icons, strip) {var path = CKEDITOR.getUrl( 'plugins/' + strip );icons = icons.split( ',' );for ( var i = 0; i < icons.length; i++ )CKEDITOR.skin.icons[ icons[ i ] ] = { path: path, offset: -icons[ ++i ], bgsize : icons[ ++i ] };};if (CKEDITOR.env.hidpi) setIcons('copy-rtl,0,60px,copy,68,60px,cut-rtl,136,60px,cut,204,60px,paste-rtl,272,60px,paste,340,60px,anchor-rtl,408,60px,anchor,476,60px,link,544,60px,unlink,612,60px,redo-rtl,680,60px,redo,748,60px,undo-rtl,816,60px,undo,884,60px,bold,952,60px,italic,1020,60px,strike,1088,60px,subscript,1156,60px,superscript,1224,60px,underline,1292,60px,bootstrapTabs,2720,auto,bgcolor,1428,60px,textcolor,1496,60px,copyformatting,1564,60px,creatediv,1632,60px,embed,1700,60px,emojione,3536,auto,find-rtl,1836,60px,find,1904,60px,replace,1972,60px,flash,2040,60px,button,2108,60px,checkbox,2176,60px,form,2244,60px,hiddenfield,2312,60px,imagebutton,2380,60px,radio,2448,60px,select-rtl,2516,60px,select,2584,60px,textarea-rtl,2652,60px,textarea,2720,60px,textfield-rtl,2788,60px,textfield,2856,60px,horizontalrule,2924,60px,html5audio,2992,60px,iframe,3060,60px,image,3128,60px,indent-rtl,3196,60px,indent,3264,60px,outdent-rtl,3332,60px,outdent,3400,60px,justifyblock,3468,60px,justifycenter,3536,60px,justifyleft,3604,60px,justifyright,3672,60px,bulletedlist-rtl,3740,60px,bulletedlist,3808,60px,numberedlist-rtl,3876,60px,numberedlist,3944,60px,maximize,4012,60px,pastefromword-rtl,4080,60px,pastefromword,4148,60px,preview-rtl,4216,60px,preview,4284,60px,source-rtl,4352,60px,source,4420,60px,sourcedialog-rtl,4488,60px,sourcedialog,4556,60px,table,4624,60px,templates-rtl,4692,60px,templates,4760,60px','icons_hidpi.png');else setIcons('copy-rtl,0,auto,copy,128,auto,cut-rtl,256,auto,cut,384,auto,paste-rtl,512,auto,paste,640,auto,anchor-rtl,768,auto,anchor,896,auto,link,1024,auto,unlink,1152,auto,redo-rtl,1280,auto,redo,1408,auto,undo-rtl,1536,auto,undo,1664,auto,bold,1792,auto,italic,1920,auto,strike,2048,auto,subscript,2176,auto,superscript,2304,auto,underline,2432,auto,bootstrapTabs,2560,auto,bgcolor,2688,auto,textcolor,2816,auto,copyformatting,2944,auto,creatediv,3072,auto,embed,3200,auto,emojione,3328,auto,find-rtl,3456,auto,find,3584,auto,replace,3712,auto,flash,3840,auto,button,3968,auto,checkbox,4096,auto,form,4224,auto,hiddenfield,4352,auto,imagebutton,4480,auto,radio,4608,auto,select-rtl,4736,auto,select,4864,auto,textarea-rtl,4992,auto,textarea,5120,auto,textfield-rtl,5248,auto,textfield,5376,auto,horizontalrule,5504,auto,html5audio,5632,auto,iframe,5760,auto,image,5888,auto,indent-rtl,6016,auto,indent,6144,auto,outdent-rtl,6272,auto,outdent,6400,auto,justifyblock,6528,auto,justifycenter,6656,auto,justifyleft,6784,auto,justifyright,6912,auto,bulletedlist-rtl,7040,auto,bulletedlist,7168,auto,numberedlist-rtl,7296,auto,numberedlist,7424,auto,maximize,7552,auto,pastefromword-rtl,7680,auto,pastefromword,7808,auto,preview-rtl,7936,auto,preview,8064,auto,source-rtl,8192,auto,source,8320,auto,sourcedialog-rtl,8448,auto,sourcedialog,8576,auto,table,8704,auto,templates-rtl,8832,auto,templates,8960,auto','icons.png');})();CKEDITOR.lang.languages={"de":1,"el":1,"en":1,"en-au":1,"es":1,"fr":1,"it":1,"no":1,"pl":1,"pt-br":1,"ru":1,"sv":1,"tr":1,"zh":1,"zh-cn":1};}()); \ No newline at end of file +e.getDocumentElement().clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);a&&(a.clearCustomData(),(e=a.removeCustomData("onResize"))&&e.removeListener(),a.isDetached()||a.remove())}}})})();CKEDITOR.config.disableObjectResizing=!1;CKEDITOR.config.disableNativeTableHandles=!0;CKEDITOR.config.disableNativeSpellChecker=!0;CKEDITOR.config.plugins='dialogui,dialog,notification,button,toolbar,clipboard,textmatch,fakeobjects,link,autolink,undo,autoembed,autogrow,basicstyles,bootstrapTabs,panelbutton,panel,floatpanel,colorbutton,colordialog,menu,contextmenu,copyformatting,dialogadvtab,div,elementspath,lineutils,widgetselection,widget,notificationaggregator,embedbase,embed,emojione,enterkey,entities,popup,filetools,filebrowser,find,flash,floatingspace,listblock,richcombo,font,format,forms,horizontalrule,html5audio,htmlwriter,iframe,iframedialog,image2,indent,indentblock,indentlist,justify,list,liststyle,maximize,xml,ajax,pastetools,pastefromword,preview,resize,showborders,sourcearea,sourcedialog,stylescombo,tab,table,tabletools,tableselection,templates,wysiwygarea';CKEDITOR.config.skin='office2013';(function() {var setIcons = function(icons, strip) {var path = CKEDITOR.getUrl( 'plugins/' + strip );icons = icons.split( ',' );for ( var i = 0; i < icons.length; i++ )CKEDITOR.skin.icons[ icons[ i ] ] = { path: path, offset: -icons[ ++i ], bgsize : icons[ ++i ] };};if (CKEDITOR.env.hidpi) setIcons('copy-rtl,0,60px,copy,68,60px,cut-rtl,136,60px,cut,204,60px,paste-rtl,272,60px,paste,340,60px,anchor-rtl,408,60px,anchor,476,60px,link,544,60px,unlink,612,60px,redo-rtl,680,60px,redo,748,60px,undo-rtl,816,60px,undo,884,60px,bold,952,60px,italic,1020,60px,strike,1088,60px,subscript,1156,60px,superscript,1224,60px,underline,1292,60px,bootstrapTabs,2720,auto,bgcolor,1428,60px,textcolor,1496,60px,copyformatting,1564,60px,creatediv,1632,60px,embed,1700,60px,emojione,3536,auto,find-rtl,1836,60px,find,1904,60px,replace,1972,60px,flash,2040,60px,button,2108,60px,checkbox,2176,60px,form,2244,60px,hiddenfield,2312,60px,imagebutton,2380,60px,radio,2448,60px,select-rtl,2516,60px,select,2584,60px,textarea-rtl,2652,60px,textarea,2720,60px,textfield-rtl,2788,60px,textfield,2856,60px,horizontalrule,2924,60px,html5audio,2992,60px,iframe,3060,60px,image,3128,60px,indent-rtl,3196,60px,indent,3264,60px,outdent-rtl,3332,60px,outdent,3400,60px,justifyblock,3468,60px,justifycenter,3536,60px,justifyleft,3604,60px,justifyright,3672,60px,bulletedlist-rtl,3740,60px,bulletedlist,3808,60px,numberedlist-rtl,3876,60px,numberedlist,3944,60px,maximize,4012,60px,pastefromword-rtl,4080,60px,pastefromword,4148,60px,preview-rtl,4216,60px,preview,4284,60px,source-rtl,4352,60px,source,4420,60px,sourcedialog-rtl,4488,60px,sourcedialog,4556,60px,table,4624,60px,templates-rtl,4692,60px,templates,4760,60px','icons_hidpi.png');else setIcons('copy-rtl,0,auto,copy,128,auto,cut-rtl,256,auto,cut,384,auto,paste-rtl,512,auto,paste,640,auto,anchor-rtl,768,auto,anchor,896,auto,link,1024,auto,unlink,1152,auto,redo-rtl,1280,auto,redo,1408,auto,undo-rtl,1536,auto,undo,1664,auto,bold,1792,auto,italic,1920,auto,strike,2048,auto,subscript,2176,auto,superscript,2304,auto,underline,2432,auto,bootstrapTabs,2560,auto,bgcolor,2688,auto,textcolor,2816,auto,copyformatting,2944,auto,creatediv,3072,auto,embed,3200,auto,emojione,3328,auto,find-rtl,3456,auto,find,3584,auto,replace,3712,auto,flash,3840,auto,button,3968,auto,checkbox,4096,auto,form,4224,auto,hiddenfield,4352,auto,imagebutton,4480,auto,radio,4608,auto,select-rtl,4736,auto,select,4864,auto,textarea-rtl,4992,auto,textarea,5120,auto,textfield-rtl,5248,auto,textfield,5376,auto,horizontalrule,5504,auto,html5audio,5632,auto,iframe,5760,auto,image,5888,auto,indent-rtl,6016,auto,indent,6144,auto,outdent-rtl,6272,auto,outdent,6400,auto,justifyblock,6528,auto,justifycenter,6656,auto,justifyleft,6784,auto,justifyright,6912,auto,bulletedlist-rtl,7040,auto,bulletedlist,7168,auto,numberedlist-rtl,7296,auto,numberedlist,7424,auto,maximize,7552,auto,pastefromword-rtl,7680,auto,pastefromword,7808,auto,preview-rtl,7936,auto,preview,8064,auto,source-rtl,8192,auto,source,8320,auto,sourcedialog-rtl,8448,auto,sourcedialog,8576,auto,table,8704,auto,templates-rtl,8832,auto,templates,8960,auto','icons.png');})();CKEDITOR.lang.languages={"de":1,"el":1,"en":1,"en-au":1,"es":1,"fr":1,"it":1,"no":1,"pl":1,"pt-br":1,"ru":1,"sv":1,"tr":1,"zh":1,"zh-cn":1};}()); \ No newline at end of file Index: lams_central/web/includes/javascript/ckconfig_custom.js =================================================================== diff -u -r228804d048290a0597c798197cd24e3c3445650c -rf4fbb4144a2d2b05c7ad0ebec33ee9a01d7e6ea5 --- lams_central/web/includes/javascript/ckconfig_custom.js (.../ckconfig_custom.js) (revision 228804d048290a0597c798197cd24e3c3445650c) +++ lams_central/web/includes/javascript/ckconfig_custom.js (.../ckconfig_custom.js) (revision f4fbb4144a2d2b05c7ad0ebec33ee9a01d7e6ea5) @@ -129,8 +129,8 @@ CKEDITOR.config.bootsnippets_files = [CKEDITOR.basePath + '../www/public/ckeditor-templates/bootsnippets.js']; CKEDITOR.config.format_tags = 'div;h1;h2;h3;h4;h5;h6;pre;address;p' ; CKEDITOR.plugins.addExternal('wikilink', CKEDITOR.basePath + '../tool/lawiki10/wikilink/', 'plugin.js'); -// html5audio and bootstrapTabs are available but not used anymore; they probably need fixes as in CKEditor README doc -CKEDITOR.config.extraPlugins = 'wikilink,jlatexmath,image2,confighelper,bootpanel,bootsnippets,wavepanel'; +// html5audio is available but not used anymore; it probably needs fixes as in CKEditor README doc +CKEDITOR.config.extraPlugins = 'wikilink,jlatexmath,image2,confighelper,bootstrapTabs,bootpanel,bootsnippets,wavepanel'; CKEDITOR.config.enterMode = CKEDITOR.ENTER_DIV; CKEDITOR.config.removePlugins = 'elementspath,about,specialchar'; CKEDITOR.config.allowedContent = true;