Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-41146

Javascript Minifier errors when using CKeditor in Weblogic 12.1.2

    XMLWordPrintable

    Details

    • Fix Priority:
      5

      Description

      To configure this environment, add the following lines to app.server.WHOAMI.properties:

      app.server.weblogic.version=12.1.2
      app.server.weblogic.version.build=1212

      finally, run these commands:

      1. ant -f build-dist.xml unzip-weblogic && ant all

      This happens on Weblogic 12.1.2 Tested against latest master. This issue did NOT exist in RC3.

      Steps to reproduce:
      1. Add Blogs Portlet
      2. Add Blogs Entry

      Expected Results:
      CKeditor works as expected.

      Actual Results:
      CKeditor works but throws minifier errors.

      12:39:19,070 ERROR [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'][MinifierUtil:87] 1: 2: illegal character
      12:39:19,071 ERROR [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'][MinifierUtil:87] 1: 2: syntax error
      12:39:19,073 ERROR [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'][MinifierUtil:87] 1: 3: illegal character
      12:39:19,251 ERROR [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'][MinifierUtil:87] 1: 0: Compilation produced 3 syntax errors.
      12:50:50,035 ERROR [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'][MinifierUtil:87] JavaScript Minifier failed for_/*_Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved._For licensing, see LICENSE.html or http://ckeditor.com/license_*/_(function(){if(
      ,search:function(a,b){var f=CKEDITOR.tools.indexOf(a,b);return f>=0?a[f]:null},bind:function(a,_b){return function(){return a.apply(b,arguments)}},createClass:function(a){var b=a.$,f=a.base,g=a.privates||a._,e=a.proto,a=a.statics;!b&&(b=function(){f&&this.base.apply(this,arguments)});if(g)var i=b,b=function(){
      T=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,CKEDITOR.POSITION_IDENTICAL=0,CKEDITOR.POSITION_DISCONNECTED=1,CKEDITOR.POSITION_FOLLOWING=2,CKEDITOR.POSITION_PRECEDING=4,CKEDITOR.POSITION_IS_CONTAINED=8,CKEDITOR.POSITION_CONTAINS=16,CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(b,c){b.append(thi
      n b(a){for(var b=0,f=0,g=c[a].length;f<g;f++)b=b+(parseInt(this.getComputedStyle(c[a][f])||0,10)||0);return b}CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:function(a){var b=_this.$.className;b&&(RegExp("(?:^|\\s)"+a+"(?:\\s|$)","").test(b)||(b=b+(" "+a)));this.$.cla
      dding")){var f=["top",_"left","right","bottom"],g;a=="border"&&(g=["color","style","width"]);for(var b=[],e=0;e<f.length;e++)if(g)for(var i=0;i<g.length;i++)b.push([a,f[e],g[i]].join("-"));else b.push([a,f[e]].join("-"));for(a=0;a<b.length;a++)this.removeStyle(b[a])}else{b.removeProperty?b.removeProperty(a):b.
      okmark")}return function(g){var k,f;k=g&&g.type!=CKEDITOR.NODE_ELEMENT&&(f=g.getParent())&&d(f);k=a?k:k||d(g);return!!(b^k)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(b){var d;b&&b.type==CKEDITOR.NODE_TEXT&&(d=!CKEDITOR.tools.trim(b.getText())||CKEDITOR.env.webkit&&b.getText()=="ΓÇï");return
      h.getPrevious();else{if(h.type==CKEDITOR.NODE_TEXT){w=h.getText();/[^\s\ufeff]/.test(w)&&_(h=null);v=/[\s\ufeff]$/.test(w)}else if((h.$.offsetWidth>0||b&&h.is("br"))&&!h.data("cke-bookmark"))if(A&&CKEDITOR.dtd.$removeEmpty[h.getName()]){w=h.getText();if(/[^\s\ufeff]/.test(w))h=null;else for(var q=h.$.getElemen
      etParent()}return 1}return function(){var b=this.startContainer,d=this.endContainer;return!(a(b,d)&&a(d,b))}}(),moveToElementEditablePosition:function(b,d){if(b.type==CKEDITOR.NODE_ELEMENT&&!b.isEditable(false)){this.moveToPosition(b,d?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);return true}for
      n!b},a=function(a){if(b){b=false;a.data.preventDefault(true)}};CKEDITOR.keystrokeHandler.prototype={attach:function(b){b.on("keydown",c,this);if(CKEDITOR.env.opera||_CKEDITOR.env.gecko&&CKEDITOR.env.mac)b.on("keypress",a,this)}}}(),function(){CKEDITOR.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da
      a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function j(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var b=this.getData();this.config.htmlEncodeOutput&&(b=CKEDITOR.tools.htmlEncode(b));a.is("textarea")?a.setValue(b):a.setHtml(b);return true}return false}b.prot
      ter;this.writeChildrenHtml.call(this,a,b);a=a.getHtml();this.children=(new CKEDITOR.htmlParser.fragment.fromHtml(a)).children;e=1};b&&b.onRoot(this);this.writeChildrenHtml(a,e?null:b)},writeChildrenHtml:function(a,b,e){if(e&&!this.parent&&b)b.onRoot(this);_for(e=0;e<this.children.length;e++)this.children[e].wr
      s.spellcheck;_delete a.attributes.contenteditable},style:function(a){var b=a.children[0];b&&b.value&&(b.value=CKEDITOR.tools.trim(b.value));if(!a.attributes.type)a.attributes.type="text/css"},title:function(a){var b=a.children[0];!b&&i(a,b=new CKEDITOR.htmlParser.text);b.value=a.attributes["data-cke-title"]||"
      .setStyle("height",_Math.max(b-(c?0:(d.$.offsetHeight||0)-(h.$.clientHeight||0)),0)+"px");l&&(l.style.width="100%");this.fire("resize")};CKEDITOR.editor.prototype.getResizable=function(a){return a?this.ui.space("contents"):this.container};var f;CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.repla
      .preventDefault()}});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(b){if(b.data.$.button==2){b=b.data.getTarget();if(!b.getOuterHtml().replace(i,"")){var d=a.createRange();d.moveToElementEditStart(b);d.select(true)}}});if(CKEDITOR.env.webkit){this.attachListener(this,_"click",function(a){a.da
      (b!==false){var e,c=a.getDocument().getSelection().getNative(),f=c&&c.type!=_"None"&&c.getRangeAt(0);if(d.getLength()>1&&f&&f.intersectsNode(d.$)){e=[c.anchorOffset,c.focusOffset];f=c.focusNode==d.$&&c.focusOffset>0;c.anchorNode==d.$&&c.anchorOffset>0&&e[0]--;f&&e[1]--;var g;f=c;if(!f.isCollapsed){g=f.getRange
      ive();if(!d)return a;for(var e=0;e<d.rangeCount;e++){var c=d.getRangeAt(e);b=new CKEDITOR.dom.range(this.root);b.setStart(new CKEDITOR.dom.node(c.startContainer),c.startOffset);b.setEnd(new CKEDITOR.dom.node(c.endContainer),c.endOffset);a.push(b)}return a};return function(b){var d=this._.cache;if(d.ranges&&!b)
      (g);m.call(this,g);n.insertNode(g);g.mergeSiblings();CKEDITOR.env.ie||g.$.normalize()}else{g=new CKEDITOR.dom.element("span");n.extractContents().appendTo(g);n.insertNode(g);m.call(this,g);g.remove(true)}n=null}}a.moveToBookmark(j);_a.shrink(CKEDITOR.SHRINK_TEXT)}}function a(a){a.enlarge(CKEDITOR.ENLARGE_INLIN
      KEDITOR.style.getStyleText(d)){e.style||c++;e.style=g}e._length=c;d=d._AC=e}if(d._length){for(var i in d)if(i!="_length"){c=a.getAttribute(i)||"";if(i=="style")a:{e=d[i];typeof e=="string"&&(e=CKEDITOR.tools.parseCssText(e));typeof c=="string"&&(c=CKEDITOR.tools.parseCssText(c,true));g=void 0;for(g in e)if(!(g
      EDITOR._.pending;for(var a=0;a<b.length;a++){CKEDITOR.editor.prototype.constructor.apply(b[a][0],b[a][1]);CKEDITOR.add(b[a][0])}}}(),CKEDITOR.skin.name="moono",CKEDITOR.skin.ua_editor="ie,iequirks,ie7,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie7,ie8,opera",_CKEDITOR.skin.chameleon=function(){var b=funct
       a=this.getElement();_(function(){a.on("click",c.click,c);a.on("keydown",function(a){if(a.data.getKeystroke()in{32:1}){c.click();a.data.preventDefault()}})})();a.unselectable()},this);var f=CKEDITOR.tools.extend({},d);delete f.style;var g=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(th
      .formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this);this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(g);CKEDITOR.tools.removeFunction(h)})}CKEDITOR.env.gecko?setTimeout(a,500):a()},getValue:function(){return this.getInputElement
      role="presentation"></div><a id="cke_dialog_close_button_{id}" class="cke_dialog_close_button" href="javascript:void(0)" title="{closeTitle}" role="button"><span class="cke_label">X</span></a><div id="cke_dialog_tabs_{id}" class="cke_dialog_tabs" role="tablist"></div><table class="cke_dialog_contents" role="pr
      =this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var b=this._.parentDialog.getElement().getFirst();b.setStyle("z-index",parseInt(b.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else n(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._
      h:"+Math.floor(100/d.length)+"%");h&&e.push("height:"+o(h));c&&c.padding!=void 0&&e.push("padding:"+o(c.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&f[i].align)&&e.push("text-align:"+_f[i].align);e.length>0&&a.push('style="'+e.join("; ")+'" ');a.push(">",d[i],"</td>")}a.push("</tr></tbody>");return a.join(
      tChildCount()==_1&&!(e.getName()in b);)e=c;return e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in b&&e}}function a(a){return{context:"p",refresh:function(a,b){var d=a.config.useComputedState,c,d=d===void 0||d;if(!d){c=b.lastElement;for(var f=a.editable();c&&!(c.getName()in e||c.equals(f));){var g=c.getParent();if
      ();i.selectBookmarks(j);k.remove();var b;if(CKEDITOR.env.webkit&&(b=k.getFirst())&&b.is&&b.hasClass("Apple-style-span"))k=b;a.removeListener("selectionChange",g);d(k.getHtml())},0)}}function r(){if(CKEDITOR.env.ie){a.focus();f();var b=a.focusManager;b.lock();if(a.editable().fire(u)&&!h("paste")){b.unlock();ret
      n.click(b)},attach:function(a){this.button.attach(a)}},l=CKEDITOR.tools.addFunction(function(a){if(k.onkey){a=new CKEDITOR.dom.event(a);return k.onkey(k,a.getKeystroke())!==false}}),m=CKEDITOR.tools.addFunction(function(a){var b;k.onfocus&&_(b=k.onfocus(k,new CKEDITOR.dom.event(a))!==false);CKEDITOR.env.gecko&
      m.window(a.$.contentWindow),_k=j.getDocument(),l=this._.parentElement.getPositionedAncestor(),m=b.getDocumentPosition(k),k=l?l.getDocumentPosition(k):{x:0,y:0},n=this._.dir=="rtl",o=m.x+(g||0)-k.x,s=m.y+(e||0)-k.y;if(n&&(c==1||c==4))o=o+b.$.offsetWidth;else if(!n&&(c==2||c==3))o=o+(b.$.offsetWidth-1);if(c==3||
      o&&(c=c+' onblur="this.style.cssText = this.style.cssText;"');_var c=c+(' onmouseover="CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout="CKEDITOR.tools.callFunction({moveOutFn},{index});" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},{inde
      ,{exec:function(a){function b(c){if((c=CKEDITOR.plugins.div.getSurroundDiv(a,c))&&!c.data("cke-div-added")){d.push(c);c.data("cke-div-added")}}for(var c=a.getSelection(),g=c&&c.getRanges(),e,i=c.createBookmarks(),d=[],j=0;j<g.length;j++){e=g[j];if(e.collapsed)b(c.getStartElement());else{e=new CKEDITOR.dom.walk
      f(a.type==CKEDITOR.NODE_ELEMENT){CKEDITOR.dom.element.clearMarkers(b,a);if(a.getName()in CKEDITOR.dtd.$listItem){d=a;g=e=c=void 0;if(c=_d.getDirection()){for(e=d.getParent();e&&!(g=e.getDirection());)e=e.getParent();c==g&&d.removeAttribute("dir")}}}a=a.getNextSourceNode()}return{listNode:h,nextIndex:l}}};var m
      (),n=m.createBookmarks(1),o,s=(m&&m.getRanges(1)).createIterator();o=s.getNextRange();){for(var r=o.getCommonAncestor();r&&!(r.type==CKEDITOR.NODE_ELEMENT&&h[r.getName()]);)r=r.getParent();if(!r){var p=o.getEnclosedNode();if(p&&p.type==CKEDITOR.NODE_ELEMENT&&p.getName()in h){o.setStartAt(p,CKEDITOR.POSITION_AF
      e._.filebrowserSe=this;var f=e.config["filebrowser"+c(a.getName())+"WindowWidth"]||e.config.filebrowserWindowWidth||"80%",a=e.config["filebrowser"+c(a.getName())+"WindowHeight"]||e.config.filebrowserWindowHeight||"70%",g=this.filebrowser.params||_{};g.CKEditor=e.name;g.CKEditorFuncNum=e._.filebrowserFn;if(!g.l
      m",function(){c(a)})}});var h=CKEDITOR.document.getWindow(),_f=CKEDITOR.tools.cssLength}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var b=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),c=CKEDITOR.addTemplate("panel-list-item",'<li id
      itle);for(var a=0;a<k.length;a++){var b=_k[a];this.add(b,l[b].buildPreview(),b)}},onClick:function(a){b.focus();b.fire("saveSnapshot");var d=l[a];b[this.getValue()==a?"removeStyle":"applyStyle"](d);b.fire("saveSnapshot")},onRender:function(){b.on("selectionChange",function(a){for(var b=this.getValue(),a=a.data
      put.push(b)},comment:function(b){this._.indent&&this.indentation();this._.output.push("<\!--",b,"--\>")},lineBreak:function(){!this._.inPre&&this._.output.length>0&&this._.output.push(this.lineBreakChars);this._.indent=1},indentation:function(){!this._.inPre&&this._.indentation&&this._.output.push(this._.inden
      kCommand=function(){},CKEDITOR.unlinkCommand.prototype={exec:function(b){var c=new CKEDITOR.style({element:"a",_type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});b.removeStyle(c)},refresh:function(b,c){var a=c.lastElement&&c.lastElement.getAscendant("a",true);a&&a.getName()=="a"&&a.getAttribute("href")&&a.get
      -(h.left+h.right+g.left+g.right);j.bottom=j.top+j.outerHeight;j.right=j.left+j.outerWidth;if(a.inInlineMode)j.scroll={top:b.$.scrollTop,left:b.$.scrollLeft};return v({border:g,padding:h,margin:i,ignoreScroll:c},j,true)}function p(a,b,c){if(!j(b))return b.size=null;if(b.size){if(b.size.ignoreScroll==c&&b.size.d
      etSelection().selectRanges(k);(p=b.getSelection().getStartElement())&&p.scrollIntoView(true)}else j.$.scrollTo(l.x,l.y);_else{if(k){p.selectionStart=k[0];p.selectionEnd=k[1]}p.scrollLeft=l[0];p.scrollTop=l[1]}k=l=null;n=this.state;b.fire("maximize",this.state)},canUndo:false});b.ui.addButton&&b.ui.addButton("M
      ent.on("mousemove",l);CKEDITOR.document.on("mouseup",m);if(b.document){b.document.on("mousemove",l);b.document.on("mouseup",m)}e.preventDefault&&e.preventDefault()});b.on("destroy",function(){CKEDITOR.tools.removeFunction(n)});b.on("uiSpace",function(a){if(a.data.space=="bottom"){var c="";j&&!k&&(c=" cke_resiz
       S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ &euro; &lsquo; &rsquo; &ldquo; &rdquo; &ndash; &mdash; &iexcl; &cent; &pound; &curren; &yen; &brvbar; &sect; &uml; &copy; &ordf; &laquo; &not; &reg; &macr; &deg; &sup2; &sup3; &acute; &micro; &para; &middot; &cedil; &sup1; &
      (j=0;j<i;j++)if(e[j]){if(e[j].colSpan>1&&d[j]==e[j]){f=e[j];f.colSpan=f.colSpan+1}else{f=(new CKEDITOR.dom.element(e[j])).clone();f.removeAttribute("colSpan");!CKEDITOR.env.ie&&f.appendBogus();f[c?_"insertBefore":"insertAfter"].call(f,new CKEDITOR.dom.element(e[j]));f=f.$}j=j+(f.rowSpan-1)}}function g(a,b){var
      &&a.ui.addButton("Templates",{label:a.lang.templates.button,_command:"templates",toolbar:"doctools,10"})}});var b={},c={};CKEDITOR.addTemplates=function(a,c){b[a]=c};CKEDITOR.getTemplates=function(a){return b[a]};CKEDITOR.loadTemplates=function(a,b){for(var f=[],g=0,e=a.length;g<e;g++)if(!c[a[g]]){f.push(a[g])
      length;CKEDITOR.tools.setTimeout(function(){var a=this.editor.getSnapshot();CKEDITOR.env.ie&&(a=a.replace(/\s+data-cke-expando=".*?"/g,""));if(m.contents!=a&&n==this.snapshots.length){this.typing=true;this.save(false,m,false)||this.snapshots.splice(this.index+1,this.snapshots.length-this.index-1);this.hasUndo=
      ')+"<\/script>";CKEDITOR.env.ie&&CKEDITOR.env.version<9&&(g=g+'<script id="cke_shimscrpt">(function(){var e="abbr,article,aside,audio,bdi,canvas,data,datalist,details,figcaption,figure,footer,header,hgroup,mark,meter,nav,output,progress,section,summary,time,video".split(","),i=e.length;while(i--){document.crea
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lawrence.lee Lawrence Lee
                Reporter:
                lawrence.lee Lawrence Lee
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: