Lines Matching refs:K

135 0===y?(z=z.getChild(y),C=!0):z=z.getChild(y-1):E=C=!0;for(var N=z.getParents(),G=A.getParents(),V=m(),J=N.length-1,P=G.length-1,K=c,S,O,ca,fa=-1,Q=V;Q<=J;Q++){O=N[Q];ca=O.getNext();for(Q!=J||O.equals(G[Q])&&J<P?b&&(S=K.append(O.clone(0,e))):C?f(O,K,!1,E):H&&K.append(a.document.createText(O.substring(y)));ca;){if(ca.equals(G[Q])){fa=Q;break}ca=f(ca,K)}K=S}K=c;for(Q=V;Q<=P;Q++)if(c=G[Q],ca=c.getPrevious(),c.equals(N[Q]))b&&(K=K.getChild(0));else{Q!=P||c.equals(N[Q])&&P<J?b&&(S=K.append(c.clone(0,e))):
136 F?f(c,K,!1,I):L&&K.append(a.document.createText(c.substring(0,D)));if(Q>fa)for(;ca;)ca=f(ca,K,!0);K=S}r||h()}}function b(){var a=!1,b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(!0),d=CKEDITOR.dom.walker.bogus();return function(e){return c(e)||b(e)?!0:d(e)&&!a?a=!0:e.type==CKEDITOR.NODE_TEXT&&(e.hasAscendant("pre")||CKEDITOR.tools.trim(e.getText()).length)||e.type==CKEDITOR.NODE_ELEMENT&&!e.is(l)?!1:!0}}function c(a){var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(1);
208 k[h.name]||c.push({check:"el-up",el:h}));a.remove()}}else d in{style:1,script:1}?a.remove():(a.parent&&c.push({check:"it",el:a.parent}),a.replaceWithChildren())}function z(a,b,c){var d,e;for(d=0;d<c.length;++d)if(e=c[d],!(e.check&&!a.check(e.check,!1)||e.left&&!e.left(b))){e.right(b,K);break}}function A(a,b){var c=b.getDefinition(),d=c.attributes,e=c.styles,g,f,h,m;if(a.name!=c.element)return!1;for(g in d)if("class"==g)for(c=d[g].split(/\s+/),h=a.classes.join("|");m=c.pop();){if(-1==h.indexOf(m))return!1}else if(a.attributes[g]!=
222 P=/^(object|embed|param)$/,K;K=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,b,c){c=c||b;if(!(c in a.styles)){var d=a.attributes[b];d&&(/^\d+$/.test(d)&&(d+="px"),a.styles[c]=d)}delete a.attributes[b]},lengthToAttribute:function(a,b,c){c=c||b;if(!(c in a.attributes)){var d=a.styles[b],e=d&&d.match(/^(\d+)(?:\.\d*)?px$/);
941 CKEDITOR.env.needsNbspFiller&&7>=k.$.documentMode&&C.append(k.createText(" ")),C.append(p.listNode),p=p.nextIndex;else if(-1==H.indent&&!c&&h){d[h.getName()]?(C=H.element.clone(!1,!0),F!=h.getDirection(1)&&C.setAttribute("dir",F)):C=new CKEDITOR.dom.documentFragment(k);var n=h.getDirection(1)!=F,L=H.element,N=L.getAttribute("class"),G=L.getAttribute("style"),V=C.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(e!=CKEDITOR.ENTER_BR||n||G||N),J,P=H.contents.length,K;for(h=0;h<P;h++)if(J=H.contents[h],m(J)&&
942 1<P)V?K=J.clone(1,1):C.append(J.clone(1,1));else if(J.type==CKEDITOR.NODE_ELEMENT&&J.isBlockBoundary()){n&&!J.getDirection()&&J.setAttribute("dir",F);E=J;var S=L.getAttribute("style");S&&E.setAttribute("style",S.replace(/([^;])$/,"$1;")+(E.getAttribute("style")||""));N&&J.addClass(N);E=null;K&&(C.append(K),K=null);C.append(J.clone(1,1))}else V?(E||(E=k.createElement(I),C.append(E),n&&E.setAttribute("dir",F)),G&&E.setAttribute("style",G),N&&E.setAttribute("class",N),K&&(E.append(K),K=null),E.append(J.clone(1,
943 1))):C.append(J.clone(1,1));K&&((E||C).append(K),K=null);C.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&p!=a.length-1&&(CKEDITOR.env.needsBrFiller&&(F=C.getLast())&&F.type==CKEDITOR.NODE_ELEMENT&&F.is("br")&&F.remove(),(F=C.getLast(g))&&F.type==CKEDITOR.NODE_ELEMENT&&F.is(CKEDITOR.dtd.$block)||C.append(k.createElement("br")));F=C.$.nodeName.toLowerCase();"div"!=F&&"p"!=F||C.appendBogus();l.append(C);n=null;p++}else return null;E=null;if(a.length<=p||Math.max(a[p].indent,0)<t)break}if(b)for(a=l.getFirst();a;){if(a.type==
965 f.size.margin.top?e.size.bottom+e.size.margin.bottom:e.size.bottom+e.size.margin.bottom-f.size.margin.top:e?f||(k.top=e.size.bottom+e.size.margin.bottom):k.top=f.size.top-f.size.margin.top;d.is(P)||l(k.top,b.scroll.y-15,b.scroll.y+5)?(k.top=a.inInlineMode?0:b.scroll.y,this.look(P)):d.is(K)||l(k.top,b.pane.bottom-5,b.pane.bottom+15)?(k.top=a.inInlineMode?b.editable.height+b.editable.padding.top+b.editable.padding.bottom:b.pane.bottom-1,this.look(K)):(a.inInlineMode&&(k.top-=b.editable.top+b.editable.border.top),
972 2),b=b[h?"getLast":"getFirst"](function(a){return!(Z(a)||aa(a))});if(!b)return null;g(a,b)&&(b=a.line.wrap[h?"getPrevious":"getNext"](function(a){return!(Z(a)||aa(a))}));if(!n(b)||p(b)||!w(a,b))return null;r(a,b);return!h&&0<=b.size.top&&l(c.y,0,b.size.top+e)?(a=a.inInlineMode||0===d.scroll.y?P:S,new f([null,b,N,J,a])):h&&b.size.bottom<=d.pane.height&&l(c.y,b.size.bottom-e,d.pane.height)?(a=a.inInlineMode||l(b.size.bottom,d.pane.height-e,d.pane.height)?K:S,new f([b,null,G,J,a])):null}function x(a){var c=
974 (z(a),q&&l(c.y,h.size.bottom-g,d.pane.height)&&l(h.size.bottom,d.pane.height-g,d.pane.height)?m=K:l(c.y,0,h.size.top+g)&&(m=P)):m=S,k=[null,h][q?"reverse":"concat"]().concat([q?G:N,J,m,h.equals(a.editable[q?"getLast":"getFirst"](a.isRelevant))?q?K:P:S]);return 0 in k?new f(k):null}function B(a,b,c,d){for(var f=b.getDocumentPosition(),e={},g={},h={},k={},l=ba.length;l--;)e[ba[l]]=parseInt(b.getComputedStyle.call(b,"border-"+ba[l]+"-width"),10)||0,h[ba[l]]=parseInt(b.getComputedStyle.call(b,"padding-"+
983 d=b.count();d--;)if((c=b.getItem(d)).data("cke-magicline-hot")){l.hotNode=c;l.lastCmdDirection="true"===c.data("cke-magicline-dir")?!0:!1;return}}),this.backdoor={accessFocusSpace:h,boxTrigger:f,isLine:g,getAscendantTrigger:b,getNonEmptyNeighbour:e,getSize:B,that:l,triggerEdge:x,triggerEditable:u,triggerExpand:X})},this)}});var D=CKEDITOR.tools.extend,C=CKEDITOR.dom.element,F=C.createFromHtml,E=CKEDITOR.env,I=CKEDITOR.env.ie&&9>CKEDITOR.env.version,H=CKEDITOR.dtd,L={},N=128,G=64,V=32,J=16,P=4,K=2,
1082 modes:{wysiwyg:1},canUndo:!1});a.ui.addButton&&a.ui.addButton("SpecialChar",{label:a.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! \x26quot; # $ % \x26amp; ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; \x26lt; \x3d \x26gt; ? @ 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 [ ] ^ _ ` 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 { | } ~ \x26euro; \x26lsquo; \x26rsquo; \x26ldquo; \x26rdquo; \x26ndash; \x26mdash; \x26iexcl; \x26cent; \x26pound; \x26curren; \x26yen; \x26brvbar; \x26sect; \x26uml; \x26copy; \x26ordf; \x26laquo; \x26not; \x26reg; \x26macr; \x26deg; \x26sup2; \x26sup3; \x26acute; \x26micro; \x26para; \x26middot; \x26cedil; \x26sup1; \x26ordm; \x26raquo; \x26frac14; \x26frac12; \x26frac34; \x26iquest; \x26Agrave; \x26Aacute; \x26Acirc; \x26Atilde; \x26Auml; \x26Aring; \x26AElig; \x26Ccedil; \x26Egrave; \x26Eacute; \x26Ecirc; \x26Euml; \x26Igrave; \x26Iacute; \x26Icirc; \x26Iuml; \x26ETH; \x26Ntilde; \x26Ograve; \x26Oacute; \x26Ocirc; \x26Otilde; \x26Ouml; \x26times; \x26Oslash; \x26Ugrave; \x26Uacute; \x26Ucirc; \x26Uuml; \x26Yacute; \x26THORN; \x26szlig; \x26agrave; \x26aacute; \x26acirc; \x26atilde; \x26auml; \x26aring; \x26aelig; \x26ccedil; \x26egrave; \x26eacute; \x26ecirc; \x26euml; \x26igrave; \x26iacute; \x26icirc; \x26iuml; \x26eth; \x26ntilde; \x26ograve; \x26oacute; \x26ocirc; \x26otilde; \x26ouml; \x26divide; \x26oslash; \x26ugrave; \x26uacute; \x26ucirc; \x26uuml; \x26yacute; \x26thorn; \x26yuml; \x26OElig; \x26oelig; \x26#372; \x26#374 \x26#373 \x26#375; \x26sbquo; \x26#8219; \x26bdquo; \x26hellip; \x26trade; \x26#9658; \x26bull; \x26rarr; \x26rArr; \x26hArr; \x26diams; \x26asymp;".split(" "),
1106 e["up"==c||"left"==c?"unshift":"push"](new CKEDITOR.dom.element(t))}c=b.getDocument();var H=n,w=t=0,L=!d&&new CKEDITOR.dom.documentFragment(c),N=0;for(c=0;c<e.length;c++){g=e[c];var G=g.getParent(),V=g.getFirst(),J=g.$.colSpan,P=g.$.rowSpan,G=G.$.rowIndex,K=m(h,G,g),N=N+J*P,w=Math.max(w,K-p+J);t=Math.max(t,G-n+P);d||(J=g,(P=J.getBogus())&&P.remove(),J.trim(),g.getChildren().count()&&(G==H||!V||V.isBlockBoundary&&V.isBlockBoundary({br:1})||(H=L.getLast(CKEDITOR.dom.walker.whitespaces(!0)),!H||H.is&&
1133 CKEDITOR.START))return 1;if(a.checkBoundaryOfElement(b,CKEDITOR.END))return 2}return 0}function d(a){var b=0,c;for(c=0;c<a.length;c++)a[c].length>b&&(b=a[c].length);return b}function f(a){var b=a.getAscendant("table"),c=a.getParent().$.rowIndex,b=CKEDITOR.tools.buildTableMap(b),d;for(d=0;d<b[c].length;d++)if((new CKEDITOR.dom.element(b[c][d])).equals(a))return d}var g=b.editor,h=g.getSelection(),k=new CKEDITOR.dom.element("body"),l=0,m=0,n=0,p=0,t={},q,w,J,P,K,S,O;k.setHtml(b.data.dataValue);p=k.findOne("table");
1134 if(h.getRanges().length&&(h.isInTable()||(q=c(h)))&&(w=v(h),w.length)){b.stop();b=w[0].getAscendant("table");w=v(h,b);J=w[0];n=J.getParent();P=w[w.length-1];K=P.getParent();if(!q)for(O=0;O<w.length;O++)w[O].setHtml("");if(1<k.getChildCount()||!p)w[0].setHtml(k.getHtml()),g.fire("saveSnapshot");else{if(q){w=n.getChildCount();n=K=new CKEDITOR.dom.element("tr");n["insert"+(1===q?"Before":"After")](J.getParent());for(O=0;O<w;O++)J=new CKEDITOR.dom.element("td"),J.appendTo(n);J=n.getFirst();P=n.getLast();
1135 h.selectElement(n);w=v(h)}q=CKEDITOR.tools.buildTableMap(b,n.$.rowIndex,u(J,!0),K.$.rowIndex,f(P));h=CKEDITOR.tools.buildTableMap(p);n=d(h);p=d(q);if(h.length>q.length)for(l=h.length-q.length,O=0;O<l;O++)x(w);if(n>p)for(m=n-p,O=0;O<m;O++)B(w);J=w[0];n=J.getParent();P=w[w.length-1];K=new CKEDITOR.dom.element(b.$.rows[P.getParent().$.rowIndex+l]);P=K.getChild(P.$.cellIndex+m);l=u(w[0],!0);w=f(P);q=CKEDITOR.tools.buildTableMap(b,n.$.rowIndex,l,K.$.rowIndex,w);for(O=0;O<h.length;O++)for(m=new CKEDITOR.dom.element(b.$.rows[n.$.rowIndex+