Lines Matching refs:f

92             var f = d(this);
93 return f[a] || (f[a] = new b(a))
339 f = /</g,
441 …a || null === a ? "" : String(a).replace(b, "\x26amp;").replace(c, "\x26gt;").replace(f, "\x26lt;")
660 return a.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi, function(a, b, c, g) {
822 f = [],
826 f[0] = (d[0] & 252) >> 2;
827 f[1] = (d[0] & 3) << 4 | d[1] >> 4;
828 f[2] = (d[1] & 15) << 2 | (d[2] & 192) >> 6;
829 f[3] = d[2] & 63;
830 … ? b + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f[m]) : b + "\x3d"
1128 f = {
1238 a(c, f, b, n);
1461 }, f, n),
1776 var f = this.getUniqueId();
1777 (d[f] || (d[f] = {}))[a] = c;
1787 f, h;
1788 c && (f = c[a], h = a in c, delete c[a]);
1789 return h ? f : null
1828 for (var f = 0; f < c.length; f++) b(c[f])
1843 var f = this.$.cloneNode(a);
1844 b(f);
1845 f = new CKEDITOR.dom.node(f);
1846 …on && (this.type == CKEDITOR.NODE_ELEMENT || this.type == CKEDITOR.NODE_DOCUMENT_FRAGMENT) && c(f);
1847 return f
1870 var f = c.parentNode;
1871 f && d.unshift(this.getIndex.call({
1874 c = f
1892 f = -1,
1895 …do a && c != this.$ && c.nodeType == CKEDITOR.NODE_TEXT && (h || b(c)) || (f++, h = c.nodeType == …
1896 return f
1906 var f;
1912 for (; !a && (f = (f || this).getParent());) {
1913 if (b && !1 === b(f, !0)) return null;
1914 a = f.getNext()
1926 var f;
1931 for (; !a && (f = (f || this).getParent());) {
1933 b(f, !0)) return null;
1934 a = f.getPrevious()
1991 c, f;
1993 "function" == typeof a ? (f = !0, c = a) : (f = !1, c = function(b) {
1998 if (c(f ? new CKEDITOR.dom.node(b) : b)) return new CKEDITOR.dom.node(b);
2171 var f = a[c];
2176 if (h++, h == f) {
2180 } else b = b.childNodes[f]
2250 …var f = d.getCustomData("list_marker_id") || d.setCustomData("list_marker_id", CKEDITOR.tools.getN…
2252 a[f] = d;
2261 f = d.getCustomData("list_marker_id"),
2265 b && (d.removeCustomData("list_marker_id"), delete a[f])
2289 var f = document.createElement("_").classList,
2290 f = "undefined" !== typeof f &&
2291 null !== String(f.add).match(/\[Native code\]/gi),
2295 addClass: f ? function(a) {
2304 removeClass: f ? function(a) {
2726 var f = this.$.getBoundingClientRect(),
2732 …lTop) : (c = v ? d.$ : h, b = c.scrollLeft, c = c.scrollTop), b = f.left + b - m, c = f.top + c - …
2741 x = (f = x.$.offsetParent) ? new CKEDITOR.dom.element(f) : null
2743 …a && (f = this.getWindow(), x = a.getWindow(), !f.equals(x) && f.$.frameElement && (a = (new CKEDI…
2765 var e, d, v, f;
2802 f = d.y - m(this, "top") - u.y || 0;
2805 (0 > f || 0 < d) && h(0, !0 === b ? f : !1 === b ? d : 0 > f ? f : d);
2845 f;
2847 if ("checked" == v && (f = this.getAttribute(v))) a.setAttribute(v, f);
2848 …ITOR.env.ie || this.hasAttribute(v)) f = this.getAttribute(v), null === f && (f = d.nodeValue), a.…
2992 var f = c.startOffset,
3007 … q = d.type == CKEDITOR.NODE_ELEMENT ? f ? d.getChild(f - 1) : null : d.getPrevious();
3017 …de(!0, t, h)) : (e = d, e.type == CKEDITOR.NODE_ELEMENT && ((e = e.getChild(f)) || (e = !1 === h(d…
3102 var d, f;
3103 d = e && e.type != CKEDITOR.NODE_ELEMENT && (f = e.getParent()) && c(f);
3134 … var e = CKEDITOR.env.needsBrFiller ? c.is && c.is("br") : c.getText && f.test(c.getText());
3147 var f = /^[\t\r\n ]*(?:&nbsp;|\xa0)$/,
3190 …return a && (CKEDITOR.env.needsBrFiller ? a.is && a.is("br") : a.getText && f.test(a.getText())) ?…
3205 function d(a, b, c, d, f) {
3209 l || e ? b.append(a.clone(!0, f), c) : (a.remove(), r && b.append(a, c));
3246 …for (Q != w || X.equals(p[Q]) && w < A ? b && (I = G.append(X.clone(0, f))) : M ? h(X, G, !1, E) :…
3259 …Q != A || c.equals(O[Q]) && A < w ? b && (I = G.append(c.clone(0, f))) : q ? h(c, G, !1, z) : P &&…
3272 return function(f) {
3273f) || b(f) ? !0 : d(f) && !a ? a = !0 : f.type == CKEDITOR.NODE_TEXT && (f.hasAscendant("pre") || …
3285 function f(a) {
3356 var b, c, d, f, h = this.collapsed;
3363 …c.setHtml("\x26nbsp;"), a && c.setAttribute("id", d + "E"), f = this.clone(), f.collapse(), f.inse…
3364 f = this.clone();
3365 f.collapse(!0);
3366 f.insertNode(b);
3381 var f = d;
3382 m = m.type != CKEDITOR.NODE_ELEMENT || 0 === f || f == m.getChildCount() ?
3383 … 0 : m.getChild(f - 1).type == CKEDITOR.NODE_TEXT && m.getChild(f).type == CKEDITOR.NODE_TEXT;
3388 if (f = m.getChild(d).getIndex(!0), 0 <= f) {
3389 d = f;
3397 for (f = 0;
3398 …(m = m.getPrevious()) && m.type == CKEDITOR.NODE_TEXT;) f += m.getText().replace(CKEDITOR.dom.sele…
3399 m = f;
3400 …e.getText() ? d += m : (f = e.getPrevious(c), m ? (d = m, e = f ? f.getNext() : e.getParent().getF…
3401 e.getParent(), d = f ? f.getIndex(!0) + 1 : 0))
3417 f = {
3425 c && (a(f),
3426 b(f, this.root), d || (a(m), b(m, this.root)));
3428 start: f.container.getAddress(c),
3430 startOffset: f.offset,
3454 f;
3456 if (f = a.getChildCount(), f > c) a = a.getChild(c);
3457 else if (1 > f) a = a.getPreviousSourceNode();
3464 if (f = b.getChildCount(),
3465 f > d) b = b.getChild(d).getPreviousSourceNode(!0);
3466 else if (1 > f) b = b.getPreviousSourceNode();
3501 f = this.collapsed;
3502 if ((!a || f) && c && c.type == CKEDITOR.NODE_TEXT) {
3513 if (f) {
3520 …b || f || !c || c.type != CKEDITOR.NODE_TEXT || (d ? (d >= c.getLength() || c.split(d), d = c.getI…
3529 var f = 1;
3558 if (f ? l.isBlockBoundary() : !g.contains(l)) break;
3599 if (f ? l.isBlockBoundary() : !g.contains(l)) break;
3659 f = function(a) {
3682 l.guard = a == CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS ? f : N;
3692 f = c && c.skipBogus;
3711 if (f && F(b) || t(b)) return !0;
3812 var f = d.getBogus();
3813 f && f.remove();
3821 f = c.block,
3825 …"br" != a && (f || (f = this.fixBlock(!0, a), h = (new CKEDITOR.dom.elementPath(this.endContainer,…
3826 c = f && this.checkStartOfBlock();
3829f && f.equals(h) && (d ? (m = new CKEDITOR.dom.elementPath(this.startContainer, this.root), this.m…
3830 b || !1), f.is("ul", "ol") || f.appendBogus()));
3832 previousBlock: f,
3859f = d.block || d.blockLimit, h; f && !f.equals(d.root) && !f.getFirst(a(f));) h = f.getParent(), t…
3872 f = this.clone();
3873 f.collapse(d);
3874f[d ? "setStartAt" : "setEndAt"](a, d ? CKEDITOR.POSITION_AFTER_START : CKEDITOR.POSITION_BEFORE_E…
3875 f = new CKEDITOR.dom.walker(f);
3876 f.evaluator = c(d);
3877 return f[d ? "checkBackward" : "checkForward"]()
3956 f = c,
3959 f || h || (h = d[b ? "getPrevious" : "getNext"](r));
3966 f, h, m = [CKEDITOR.POSITION_AFTER_END, CKEDITOR.POSITION_BEFORE_START];
3970f = c[b ? "getNextEditableNode" : "getPreviousEditableNode"]()) d = 1, (h = f.type == CKEDITOR.NOD…
4002 getNextEditableNode: f(),
4003 getPreviousEditableNode: f(1),
4017 f = c.getAscendant("table", !0);
4019 …de() ? this.getEnclosedNode().getAscendant(a, !0) : d && f && (d.equals(f) || d.contains(f) || f.c…
4023 b, c, d, f = this.clone();
4024 f.optimize();
4025f.startContainer.type == CKEDITOR.NODE_TEXT) ? (c = f.startContainer.getText(), b = f.startContain…
4027 d && (f.startContainer.setText(c), b.remove());
4036 f, h, l;
4052 f = this.root.getDocument().$.createRange();
4053 f.setStart(b.getParent().$, b.getIndex());
4054 f.setEnd(b.getParent().$, b.getIndex() + 1);
4055 b = f.getClientRects();
4060 CKEDITOR.tools.array.forEach(d, function(b, f) {
4063 … l && (Array.prototype.splice.call(d, f, a.length - e, a.widgetRect), c = !0)
4073 var f;
4074f = new CKEDITOR.dom.text("​"), a ? e.startContainer.append(f, !0) : 0 === e.startOffset ? f.inser…
4105 var f = this.root.getDocument().$.createRange(),
4107 f.setStart(this.startContainer.$, this.startOffset);
4108 f.setEnd(this.endContainer.$, this.endOffset);
4109 m = f.getClientRects();
4111 m.length || (m = b(m, f, this));
4128 f = [],
4133 …OR.POSITION_PRECEDING + CKEDITOR.POSITION_IS_CONTAINED || d.endNode.equals(c), g && k && f.push(c);
4134 return f
4146 f = CKEDITOR.dom.walker.whitespaces();
4149 for (e = d.next(); f(e) || b.endContainer.equals(e);) e = d.next();
4183 function b(a, c, f, h) {
4185 null == h && (h = d(f));
4197 …c, f, h.remaining);c = new CKEDITOR.dom.range(h.element);c.selectNodeContents(h.element);c = c.cre…
4199 container: f,
4212 var f = /^[\r\n\t ]+$/,
4258 if (K) m.type == CKEDITOR.NODE_TEXT && f.test(m.getText()) && (K = 0);
4328 return !(a.equals(c) || a.equals(f))
4330 var f =
4418 function a(a, b, c, d, f) {
4452 b = f.elements;
4453 f = f.generic;
4475 null === e.elements) f[w ? "unshift" : "push"](e);
4483 function d(a, c, d, f) {
4485 if (f || g(a, c))
4489 f = d.validClasses;
4493 for (var e = 0, w = c.length, l; e < w; ++e) l = c[e], f[l] ||
4494 (f[l] = a(l));
4512 c.hadInvalidAttribute = f(a.attributes, b.attributes) || c.hadInvalidAttribute;
4513 c.hadInvalidStyle = f(a.styles, b.styles) || c.hadInvalidStyle;
4525 function f(a,
4530 f;
4531 for (f in b)
4532 if (d || a(f)) delete b[f], c = !0;
4549 f;
4550 for (f in a) c[f] = a[f], d++;
4556 var c, d, f, e;
4557 if (f = a.requiredClasses)
4558 for (e = b.classes, c = 0; c < f.length; ++c)
4559 if (d = f[c], "string" == typeof d) {
4582 var b, c, d, f, e = {},
4584 …); b = a.match(p);)(c = b[2]) ? (d = y(c, "styles"), f = y(c, "attrs"), c = y(c, "classes")) : d =…
4588 attributes: f
4606 function B(a, b, f, e) {
4659 if (!a || !a.valid) return f.push(b),
4682 if (!e.skipFinalValidation && !m(b)) return f.push(b),
4744 f;
4746 f = q[b];
4748 if (w = d[e], w.type == CKEDITOR.NODE_ELEMENT && !f[w.name]) {
4749 f = !1;
4751 } f = !0
4753 if (f) a.name = b, a.attributes = {}, c.push({
4758 f = a.parent;
4759 …for (var e = f.type == CKEDITOR.NODE_DOCUMENT_FRAGMENT || "body" == f.name, p, h, l = d.length; 0 …
4762 …})), p.add(w, 0)) : (p = null, h = q[f.name] || q.span, w.insertAfter(a), f.type == CKEDITOR.NODE_…
4779 var d, f;
4781 if (f = c[d], !(f.check && !a.check(f.check, !1) || f.left && !f.left(b))) {
4782 f.right(b, G);
4790 f = c.styles,
4798 for (l in f)
4800 f[l]) return !1;
4865 var f, l;
4869 f = b.getDefinition();
4871 d = f.attributes;
4872 b[f.element] = f = {
4873 styles: f.styles,
4874 requiredStyles: f.styles && CKEDITOR.tools.objectKeys(f.styles)
4876 …& (d = E(d), f.classes = d["class"] ? d["class"].split(/\s+/) : null, f.requiredClasses = f.classe…
4878 for (f = 0; f < b.length; ++f) l = this.allow(b[f], c, d);
4886 var f = this,
4900 if (p = B(f, a, e, t), p & 1) h = !0;
4912 …d.children.length && (l = d.children[0]).type == CKEDITOR.NODE_ELEMENT && B(f, l, c, t);c = !c.len…
4953 f;
4954 …for (b = 0; b < a.length && !f; ++b) c = a[b], ("string" == typeof c || c instanceof CKEDITOR.styl…
4955 if (f) {
4956 for (b = 0; b < a.length; ++b) d.push(L(a[b], f));
4977 f;
4978 for (f = 0; f < a.length; ++f) {
4979 b = a[f];
5006 var f, w;
5010 f = e(a).$1;
5011 var l = f.styles,
5012 d = f.classes;
5013 f.name = f.elements;
5014 f.classes = d = d ? d.split(/\s*,\s*/) : [];
5015 f.styles = r(l);
5016 f.attributes = r(f.attributes);
5017 f.children = [];
5018 d.length && (f.attributes["class"] = d.join(" "));
5019 l && (f.attributes.style = CKEDITOR.tools.writeCssText(f.styles))
5020f = a.getDefinition(), l = f.styles, d = f.attributes || {}, l && !CKEDITOR.tools.isEmpty(l) ? (l …
5021 name: f.element,
5027 var l = CKEDITOR.tools.clone(f),
5030 if (!1 !== b && (h = this._.transformations[f.name])) {
5032 0; d < h.length; ++d) t(this, f, h[d]);
5033 x(f)
5041f.attributes["class"]) && (f.attributes["class"] = f.attributes["class"].split(" ").sort().join(" …
5053 var f = a.slice(),
5056 for (d || (f = f.reverse()); e = f.pop();)
5121 f = d && d.match(/^(\d+)(?:\.\d*)?px$/);
5122 f ? a.attributes[c] = f[1] : "cke-test" == d && (a.attributes[c] = "cke-test")
5203 f = c.attributes,
5206 for (e in f)
5209 …a.classes.join("|"), w = f[e].split(/\s+/); p = w.pop();) - 1 == c.indexOf(p) && a.classes.push(p);
5210 else a.attributes[e] = f[e];
5268 var f = {
5276 a.on(b, f.focus, this);
5277 a.on(c, f.blur, this);
5280 a.setCustomData("focusmanager_handlers", f)
5422 f = c[1],
5424 b[f + "-" + c] ? f = f + "-" + c : b[f] || (f = null);
5425 CKEDITOR.lang.detect = f ? function() {
5426 return f
5430 return f || a
5438 load: function(b, c, f, h) {
5441 f || (f = CKEDITOR);
5446 c && (k ? c.call(f, a) : c.call(f, n, r))
5456 var f = d[b];
5458 for (var e = 0; e < f.length; e++) f[e](b, c)
5463 var f = d[b] || (d[b] = []);
5464 f.push(y);
5465 if (!(1 < f.length)) {
5543 var f = a[c];
5548 this.externals[f] = {
5556 … for (var c = this.loaded, f = this.registered, h = [], k = {}, g = {}, n = 0; n < a.length; n++) {
5559 if (c[r] || f[r]) g[r] = this.get(r);
5567 CKEDITOR.scriptLoader.load(h, function(a, f) {
5568 …if (f.length) throw Error('[CKEDITOR.resourceManager.load] Resource name "' + k[f[0]].join(",") + …
5582 return function(b, c, f) {
5604 c && c.call(f || window, h)
5664 function a(a, f, e) {
5667 if (void 0 !== f) {
5668 …if (!(f instanceof CKEDITOR.dom.element)) throw Error("Expect element of type CKEDITOR.dom.element…
5671 …if (!b(f, e)) throw Error('The specified element mode is not supported on element: "' + f.getName(…
5672 this.element = f;
5674 … this.name = this.elementMode != CKEDITOR.ELEMENT_MODE_APPENDTO && (f.getId() || f.getNameAtt())
5727 for (b in a) f(this, a[b])
5730 function f(a, b) {
5737 var d, f, e = a.commands;
5738 for (f in e) d = e[f], (c || d.contextSensitive) && d.refresh(a, b)
5818 f = b(c.extraPlugins),
5820 if (f) var h = new RegExp("(?:^|,)(?:" + f.replace(/,/g, "|") + ")(?\x3d,|$)", "g"),
5822 d = d + ("," + f);
5829 f = [],
5846 f.push(k);
5853 … 0 === e && f[l] && p.lang && p.langEntries && (a.lang[p.name] = p.langEntries[f[l]]);
5889 for (var f = new CKEDITOR.dom.documentFragment, e, h, g, k = 0; k < a.length; k++) {
5896 …).clone()), f.append(e), e = e.findOne("thead, tbody, tfoot")), h && h.equals(q) || (h = q, g = q.…
5898 return e ? f : b.getHtmlFromRange(a[0])
5921 this.mode && f(this, c);
5936 f = new CKEDITOR.dom.element(d.$.form);
5937 …d.is("textarea") && f && (f.on("submit", a), b(f.$.submit) && (f.$.submit = CKEDITOR.tools.overrid…
5943 f.removeListener("submit", a)
6003 f = b;
6004 b && "object" == typeof b && (c = b.internal, f = b.callback, d = !b.noSnapshot);
6006 if (f || !c) this.once("dataReady", function(a) {
6008 f && f.call(a.editor)
6045 f = new CKEDITOR.dom.documentFragment,
6048 for (e = 0; e < d.length; e++) f.append(c.extractHtmlFromRange(d[e], b));
6050 return a ? f.getHtml() : f
6068 …], c, d, f = b.length; f--;) c = b[f], d = 0, CKEDITOR.tools.isArray(c) && (d = c[1], c = c[0]), d…
6132 for (var c, f, h = 0, k; c = this._.htmlPartsRegex.exec(b);) {
6133 f = c.index;
6134 if (f > h)
6135 if (h = b.substring(h, f), k) k.push(h);
6138 if (f = c[1])
6139 …if (f = f.toLowerCase(), k && CKEDITOR.dtd.$cdata[f] && (this.onCDATA(k.join("")), k = null), !k) {
6140 this.onTagClose(f);
6143 else if (f = c[3]) {
6144 if (f = f.toLowerCase(), !/="/.test(f)) {
6154 this.onTagOpen(f, g, c);
6155 !k && CKEDITOR.dtd.$cdata[f] && (k = [])
6157 } else if (f = c[2]) this.onComment(f)
6223 f = a.next = this.next;
6225 f && (f.previous = a);
6359 f = {
6376 f = d.name,
6377 e = CKEDITOR.dtd[f],
6379 …l && !l[f] || a && e && !e[a] && CKEDITOR.dtd[a] ? f == u.name && (y(u, u.parent, 1), c--) : (b ||…
6399 var f = u;
6401 b.returnPoint ? (u = b.returnPoint, delete b.returnPoint) : u = d ? c : f
6422 D.onTagOpen = function(f, e, h, g) {
6423 e = new CKEDITOR.htmlParser.element(f, e);
6428 if ("pre" == f) l = !0;
6430 if ("br" == f && l) {
6434 "textarea" == f && (K = !0)
6436 if ("br" == f) J.push(e);
6438 …(u._.isBlockLike ? CKEDITOR.dtd.div : CKEDITOR.dtd.span) : c, e.isUnknown || u.isUnknown || g[f]);)
6440 …else if (f in b && h in b) h = u.children, (h = h[h.length - 1]) && "li" == h.name || y(h = new CK…
6441 else if (f in CKEDITOR.dtd.$listItem &&
6442 !B(f, h)) D.onTagOpen("li" == f ? "ul" : "dl", {}, 0, 1);
6443 … else if (h in d && !B(f, h)) !e.returnPoint && (e.returnPoint = u), u = u.parent;
6449 n(f);
6461 …} for (var c = [], d = [], f = u; f != x && f.name != a;) f._.isBlockLike || d.unshift(f), c.push(
6462 if (f != x) {
6468 f;
6469 f._.isBlockLike && r();
6470 y(f, f.parent);
6471 f == u && (u = u.parent);
6480 if (!K && !e["#"] && b in d) D.onTagOpen(f[b] || ""), D.onText(a);
6553 …for (var f = 0; f < c.length; f++) d = c[f], d.type == CKEDITOR.NODE_ELEMENT ? d.forEach(a, b) : b…
6585 var f;
6586 "number" == typeof c ? f = c : c && "priority" in c && (f =
6588 "number" != typeof f && (f = 10);
6590 a.elementNames && this.elementNameRules.addMany(a.elementNames, f, c);
6591 a.attributeNames && this.attributeNameRules.addMany(a.attributeNames, f, c);
6592 a.elements && d(this.elementsRules, a.elements, f, c);
6593 a.attributes && d(this.attributesRules, a.attributes, f, c);
6594 a.text && this.textRules.add(a.text, f, c);
6595 a.comment && this.commentRules.add(a.comment, f, c);
6596 a.root && this.rootRules.add(a.root, f, c)
6686 return function(f) {
6687 if (f.type != CKEDITOR.NODE_DOCUMENT_FRAGMENT) {
6689 w = b(f),
6694 … if (l = !a || !1 !== ("function" == typeof d ? d(f) : d)) z || CKEDITOR.env.needsBrFiller ||
6695f.type != CKEDITOR.NODE_DOCUMENT_FRAGMENT ? z || CKEDITOR.env.needsBrFiller || !(7 < document.docu…
6696 l && f.add(e(a))
6722 for (d = b.next; d && f(d);) d =
6738 for (a = a.children[a.children.length - 1]; a && f(a);) a = a.previous;
6743 for (a = a.previous; a && f(a);) a = a.previous;
6747 function f(a) {
6827 f = b._.dataStore || (b._.dataStore = {
6847 f[f.id] = decodeURIComponent(b);
6848 return "{cke_protected_" + f.id++ + "}"
6851 … return a = a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g, function(a, c, d, f) {
6852 return "\x3c" + c + d + "\x3e" + D(B(f), b) + "\x3c/" + c + "\x3e"
6857 f, l = this;
6860 this.htmlFilter = f = new CKEDITOR.htmlParser.filter;
6869 f.addRules(L);
6870 f.addRules(C, {
6873 f.addRules(a(b, "html"), {
6879 f, c = x(c, b),
6887 f = a.context || b.editable().getName();
6889 …CKEDITOR.env.ie && 9 > CKEDITOR.env.version && "pre" == f && (f = "div", c = "\x3cpre\x3e" + c + "…
6890 f = b.document.createElement(f);
6891 f.setHtml("a" + c);
6892 c = f.getHtml().substr(1);
6898 f = !1 === a.fixForBody ? !1 :
6900 c = CKEDITOR.htmlParser.fragment.fromHtml(c, a.context, f);
6901f && (l = c, !l.children.length && CKEDITOR.dtd[l.name][f] && (f = new CKEDITOR.htmlParser.element…
6943 var f = this.editor,
6946 e || null === e || (e = f.editable().getName());
6947 return f.fire("toHtml", {
6952 filter: l || f.filter,
6953 enterMode: p || f.enterMode,
6958 var c, d, f;
6959 b && (c = b.context, d = b.filter, f = b.enterMode);
6965 enterMode: f || this.editor.enterMode
7028 …(var c = ["name", "href", "src"], d, f = 0; f < c.length; f++) d = "data-cke-saved-" + c[f], d in …
7108 …|| "").replace(/&quot;/g, '"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g, function(a, c, f) {
7109 "font-family" == c && (f = f.replace(/["']/g, ""));
7110 d[c.toLowerCase()] = f
7363 …for (var c = CKEDITOR.document.getElementsByTag(b), f = 0, h = c.count(); f < h; f++) a = c.getIte…
7374 function a(a, f, h, k) {
7378 var g = new CKEDITOR.editor(f, a, k);
7529 f = e.blockLimit,
7535f) && h.collapsed && !h.getCommonAncestor().isReadOnly() && (e = h.clone(), e.enlarge(CKEDITOR.ENL…
7537 }, !f.checkForward() || e.checkStartOfBlock() && e.checkEndOfBlock()) &&
7559 function f(a, b) {
7569 e && b.type == CKEDITOR.NODE_ELEMENT && b.is(f) && (d = b);
7575 var f = {
7581 if (e.startPath().contains(f)) {
7650 …& /^focus|blur$/.exec(a) && (a = "focus" == a ? "focusin" : "focusout", b = f(b, this), c[0] = a, …
7712 f = a.getName(),
7713 f = CKEDITOR.dtd.$block[f];
7716 … b) && (b.moveToPosition(a, CKEDITOR.POSITION_AFTER_END), f && ((f = a.getNext(function(a) {
7718f.type == CKEDITOR.NODE_ELEMENT && f.is(CKEDITOR.dtd.$block) ? f.getDtd()["#"] ? b.moveToElementEd…
7729 f = CKEDITOR.dtd.$block[e];
7740 if (f)
7830 var f = this.editor.createRange();
7831 f.moveToPosition(d.bookmark.startNode, CKEDITOR.POSITION_BEFORE_START);
7832 d.targetBookmark = f.createBookmark();
7848 f = 0,
7851 for (; q = d.getItem(f++);)
7930 var f = a.document;
7936 var g = f.getHead(),
7938 … > CKEDITOR.env.version ? m.$.styleSheet.cssText = k : m.setText(k)) : (k = f.appendStyleText(k), …
7941 g = f.getCustomData("stylesheet_ref") || 0;
7942 f.setCustomData("stylesheet_ref", g + 1);
7961 var f, g = b.getRanges()[0],
7964 …nv.version && (f = b.getSelectedElement()) || (f = h(b)) ? (a.fire("saveSnapshot"), g.moveToPositi…
8014 … var f = d.startContainer.getChild(d.startOffset - (c ? 1 : 0));
8015 … if (f && f.type == CKEDITOR.NODE_ELEMENT && f.is("hr")) {
8017 f.remove();
8029 f = p.createBookmarks();
8033 p.selectBookmarks(f);
8124 var e, f, g, q, h = [],
8128 …|| k && k != m - 1 || (C = (f = k ? h[k - 1].node : H.getItem(k + 1)) && (!a(f) || !f.is("br")), f
8132 hasBlockSibling: f,
8136 }), f = C = 0)) : h.push({
8146 f = b.getChildren(),
8147 g = f.count(),
8151 …for (k && e.push(" "); h < g; h++) q = f.getItem(h), a(q) && !q.is(z) ? e = e.concat(d(q, c)) : e.…
8160 function f(b) {
8165 var f = b.clone(),
8167 f.setEndAt(c, CKEDITOR.POSITION_BEFORE_END);
8168 …(g = (new CKEDITOR.dom.walker(f)).next()) && a(g) && z[g.getName()] && (q = g.getPrevious()) && a(…
8177 f = c.endContainer.getChild(c.endOffset - 1);
8179 f && d(f, b[0]) && (c.setEnd(c.endContainer, c.endOffset - 1), c.collapse())
8244 …if (A = n.contains(f, !1, 1)) p.splitElement(A), z.inlineStylesRoot = A, z.inlineStylesPeak = n.la…
8246 (A = n.startNode.getPrevious(c)) && a(A) && f(A) && w.push(A);
8247 (A = n.startNode.getNext(c)) && a(A) && f(A) && w.push(A);
8249 (A = A.getParent()) && f(A);) w.push(A);
8376 if (f(D) && D.getHtml().match(/(\s|&nbsp;)$/g)) {
8416 f = e.getAscendant("table", 1),
8418 c(f.getElementsByTag("td"));
8419 c(f.getElementsByTag("th"));
8420 f = d.clone();
8421 f.setStart(e, 0);
8422 f = a(f).lastBackward();
8423f || (f = d.clone(), f.setEndAt(e, CKEDITOR.POSITION_BEFORE_END), f = a(f).lastForward(), g = !0);
8424 f || (f = e);
8425 f.is("table") ? (d.setStartAt(f, CKEDITOR.POSITION_BEFORE_START),
8426 d.collapse(!0), f.remove()) : (f.is({
8430 … && (f = b(f, "tr", g)), f.is("tr") && (f = b(f, f.getParent().is("thead") ? "th" : "td", g)), (e …
8464 f = new CKEDITOR.dom.elementPath(c.startContainer, b),
8468f.block && d.checkBoundaryOfElement(f.block, CKEDITOR.END) && (c.setStartAfter(f.block), a.prepend…
8499 f = new CKEDITOR.dom.elementPath(c.startContainer, b),
8511 …e.block.is(CKEDITOR.dtd.$listItem) && (f = f.contains(CKEDITOR.dtd.$list), c = c.contains(CKEDITOR…
8547 for (var f; f = e.getNext();) f.insertAfter(d), d = f;
8562 f = d.endPath(),
8564 h = f.contains(CKEDITOR.dtd.$list);
8566 …a.mergeListItems = e.block && f.block && e.block.is(CKEDITOR.dtd.$listItem) && f.block.is(CKEDITOR…
8574 f = new CKEDITOR.dom.elementPath(d, c),
8577 var h = f.contains(CKEDITOR.dtd.$list),
8581 …a.mergeListItems && (f = f.contains(CKEDITOR.dtd.$listItem), g = g.contains(CKEDITOR.dtd.$listItem…
8601 f = new CKEDITOR.dom.elementPath(d, c),
8603 f = f.block,
8605 f && g && !f.equals(g) && b(g, d, e);
8614 f, g = new CKEDITOR.dom.walker(c),
8624 … if (g && h && a.equals(h)) f = c.clone(), f.setEndAt(h, CKEDITOR.POSITION_BEFORE_END), e.push(f);
8625 …else if (!g && k && a.equals(k)) f = c.clone(), f.setStartAt(k, CKEDITOR.POSITION_AFTER_START), e.…
8635 A && (f = c.clone(), f.selectNodeContents(a), e.push(f))
8667 f = b.endPath().contains("table");
8668f && b.checkBoundaryOfElement(c, CKEDITOR.START) && b.checkBoundaryOfElement(f, CKEDITOR.END) && (…
8671 detectRanges: function(e, f) {
8672 var g = c(f, e.bookmark),
8726 var f = b[0];
8727 d = f.startContainer.getAscendant({
8731 var g = f.endContainer.getAscendant({
8736 …quals(g) && !d.findOne("td, th, tr, tbody, table") ? (f = f.cloneContents(), d = f.getFirst() ? e(
8765 e, f;
8766f = 0; f < a.length; f++) e && !e.equals(a[f].getAscendant("tr")) ? (c += d.join("\t") + "\n", e =…
8770 function f(a) {
8800 var f = c.getRanges(),
8802 … h = f.length && f[0]._getTableElement() && f[0]._getTableElement().getAscendant("table", !0),
8804 … k = 1 === f.length && f[0]._getTableElement() && f[0]._getTableElement().is("table"),
8808 var l = 1 === f.length && f[0].collapsed,
8809 g = d(f, !!CKEDITOR.env.webkit) &&
8812 h && (l || g) ? (k && !w && e.selectRanges(f), e = !0) : e = !1
8866 f = u.length;
8867 if (c.getLength() > f && e && e.intersectsNode(c.$)) {
8875 d.anchorNode == c.$ && d.anchorOffset > f && (g[0].offset -= f);
8876 d.focusNode == c.$ && d.focusOffset > f && (g[1].offset -= f)
8898 f = d.root.on("selectionchange", function(a) {
8904 f.removeListener();
8920 f = e[0];
8921 …1 == e.length && f.collapsed && (d = f[38 > d ? "getPreviousEditableNode" : "getNextEditableNode"]…
8936 var f = c.startOffset,
8939 …d && d.type == CKEDITOR.NODE_TEXT && (f >= d.getLength() ? h.setStartAfter(d) : h.setStartBefore(d…
9005 f.removeListener("mouseup", b);
9020 f = CKEDITOR.document,
9074 f.removeListener("mouseup", c);
9086 f.on("mouseup",
9093 … a.data.getTarget().is("html") && (f.on("mouseup", b), q.on("mouseup", b))
9238 } catch (f) {}
9314 … for (var e = d.children, f, g, h = b.duplicate(), k = 0, l = e.length - 1, q = -1, m, n; k <= l;)
9315 …if (q = Math.floor((k + l) / 2), f = e[q], h.moveToElementText(f), m = h.compareEndPoints("StartTo…
9319 offset: a(f)
9326 if (!h) return f =
9327 e[e.length - 1], f.nodeType != CKEDITOR.NODE_TEXT ? {
9331 container: f,
9332 offset: f.nodeValue.length
9345 offset: a(f) + (0 < m ? 0 : 1)
9348 …g = f[0 < m ? "previousSibling" : "nextSibling"], g.nodeType == CKEDITOR.NODE_TEXT && (h -= g.node…
9349 n = g), f = g
9353 offset: a(f)
9370 …for (var f = c.item(e), g = f.parentNode, h = 0, a = new CKEDITOR.dom.range(this.root); h < g.chil…
9461 …1) && (d(c) ? f.call(this, c) : e ? this.fake(b) : b ? this.selectElement(b) : this.selectRanges(c…
9511 …selection && CKEDITOR.plugins.tableselection.isSupportedEnvironment && d(a) && !l) f.call(this, a);
9616 var f = new CKEDITOR.dom.range(this.root);
9617 f.moveToBookmark(a[e]);
9618 b.push(f)
9702 …for (var C = q, E = f(C), F = void 0, H = E.length, K = 0, C = H && new CKEDITOR.dom.range(C.getDo…
9745 …(d.getParent()), c = new CKEDITOR.dom.elementPath(n.getParent()), e = null, f = null, g = 0; g < a…
9753 r.checkElementRemovable(h, !0) && (f = h)
9755 f && n.breakParent(f);
9764 … (var f = new CKEDITOR.dom.elementPath(d.getParent(), a.root), g, h = 0, k; h < f.elements.length …
9772 k = f.elements[h];
9785f = d; !f.equals(n);) g = f.getNextSourceNode(), f.type == CKEDITOR.NODE_ELEMENT && this.checkElem…
9791 function f(a) {
9822 …a.document, f; d = c.getNextParagraph();) !d.isReadOnly() && (c.activeFilter ? c.activeFilter.chec…
9840 f = a.is("pre"),
9841 g = !d && f;
9842 if (d && !f) {
9843 f = b;
9853 h.append(f);
9854 f.$.outerHTML = "\x3cpre\x3e" + g + "\x3c/pre\x3e";
9855 f.copyAttributes(h.getFirst());
9856 f = h.getFirst().remove()
9857 } else f.setHtml(g);
9858 b = f
9906 var f = b.clone();
9907 f.setHtml(e);
9908 c.append(f)
9919 f = CKEDITOR.tools.isEmpty(d) && CKEDITOR.tools.isEmpty(c),
9922 …Match || a.getAttribute(g) == t(g, d[g])) b && "data-" == g.slice(0, 5) || (f = a.hasAttribute(g),…
9923 … in c) this._.definition.fullMatch && a.getStyle(h) != t(h, c[h], !0) || (f = f || !!a.getStyle(h)…
9925 f && (this._.definition.alwaysRemoveElement ?
9931 for (var f in b)
9932 if (f != this.element)
9933 …for (c = a.getElementsByTag(f), e = c.count() - 1; 0 <= e; e--) d = c.getItem(e), d.isReadOnly() |…
9940 f;
9941 if (f = a.getAttribute(e)) {
9943 … (null === g || g.test && g.test(f) || "string" == typeof g && f == g) && a.removeAttribute(e)
10001 f, g;
10002 …"string" == typeof e ? f = e.toLowerCase() : (f = e.element ? e.element.toLowerCase() : a.element,…
10003 e = b[f] || (b[f] = {});
10035 var e, f;
10037 for (e = [], f = 0; f < d.length; f++) e.push(d[f].clone());
10038 for (var g = d.createIterator(); f = g.getNextRange();) b.call(this, f, c);
10150 var f = e.getName();
10152 f == this.element : f in this.element)) continue
10181 f = c.attributes;
10182 if (f)
10183 for (var g in f) e++, d[g] = f[g];
10223 for (var f in e) c.push(" ", f, '\x3d"', e[f], '"');
10240 var f = b[e],
10241 g = (e + ":" + f).replace(q, ";");
10242 "inherit" == f ? d += g : c += g
10336 CKEDITOR.dom.elementPath = function(b, f) {
10342 f = f || b.getDocument().getBody();
10343 n || (n = f);
10348 if (n.equals(f)) break;
10368 k || (k = f);
10371 this.root = f;
10386 f;
10387 "string" == typeof a && (f = function(b) {
10390 a instanceof CKEDITOR.dom.element ? f = function(b) {
10392 } : CKEDITOR.tools.isArray(a) ? f = function(b) {
10394 } : "function" == typeof a ? f = a : "object" == typeof a && (f = function(b) {
10403 if (f(h[c])) return h[c];
10434 f = this.getDocument(),
10435 h = new CKEDITOR.dom.text(this.$.splitText(a), f);
10436 …d.childNodes.length == b && (a >= c ? (h = f.createText(""), h.insertAfter(this)) : (a = f.createT…
10524 }), f = 0, g; f < c.length; f++)
10525 …if (g = c[f], d.ie && (g.replace(/^ie/, "") == d.version || d.quirks && "iequirks" == g) && (g = "…
10526 b += "_" + c[f];
10543 function f(a, b, c) {
10544 var d, f, g;
10546 … for (b = b.split("}").slice(0, -1), f = 0; f < b.length; f++) b[f] = b[f].split("{");
10549 for (f = 0; f < b.length; f++) {
10550 g = b[f][1];
10552 a[h].$.sheet.addRule(b[f][0], g)
10580 getIconStyle: function(a, b, c, d, f) {
10586 f = f || g && g.bgsize || "16px";
10588 …age:url('" + CKEDITOR.getUrl(a) + "');background-position:0 " + d + "px;background-size:" + f + ";"
10607 f([b], d, a);
10608 f(g, h, a)
10624 d && f([a], CKEDITOR.skin.chameleon(b, "panel"), [
10667 var f = e,
10671 a[f] = c
10676 f = {
10701 return f[d].output(a).replace(/\[/g, "{").replace(/\]/g, "}")
10766 labeledElement: function(b, a, d, f) {
10780 …? ' style\x3d"' + a.controlStyle + '"' : "", ' role\x3d"presentation"\x3e', f.call(this, b, a), "\…
10790 '"' : "") + "\x3e" + f.call(this, b, a) + "\x3c/span\x3e"
10800 var f = this._.inputId = CKEDITOR.tools.getNextId() + "_textInput",
10803 id: f,
10840 var f = this,
10849 if (f.bidi) b.on("load",
10851 f.getInputElement().on("keyup", w)
10852 }, f);
10859 … a.push("\x3e", CKEDITOR.tools.htmlEncode(f._["default"]), "\x3c/textarea\x3e\x3c/div\x3e");
10867 var f = h.call(this, a, {
10885f.checkbox = new CKEDITOR.ui.dialog.uiElement(b, c, e, "input", null, g);
10896 var f = [],
10931f.push(new CKEDITOR.ui.dialog.uiElement(b, p, u, "input", null, r));
10939 new CKEDITOR.ui.dialog.hbox(b, f, e, d);
10942 this._.children = f
10952 var f = this;
10957 f.click();
10963 } && (f.click(), a.data.preventDefault())
10985 var f = h.call(this, a);
10987 f.inputId = CKEDITOR.tools.getNextId() + "_select";
10995 id: f.inputId,
11008 f.select = new CKEDITOR.ui.dialog.uiElement(b, c, e, "select", null,
11018 var f = CKEDITOR.tools.extend(h.call(this, a), {
11024 … CKEDITOR.document.getById(f.frameId).getParent().addClass("cke_dialog_ui_input_file")
11027 f.frameId = CKEDITOR.tools.getNextId() + "_fileInput";
11029 f.frameId, '" title\x3d"', a.label, '" src\x3d"javascript:void('
11038 var f = this;
11052 b.getContentElement(a["for"][0], a["for"][1])._.buttons.push(f)
11061 return function(f, c, e) {
11076 … CKEDITOR.ui.dialog.uiElement.call(this, f, c, m, "span", null, null, "");
11084 fieldset: function(b, a, d, f, c) {
11089 … CKEDITOR.ui.dialog.uiElement.call(this, b, c, f, "fieldset", null, null, function() {
11204 … var f = new CKEDITOR.dom.element("option", this.getDialog().getParentEditor().document),
11206 f.$.text = b;
11207 f.$.value = void 0 === a || null === a ? b : a;
11208 … void 0 === d || null === d ? CKEDITOR.env.ie ? c.add(f.$) : c.add(f.$, null) : c.add(f.$, d);
11258 …for (var d = this._.children, f, c = 0; c < d.length && (f = d[c]); c++) f.getElement().$.checked =
11259 f.getValue() == b;
11310 d, f = function(a, b, c, d) {
11317 …ntProcessors[c] ? this.eventProcessors[c].call(this, this._.dialog, b[c]) : f(this, this._.dialog,…
11324 f.size && (b = f.size - (CKEDITOR.env.ie ? 7 : 0));
11326 …ls.htmlEncode(f.action), '"\x3e\x3clabel id\x3d"', a.labelId, '" for\x3d"', h, '" style\x3d"displa…
11327 …y\x3d"', a.labelId, '" type\x3d"file" name\x3d"', CKEDITOR.tools.htmlEncode(f.id || "cke_upload"),…
11334 f = a.definition,
11386 … for (var f = a.children, c, e = [], h = [], g = 0; g < f.length && (c = f[g]); g++) {
11418 var f = new CKEDITOR.dom.element(c[e]);
11419f.getAttribute("type").toLowerCase() && (b ? (f.setAttribute("value", f.getCustomData("fake_value"…
11526 … -h[3] : d.x - h[1] > k.width - c.width - g ? k.width - c.width + ("rtl" == f.lang.dir ? 0 : h[1])…
11541 f = a.getParentEditor(),
11542 g = f.config.dialog_magnetDistance,
11555 var f = u.getChild(0).getFrameDocument();
11556 f.on("mousemove", b);
11557 f.on("mouseup", c)
11565 var c = "rtl" == f.lang.dir,
11596 var f = a.getParentEditor(),
11618f.lang.dir + '" title\x3d"' + CKEDITOR.tools.htmlEncode(f.lang.common.resize) + '" onmousedown\x3d…
11621 f.on("destroy", function() {
11637 f = c.baseFloatZIndex,
11638 c = CKEDITOR.tools.genKey(d, e, f),
11640f = ['\x3cdiv tabIndex\x3d"-1" style\x3d"position: ', CKEDITOR.env.ie6Compat ? "absolute" : "fixed…
11641f.push("void((function(){" + encodeURIComponent("document.open();(" + CKEDITOR.tools.fixDomain + "…
11743 f(b)
11747 function f(a) {
11865 if (CKEDITOR.env.gecko) y.on("keypress", f, this)
11870 CKEDITOR.env.gecko && y.removeListener("keypress", f);
11943 f = "fixed" == e.getComputedStyle("position");
11945f && this._.position && this._.position.x == a && this._.position.y == b || (this._.position = {
11948f || (f = CKEDITOR.document.getWindow().getScrollPosition(), a += f.x, b += f.y), d && (f = this.g…
11976 f = 0;
11980 …dContent && !this._.editor.activeFilter.check(h.requiredContent) ? h.disable() : (h.enable(), f++))
11981 … }!f || d && !this._.editor.activeFilter.check(d) ? e[0].addClass("cke_dialog_tab_disabled") :
12077f = e.getChild(), g = 0; e = f.shift();) e.notAllowed || "hbox" == e.type || "vbox" == e.type || g…
12295 for (var f = 0, g; g = a[f]; f++) {
12296 if (g.id == c) return a.splice(f, 0, b), b;
12387 uiElement: function(a, b, c, e, d, f, g) {
12392 k = (f && f.call ? f(b) : f) || {},
12465 var f = this._.children = b,
12488 f[p].align && e.push("text-align:" + f[p].align);
12500 var f = this._.children = b,
12522 … CKEDITOR.env.ie && CKEDITOR.env.quirks && f[e].align && k.push("text-align:" + f[e].align);
12626 … for (var d = c.children, f, g = [], h = [], p = 0; p < d.length && (f = d[p]); p++) {
12629 h.push(CKEDITOR.dialog._.uiElementBuilders[f.type].build(a, f, m))
12658 f = /^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;
12668 f;
12669 for (f = 0; f < a.length; f++)
12670 if ("function" == typeof a[f]) e.push(a[f]);
12672 f < a.length && "string" == typeof a[f] && (c = a[f], f++);
12673 f < a.length && "number" == typeof a[f] && (d = a[f]);
12675 for (f = 0; f < e.length; f++) n = d == CKEDITOR.VALIDATE_AND ? n &&
12676 e[f](b) : n || e[f](b);
12707 return f.test(CKEDITOR.tools.trim(a))
12874 function f(c) {
12931 setup: f,
12946 setup: f,
12975 setup: f,
12987 setup: f,
13005 var f = h[b];
13006 f.unshift(a);
13011 contentForms: f
13076 function q(a, f, d, b) {
13087 …("direction") || a.hasAttribute("dir")) != f && (a.removeStyle("direction"), b ? (a.removeAttribut…
13088 … a.setAttribute("dir", f)) : a.setAttribute("dir", f), d.forceNextSelectionCheck())
13092 function v(a, f, d) {
13097 …DITOR.NODE_ELEMENT && (c = b.getParent()) && 1 == c.getChildCount() && !(b.getName() in f);) b = c;
13098 return b.type == CKEDITOR.NODE_ELEMENT && b.getName() in f && b
13130 exec: function(f) {
13131 var d = f.getSelection(),
13132 b = f.config.enterMode,
13139 k && q(k, a, f, h);
13153 for (; k = m.next();) q(k, a, f, h);
13155 …b != CKEDITOR.ENTER_BR; k = g.getNextParagraph(b == CKEDITOR.ENTER_P ? "p" : "div");) q(k, a, f, h)
13158 f.forceNextSelectionCheck();
13160 f.focus()
13167 var f = a == l.setAttribute,
13173 if (e = c == (f || d ?
13213 function f(b,
13214 c, d, e, f) {
13219 toolbar: "bidi," + f
13224 f("BidiLtr", d.ltr, "bidiltr", p("ltr"), 10);
13225 f("BidiRtl", d.rtl, "bidirtl", p("rtl"), 20);
13268 var f = c.createIterator();
13269 f.enlargeBr = g.config.enterMode != CKEDITOR.ENTER_BR;
13271 for (e = []; a = f.getNextParagraph();) e.push(a);
13297 for (d = {}; a = f.getNextParagraph();) {
13311 …) f = b.shift(), c = f.getParent(), f.getPrevious() ? f.getNext() ? (f.breakParent(f.getParent()),…
13312 … (e.push(c), CKEDITOR.dom.element.setMarker(d, c, "blockquote_processed", !0)), a.push(f);
13318 … for (var f = 0, m = d.getChildCount(), l = void 0; f < m && (l = d.getChild(f)); f++)
13328 if (f = a.shift(), "div" == f.getName()) {
13330 !c || !f.getPrevious() || f.getPrevious().type ==
13331 …CKEDITOR.NODE_ELEMENT && f.getPrevious().isBlockBoundary() || b.append(g.document.createElement("b…
13332 …for (c = f.getNext() && !(f.getNext().type == CKEDITOR.NODE_ELEMENT && f.getNext().isBlockBoundary…
13334 b.replace(f);
13404 var f, l;
13405 "progress" == d ? f = e : l = e;
13409 progress: f,
13438 f = b.type;
13440 b.progress && "progress" != this.type && (f = "progress");
13441f && (c.removeClass(this._getClass()), c.removeAttribute("aria-label"), this.type = f, c.addClass(…
13553 f, l, u = a.getClientRect(),
13564 c.toolbar && (f = c.ui.space("top"), l = f.getClientRect());
13565f && f.isVisible() && l.bottom > d.top && l.bottom < d.bottom - u.height ? a.setStyles({
13617 var f = a.mode;
13618f && (f = this.modes[f] ? void 0 !== n[f] ? n[f] : CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISAB…
13723 …for (var b = f(), e = CKEDITOR.tools.clone(a.config.toolbarGroups) || v(a), n = 0; n < e.length; n…
13738 function f() {
13815 for (var f = 0, c; c = d.items[f++];)
13837 var d, f = function(c, h) {
13855 b ? b.focus() : f(c, 9);
13858 … return c.button && c.button.hasArrow ? c.execute() : f(c, 40 == h ? q : e), !1;
13863 b ? b.focus() : (d = 1, f(c, CKEDITOR.SHIFT + 9), d = 0);
13900 c.onkey = f;
13950 f = a.hasClass("cke_toolbox_collapser_min");
13951f ? (c.show(), a.removeClass("cke_toolbox_collapser_min"), a.setAttribute("title", b.lang.toolbar.…
13952 a.getFirst().setText(f ? "▲" : "◀");
13978 b, e, f;
13980 …; b < e.length; b++) f = e[b], f.clickFn && CKEDITOR.tools.removeFunction(f.clickFn), f.keyDownFn …
14003 CKEDITOR.ui.prototype.addToolbarGroup = function(a, d, f) {
14009 if (f) {
14010 if (f = CKEDITOR.tools.search(c, function(a) {
14011 return a.name == f
14013 !f.groups && (f.groups = []);
14015 (d = CKEDITOR.tools.indexOf(f.groups, d), 0 <= d)) {
14016 f.groups.splice(d + 1, 0, a);
14019 h ? f.groups.splice(0, 0, a) : f.groups.push(a);
14066 !m && f(a)
14089 "cut" == this.type && f();
14124 f = CKEDITOR.tools.keystrokeToString(a.lang.common.keyboard,
14126 …board.pasteNotification.replace(/%1/, '\x3ckbd aria-label\x3d"' + f.aria + '"\x3e' + f.display + "…
14127 f = "string" === typeof b ? b : b.dataValue;
14129 "string" === typeof f ? c({
14130 dataValue: f
14164 function f() {
14181 f;
14208 … if (CKEDITOR.env.webkit || CKEDITOR.env.gecko) f = e.once("blur", h, null, null, -100);
14213 CKEDITOR.env.ie && (f = e.once("blur", function() {
14219 f && f.removeListener();
14339 function b(c, d, e, h, f) {
14351 order: f
14372 type: f,
14379 f = "auto";
14384 f = a.data.type
14508 f = CKEDITOR.plugins.clipboard.getDropTarget(a),
14513 e.attachListener(f, "dragstart", g);
14523 e.attachListener(f, "dragend", g);
14526 e.attachListener(f, "dragover", function(a) {
14534 e.attachListener(f, "drop", function(c) {
14549 f = e.dragRange,
14553 b.internalDrop(f, h, g, a)
14554 … }, 0) : g.getTransferType(a) == CKEDITOR.DATA_TRANSFER_CROSS_EDITORS ? c(f, h, g) : d(h, g)
14575 f = c.dataTransfer;
14576 …e && "paste" == c.method && f && 1 == f.getFilesCount() && g != f.id && (f = f.getFile(0), -1 != C…
14589 l.readAsDataURL(f);
14625 f = b.dataValue,
14629 g = "html" == d || "html" == b.preSniffing ? "html" : z(f);
14631 "htmlifiedtext" == g && (f = A(a.config, f));
14632 if ("text" == d && "html" == g) f =
14633 w(a, f, c.get("plain-text"));
14634 else if (n && a.pasteFilter && !b.dontFilter || k) f = w(a, f, a.pasteFilter);
14635 b.startsWithEOL && (f = '\x3cbr data-cke-eol\x3d"1"\x3e' + f);
14636 b.endsWithEOL && (f += '\x3cbr data-cke-eol\x3d"1"\x3e');
14639 b.dataValue = f;
14693 e, f;
14700 (f = this.isDropRangeAffectedByDragRange(a, b)) || (e = a.createBookmark(!1));
14702 f && (e = a.createBookmark(!1));
14705 f = g.startNode;
14706 …b && a.getPosition(f) & CKEDITOR.POSITION_PRECEDING && b.getPosition(f) & CKEDITOR.POSITION_FOLLOW…
14735 for (var f = !1, l = 0; 20 > l && !f; l++) {
14736 if (!f) try {
14737 c.moveToPoint(d, g - l), f = !0
14739 if (!f) try {
14740 c.moveToPoint(d, g + l), f = !0
14743 if (f) {
14962 } catch (f) {
15050 var f = this._.panelDefinition,
15052 g = f.parent || CKEDITOR.document.getBody(),
15053 d = this._.panel = new CKEDITOR.ui.floatPanel(c, g, f),
15054 f = d.addBlock(a.id, e),
15073 if (this.onBlock) this.onBlock(d, f);
15074 f.onHide = function() {
15229 }, e = this._.getItems(), d, c, f = e.count() - 1; 0 <= f; f--)
15230 …if (d = e.getItem(f), d.getAscendant(b) || (c = d, this._.focusIndex = f), "true" == d.getAttribut…
15232 this._.focusIndex = f;
15284 var g = f[h];
15285 …g || (g = f[h] = new CKEDITOR.ui.panel(b, m), g.element = c.append(CKEDITOR.dom.element.createFrom…
15291 var f = {};
15346 f = l.getDocument(),
15348 t = b.getDocumentPosition(f),
15349 f = r ? r.getDocumentPosition(f) : {
15354 d = t.x + (m || 0) - f.x,
15355 p = t.y + (h || 0) - f.y;
15417 f;
15418 … (f = a.getCustomData("activePanel")) && f.onHide && f.onHide.call(this, 1);
15479 showAsChild: function(a, b, c, f, h, g) {
15484 …}, this), this._.activeChild = a, this._.focused = !1, a.showBlock(b, c, f, h, g), this.blur(), (C…
15498 for (b in f) {
15499 var c = f[b];
15502 a && (f = {})
15540 f = "rtl" == e.lang.dir;
15541 c[f ? 37 : 39] = "next";
15544 c[f ? 39 : 37] = "prev";
15562 …for (var a = new CKEDITOR.dom.walker(b), f = b.collapsed ? b.startContainer : a.next(), b = ""; f;…
15563 f.type !== CKEDITOR.NODE_ELEMENT && (f = f.getParent());
15564f = u(f.getComputedStyle("back" == d ? "background-color" : "color"));
15565 b = b || f;
15566 if (b !== f) {
15570 f = a.next()
15574 for (f = 0; f < b.count(); f++) {
15575 var g = b.getItem(f);
15715 var c, f, e;
15717 f(this);
15719 /^[0-9a-f]{3}([0-9a-f]{3})?$/i.test(a) && (a = "#" + a);
15722 f = function(a) {
15764 f = {};
15772 … for (var e = [], b = 0, c = a.length; b < c; b++) f[a[b]] || (e.push(a[b]), f[a[b]] = 1);
15842 var f = this.editor.getMenuItem(e);
15843 … !f || f.command && !this.editor.getCommand(f.command).state || (f.state = k[e], this.add(f))
15894 f = this._.element;
15906 f = e.addBlock(this.id, this._.panelDefinition.block);
15907 f.autoSize = !0;
15908 var c = f.keys;
15917 f = this._.element = f.element;
15918 c = f.getDocument();
15943 f.setHtml(c.join(""));
15982f, c, l = g == CKEDITOR.TRISTATE_ON ? "on" : g == CKEDITOR.TRISTATE_DISABLED ? "disabled" : "off";
15991 …command && (f = e.getCommand(this.command), (f = e.getCommandKeystroke(f)) && (c = CKEDITOR.tools.…
16043 … var c = CKEDITOR.env.webkit ? f : CKEDITOR.env.mac ? a.$.metaKey : a.$.ctrlKey;
16066 var f, d = function() {
16067 f = 0
16070 f = CKEDITOR.env.mac ? a.data.$.metaKey : a.data.$.ctrlKey
16076 open: function(a, e, f, d) {
16077 …a || CKEDITOR.document.getDocumentElement(), this.editor.selectionChange(1), this.show(a, e, f, d))
16184 f = b._determineContext(e),
16186 if (a.copyFormatting._isContextAllowed(f))
16187f = c[h], g = e.createBookmark(), -1 === l(b.preservedElements, f.element) ? CKEDITOR.env.webkit &…
16220 f = b ? b.sticky || c : !1,
16228 e.sticky = f;
16240 f = a.copyFormatting,
16244 …if (e && !f.styles) return c._putScreenReaderMessage(a, "failed"), c._detachPasteKeystrokeHandler(…
16245 e = c._applyFormat(a, f.styles);
16246f.sticky || (f.styles = null, g.removeClass("cke_copyformatting_active"), h.removeClass("cke_copyf…
16297 var f = a,
16304 for (p = b(f, c); !p && f.getParent();) {
16305 f = f.getParent();
16306 if (-1 !== l(h, f.getName())) {
16310 p = b(f, c)
16316 f = p
16317 } while (f && f.getStyle && ("none" == f.getStyle("display") || !f.getText()));
16318 …for (f || (f = a); f.type !== CKEDITOR.NODE_TEXT;) f = !m || c || k ? f.getChild(0) : f.getChild(f
16319 for (h = d(f); null != (k = g.exec(h)) && (n = k.index,
16321 if ("number" !== typeof n && !m) return e(f, c);
16323 else if (c && (n += 1, n > h.length)) return e(f);
16325 node: f,
16330 f, g, h, m, k;
16332 for (f = d(h); null != (g = c.exec(f));)
16333 …index && (g = e(h, !0), m = g.node, a = g.offset), c >= f.length && (f = e(h), k = f.node, c = f.o…
16366 f, g;
16368 for (f = 0; f < d.length; f++)
16369 if (b = d[f], -1 === l(e.excludedElementsFromInlineTransform, b.element)) {
16376 var e, c, f;
16377 …for (f = 0; f < d.length; f++) e = d[f], c = b.createBookmark(), "ol" === e.element || "ul" === e.…
16394 var c, f, g;
16395 …for (g = 0; g < d.length; g++) c = d[g], f = b.createBookmark(), -1 !== l(["table", "tr"], c.eleme…
16407 … }) : CKEDITOR.plugins.copyformatting._applyStylesToTextContext(a, b, [c]), b.moveToBookmark(f)
16412 c, f;
16415 f = a.getSelection().createBookmarks();
16428 f && a.getSelection().selectBookmarks(f);
16486 … CKEDITOR.plugins.div.getSurroundDiv(a, b)) && !b.data("cke-div-added") && (f.push(b), b.data("cke…
16488 …r b = a.getSelection(), g = b && b.getRanges(), e, h = b.createBookmarks(), f = [], d = 0; d < g.l…
16489 for (d = 0; d < f.length; d++) f[d].remove(!0);
16534 function f(d) {
16537 f = e + (d.data.$.screenX - n.x) * ("rtl" == g ? -1 : 1);
16539 h && (e = Math.max(a.resize_minWidth, Math.min(f, a.resize_maxWidth)));
16545 CKEDITOR.document.removeListener("mousemove", f);
16547 … b.document && (b.document.removeListener("mousemove", f), b.document.removeListener("mouseup",
16575 CKEDITOR.document.on("mousemove", f);
16577 b.document && (b.document.on("mousemove", f), b.document.on("mouseup", k));
16649 var f = k[u],
16651 b = f.data("cke-display-name") ? f.data("cke-display-name") :
16652f.data("cke-real-element-type") ? f.data("cke-real-element-type") : f.getName();
16653 …(p = f.hasAttribute("contenteditable") ? "true" == f.getAttribute("contenteditable") : p) || f.has…
16655 var l = c[t](f, b);
16662 r || (g.unshift(f), d.unshift(b))
16784 f = b.checkEndOfBlock(),
16789 if (n && f) {
16796 var f = !c.hasNext(),
16804 …if (d.is("li")) g || f ? (g && f && b.remove(), c[f ? "insertAfter" : "insertBefore"](d)) : c.brea…
16808 … t), c.moveChildren(d)) : d = p.block, g || f) d[g ? "insertBefore" : "insertAfter"](b);
16810 else if (c.appendBogus(!0), g || f)
16828 } else if (c && c.is("pre") && !f) {
16836 f = q.wasEndOfBlock;
16838 if (n || f)
16855 !CKEDITOR.env.ie || !n || f && a.getChildCount() ||
16856 (b.moveToElementEditStart(f ? a : d), b.select());
16857 b.moveToElementEditStart(n && !f ? c : d)
16872 f = n.block,
16873 p = f && n.block.getName();
16874f.getDirection()) ? (m = m.createElement("div"), m.setAttribute("dir", h), m.insertAfter(f), b.set…
16875 …e(a), CKEDITOR.env.needsBrFiller ? (m.createText("").insertAfter(a), h && (f || n.blockLimit).app…
16885 function k(b, f) {
16898 var d = f ? "\x26" + a + ";" : e[a];
16899 g[d] = f ? e[a] : "\x26" + a + ";";
16903 if (!f && b) {
16916 g.regex = c.join(f ? "|" : "");
16921 function f(a) {
16944 return a.replace(l, f).replace(d, g)
16968 var f = parseInt((window.screen.height - b) / 2, 10),
16971 a + ",height\x3d" + b + ",top\x3d" + f + ",left\x3d" + g;
16975 …-1 == navigator.userAgent.toLowerCase().indexOf(" chrome/") && (c.moveTo(g, f), c.resizeTo(a, b)),…
17008 d, f, g, e;
17010 f = a.slice(d, d + 512);
17011 g = Array(f.length);
17012 for (e = 0; e < f.length; e++) g[e] = f.charCodeAt(e);
17013 f = new Uint8Array(g);
17014 b.push(f)
17035 var f = a.config.fileTools_requestHeaders,
17042 if (f)
17043 for (g in f) b.xhr.setRequestHeader(g, f[g]);
17049 f = a.data;
17052 g.error && g.error.message && (f.message = g.error.message);
17054 for (var e in g) f[e] = g[e];
17057f.message = b.lang.filetools.responseError, CKEDITOR.warn("filetools-response-error", {
17260 var f = e.filebrowser.url;
17261 …void 0 === f && (f = a.config["filebrowser" + k(b) + "BrowseUrl"], void 0 === f && (f = a.config.f…
17262 f && (e.onClick = q, e.filebrowser.url = f, e.hidden = !1)
17264 …&& (f = e.filebrowser.url, void 0 === f && (f = a.config["filebrowser" + k(b) + "UploadUrl"], void…
17276 … }), b.on("error", n.bind(this)), b.on("abort", n.bind(this)), b.loadAndUpload(p(f)), "xhr";
17282 e.filebrowser.url = f;
17422 f;
17423 f = new CKEDITOR.htmlParser.basicWriter;
17424 a.writeHtml(f);
17425 f = f.getHtml();
17428 "data-cke-realelement": encodeURIComponent(f),
17455 return "application/x-shockwave-flash" == a.type || f.test(a.src || "")
17461 var f = /\.swf(?:$|\?)/i;
17534 function f(a, c, e) {
17543 f("absolute", "top", b.y - q - r);
17546 f("fixed", "top", x);
17549 f("absolute", "top", b.y + (c.height || c.bottom - c.top) + r)
17560 var f = d && "focus" == d.name;
17561 f && b.show();
17563 show: f
17573f = 0) : (f = "left" == d ? 0 < c.left ? c.left : 0 : c.right < h.width ? h.width - c.right : 0, f
17633 …var f = CKEDITOR.addTemplate("panel-list", '\x3cul role\x3d"presentation" class\x3d"cke_panel_list…
17665 var a = f.output({
17836 function f() {
17865 var f = d.getValue();
17866 f ? c.list.mark(f) : c.list.unmarkAll();
17872 a.on("activeFilterChange", f, this);
17874 f, this);
17875 a.on("selectionChange", f, this);
17876 !this.readOnly && a.on("readOnly", f, this);
18017 function p(b, f, e, d, r, p, t, x) {
18033 b.ui.addRichCombo(f, {
18075 f = k[a],
18093 a === this.defaultValue ? e && b.removeStyle(e) : b.applyStyle(f);
18101 for (var d = 0, f; d < a.length; d++) {
18102 f = a[d];
18104 if (k[e].checkElementMatch(f, !0, b)) {
18118 function v(b, f, e) {
18119 var d = f.pop();
18121 if (e) return v(b, f, d.equals(e) ? null : e);
18125 v(b, f)
18131 var f = b.config;
18132 … p(b, "Font", "family", b.lang.font, f.font_names, f.font_defaultLabel, f.font_style, 30);
18133 …p(b, "FontSize", "size", b.lang.font.fontSize, f.fontSize_sizes, f.fontSize_defaultLabel, f.fontSi…
18218 f = this.path + "dialogs/";
18219 !a.blockless && e("Form", "form", f + "form.js");
18220 e("Checkbox", "checkbox", f + "checkbox.js");
18222 f + "radio.js");
18223 e("TextField", "textfield", f + "textfield.js");
18224 e("Textarea", "textarea", f + "textarea.js");
18225 e("Select", "select", f + "select.js");
18226 e("Button", "button", f + "button.js");
18229 e("HiddenField", "hiddenfield", f + "hiddenfield.js");
18380 …for (var f = a.config, c = a.lang.format, l = f.format_tags.split(";"), d = {}, m = 0, n = [], g =…
18382 k = new CKEDITOR.style(f["format_" + h]);
18391 css: [CKEDITOR.skin.getPath("editor")].concat(f.contentsCss),
18660 function f(a) {
18691 …rMode != CKEDITOR.ENTER_P ? f("p") : CKEDITOR.env.edge && 15 > CKEDITOR.env.version && b.enterMode…
18736 function f() {
18752 … (d) {} else CKEDITOR.env.ie && 11 > CKEDITOR.env.version && a.config.disableObjectResizing && f(a)
18759 var f = [],
18761 for (b in CKEDITOR.dtd.$removeEmpty) f.push("html.CSS1Compat " +
18763 a.push(f.join(",") + "{display:inline-block}")
18776 a.addMode("wysiwyg", function(f) {
18780 a.setData(a.getData(1), f)
18818 var f = this.config,
18819 b = f.contentsCss;
18820 CKEDITOR.tools.isArray(b) || (f.contentsCss = b ? [b] : []);
18821 f.contentsCss.push(a)
18834 setData: function(a, f) {
18836 if (f) this.setHtml(a), this.fixInitialSelection(), b.fire("dataReady");
18881 var f = a.config,
18882 b = f.fullPage,
18887 …CKEDITOR.env.gecko && f.enterMode != CKEDITOR.ENTER_BR && (b = b.replace(/<br>(?=\s*(:?$|<\/body>)…
18898 f = a.document,
18905 f.getDocumentElement().clearCustomData();
18921 function f(b) {
18973 … c && (g = f(c), g == a ? (c.removeStyle("float"), a == f(c) && c.removeAttribute("align")) :
18978 …c && (c = f(c), this.setState(c == a ? CKEDITOR.TRISTATE_ON : "right" == a || "left" == a ? CKEDIT…
18989 var e, f;
18998 f = e.createBookmarks(1);
19004 e.selectBookmarks(f)
19026 var f = a.createRange(),
19028 f.setStartBefore(l);
19029 f.setEndAfter(l);
19030 for (var n = new CKEDITOR.dom.walker(f), c; c = n.next();)
19033 … c.getDirection()) f.setStartAfter(c), n = new CKEDITOR.dom.walker(f);
19098 function f(b, c, a) {
19175 f = this.isIndent,
19176 c = e ? f ? e[1] != c.slice(-1) : !0 : f;
19188 if (c = a.elementPath().contains(p)) f.call(this, c, d);
19190 …c = b.getNextParagraph(a == CKEDITOR.ENTER_P ? "p" : "div");) c.isReadOnly() || f.call(this, c, d);
19224 function w(f) {
19245 … e = CKEDITOR.plugins.list.arrayToList(h, q, null, f.config.enterMode, b.getDirection());
19259 e && f.fire("contentDomInvalidated");
19262 …for (var k = this, q = this.database, p = this.context, c, m = f.getSelection(), m = (m && m.getRa…
19265 if (f.editable().equals(b)) {
19284 function n(f) {
19285 return f.type == CKEDITOR.NODE_ELEMENT && f.is("li")
19288 function x(f) {
19289 return y(f) && z(f)
19297 init: function(f) {
19298 function g(f) {
19302 f.on("key", function(g) {
19303 var c = f.elementPath();
19304 if ("wysiwyg" == f.mode && g.data.keyCode == this.indentKey && c) {
19306 …dent && CKEDITOR.plugins.indentList.firstItemInPath(this.context, c, m) || (f.execCommand(this.rel…
19310 refresh: this.isIndent ? function(f, c) {
19314 } : function(f,
19322 k.registerCommands(f, {
19323 indentlist: new g(f, "indentlist", !0),
19324 outdentlist: new g(f, "outdentlist")
19335 CKEDITOR.plugins.indentList.firstItemInPath = function(f, g, k) {
19337 k || (k = g.contains(f));
19383 var f = a.config.enterMode ==
19400 this.requiredContent = f + "(" + this.cssClassName + ")"
19401 } else this.requiredContent = f + "{text-align}";
19417 for (var f = new CKEDITOR.dom.walker(b), d; d = f.next();)
19419 …if (!d.equals(a.data.node) && d.getDirection()) b.setStartAfter(d), f = new CKEDITOR.dom.walker(b);
19433 …for (var f = c.createBookmarks(), d = c.getRanges(), e = this.cssClassName, h, g, k = a.config.use…
19448 c.selectBookmarks(f)
19453 f = b.getName(),
19455f = this.cssClassName ? a.activeFilter.check(f + "(" + this.cssClassName + ")") : a.activeFilter.c…
19456 …d && 1 === c.elements.length ? this.setState(CKEDITOR.TRISTATE_OFF) : !d && f ? this.setState(q(b,…
19464 f = new h(a, "justifyright", "right"),
19468 a.addCommand("justifyright", f);
19544 g, h, k, f;
19558 … for (f = 0; f < b.length; f++) g = b[f].split(":"), h = g[0], k = "language_" + h, e[k] = {
19562 order: f,
19597 f;
19598 for (f in e) b[f] = CKEDITOR.TRISTATE_OFF;
19625 for (var b, a = c.length, d = [], f = 0; f < a; f++) b = c.charCodeAt(f), d.push(b);
19632 f, e;
19634 …var g = 0; g < d.length; g++) a = d[g].toLowerCase(), f = b[a], 0 < g && e.push(","), e.push("'",
19642 c && "encode" != c && (b = {}, c.replace(/^([^(]+)\(([^)]+)\)$/, function(a, c, f) {
19645 f.replace(/[^,\s]+/g, function(a) {
19657 …hidpi" : "") + "/anchor.png") + ") no-repeat %1 center;border:1px dotted #00f;background-size:16px…
19791 f = a.getRanges(),
19795 for (d = 0; d < f.length; d++)
19804 …a.getElementsByTag("a"), a = a.getElementsByTag("img"), d = [], f = 0, e; e = b.getItem(f++);)(e.d…
19808 for (f = 0; e = a.getItem(f++);)(e = this.tryRestoreFakeAnchor(c, e)) && d.push({
19825 f = c.config.emailProtection,
19827 a.match(t) && ("encode" == f ? a = a.replace(A, function(a, b, c) {
19830 }) : f && a.replace(B, function(a, b, c) {
19836 …ength, f, h, k = 0; k < e; k++) f = decodeURIComponent, h = c[k].replace(b, "").replace(/\\'/g, "'…
19841 … if (f = a.match(x)) g.type = "anchor", g.anchor = {}, g.anchor.name = g.anchor.id = f[1];
19842 else if (f = a.match(u)) {
19847 k.address = f[1];
19861 }; f = D.exec(a[2]);) "yes" != f[2] && "1" != f[2] || f[1] in {
19866 } ? isFinite(f[2]) && (g.target[f[1]] = f[2]) : g.target[f[1]] = !0;
19870 for (h in m)(f = b.getAttribute(h)) && (a[m[h]] = f);
19883 f = b.url && CKEDITOR.tools.trim(b.url.url) || "";
19884 d["data-cke-saved-href"] = 0 === f.indexOf("/") ? f : a + f;
19892 f = e.address;
19902 …cript:void(location.href\x3d'mailto:'+", q(f)], e && a.push("+'", p(e), "'"), a.push(")")) : a = […
19905 … a = f.split("@", 2), e.name = a[0], e.domain = a[1], a = ["javascript:", r(c, e)]
19913 …tatus location toolbar menubar fullscreen scrollbars dependent".split(" "), f = h.length, g = func…
19915 }, e = 0; e < f; e++) h[e] += b.target[h[e]] ? "\x3dyes" : "\x3dno";
20014 …for (var f = CKEDITOR.plugins.list.listToArray(m.root, e), g = [], k = 0; k < m.contents.length; k…
20020 … for (k = 0; k < g.length; k++) h = g[k].getCustomData("listarray_index"), f[h].indent = -1;
20021 for (k = h + 1; k < f.length; k++)
20022 if (f[k].indent > f[k - 1].indent + 1) {
20023 g = f[k - 1].indent + 1 - f[k].indent;
20024 for (h = f[k].indent; f[k] && f[k].indent >= h;) f[k].indent += g, k++;
20026 …} var d = CKEDITOR.plugins.list.arrayToList(f, e, null, b.config.enterMode, m.root.getAttribute("d…
20043f, g; f = b[c ? "getLast" : "getFirst"](J);)(g = f.getDirection(1)) !== m.getDirection(1) && f.set…
20065 var f = m.createBookmark(),
20093 m.moveToBookmark(f);
20112 listToArray: function(b, m, e, c, f) {
20126f ? d.grandparent = f : (d.grandparent = b.getParent(), d.grandparent && "li" == d.grandparent.$.n…
20134 arrayToList: function(b, m, e, c, f) {
20143 … d.getName() || (d = b[a].parent.clone(!1, 1), f && d.setAttribute("dir", f), h.append(d));
20186 …nt.clearMarkers(m, b), b.getName() in CKEDITOR.dtd.$listItem && (e = b, k = f = c = void 0, c = e.…
20187 for (f =
20188 e.getParent(); f && !(k = f.getDirection());) f = f.getParent();
20208 var f = b.editable();
20209 if (f.getFirst(u)) {
20213 …CKEDITOR.ENTER_BR ? f.appendBogus() : c[0].fixBlock(1, m.enterMode == CKEDITOR.ENTER_P ? "p" : "di…
20215 for (var m = e.createBookmarks(!0), f = [], k = {}, c = c.createIterator(), h = 0;
20233 … }, f.push(a), CKEDITOR.dom.element.setMarker(k, q, "list_group_object", a));
20240 … }, CKEDITOR.dom.element.setMarker(k, p, "list_group_object_" + h, a), f.push(a)))
20243 for (q = []; 0 < f.length;)
20244 if (a = f.shift(), this.state == CKEDITOR.TRISTATE_OFF)
20336 var f = b.getSelection().getRanges()[0],
20337 g = f && f.startPath();
20338 if (f && f.collapsed) {
20341 d = new CKEDITOR.dom.walker(f.clone());
20349 e = f.clone();
20352f.checkBoundaryOfElement(a, CKEDITOR.START) && (a = a.getParent()) && a.is("li") && (a = A(a)) ? (…
20354 if (c) C(b, e, f), m.cancel();
20357f.checkBoundaryOfElement(p, CKEDITOR.START) && (c = p.getFirst(u), f.checkBoundaryOfElement(c, CKE…
20361 …R.NODE_ELEMENT && a.getName() in v && a.equals(h) ? (g = 1, a = d.next()) : f.checkBoundaryOfEleme…
20362 f = f.clone();
20363 f.moveToElementEditStart(a);
20368 …sition(e.endPath().block, CKEDITOR.POSITION_BEFORE_END), f.endPath().block && f.moveToPosition(f.e…
20369 C(b, e, f);
20372f.checkStartOfBlock() && f.checkEndOfBlock() ? (g.block.remove(), f.moveToElementEditStart(a), f.s…
20579 f;
20580f = a.doc.createText(J) : (f = (f = P(a.element, !0)) && f.data("cke-enter-mode") || a.enterMode,
20582 c(f);
20583 b.moveToPosition(f, CKEDITOR.POSITION_AFTER_START);
20585 a.hotNode = f;
20598f = a.hotNode && a.hotNode.getText() == d && a.element.equals(a.hotNode) && a.lastCmdDirection ===…
20600 f && a.hotNode && a.hotNode.remove();
20619 var f;
20620 …(f = w(a, e, !c)) && n(f) && f.is(a.triggers)) ? d(e) : (f = O(a, b), n(f) && (w(a, f, !c) ? (b = …
20684 …var f = d.y > (a.inInlineMode ? b.editable.top + b.editable.height / 2 : Math.min(b.editable.heigh…
20685 c = c[f ? "getLast" : "getFirst"](function(a) {
20689 A(a, c) && (c = a.line.wrap[f ? "getPrevious" : "getNext"](function(a) {
20694 …return !f && 0 <= c.size.top && q(d.y, 0, c.size.top + e) ? (a = a.inInlineMode || 0 === b.scroll.…
20705 f = [],
20717 f = [g, e][h ? "reverse" : "concat"]().concat([T, M])
20719 … b, d.pane.height) ? k = D : q(c.y, 0, e.size.top + b) && (k = C)) : k = x, f = [null, e][h ? "rev…
20722 return 0 in f ? new z(f) : null
20726 …for (var e = c.getDocumentPosition(), f = {}, k = {}, h = {}, g = {}, l = y.length; l--;) f[y[l]] …
20732 g.height = g.outerHeight - (h.top + h.bottom + f.top + f.bottom);
20733 g.width = g.outerWidth - (h.left + h.right + f.left + f.right);
20741 border: f,
20787 for (var e = b, f = b, k = 0, h = !1, g = !1, l = a.view.pane.height,
20790 g || (g = c(f, b));
20795 !g && p.y + k < l && (f = d(a, {
20802 return new z([e, f, null, null])
20827 e, f, k;
20862 f = b.view.scroll;
20863 …d > e.left - f.x && d < e.right - f.x && c > e.top - f.y && c < e.bottom - f.y || (clearTimeout(k)…
20875 f = !0;
20885f && !b.hiddenMode && a.focusManager.hasFocus && !b.line.mouseNear() && (b.element =
20886 ….upper || b.trigger.lower) ? b.line.attach().place() : (b.trigger = null, b.line.detach()), f = !1)
20903 var c, d, e, f;
20904 for (f in {
20909 for (c = a.document.getElementsByTag(f), e = c.count(); e--;)
20973 f = c.line.wrap;
20976 d && A(c, k) && (f.hide(), k = a(e, b), f.show());
20985 e, f, k;
20993 f = k.lower;
20994 if (V(a, e, f)) return k.set(T,
21001 if (f && b.contains(f))
21002 for (; !f.getParent().equals(b);) f = f.getParent();
21003 else f = b.getLast(function(b) {
21006 if (!e || !f) return null;
21008 r(a, f);
21009 if (!q(a.mouse.y, e.size.top, f.size.bottom)) return null;
21010 …for (var b = Number.MAX_VALUE, h, g, l, p; f && !f.equals(e) && (g = e.getNext(a.isRelevant));) h …
21025 var f = b.lower;
21026 …e = !e || !f || u(f) || u(e) || f.equals(e) || e.equals(f) || f.contains(e) || e.contains(f) ? !1 …
21038 for (var e = [], f = ["style", "className"], b = 0; b < f.length; b++) {
21039 var c = a.$.elements.namedItem(f[b]);
21047 for (var f = e.length - 1; 0 <= f; f--) {
21048 var b = e[f][0],
21049 c = e[f][1];
21055 var f = n(a),
21062 t(f);
21067 var f = n(a),
21071 t(f)
21077 f;
21078 for (f in e) {
21079 var b = e[f];
21093 var f = a.lang,
21169 … (d = this.uiItems[0]) g = this.state == CKEDITOR.TRISTATE_OFF ? f.maximize.maximize : f.maximize.…
21179 label: f.maximize.maximize,
21253 function b(f) {
21254 CKEDITOR.tools.extend(f.attributes,
21256 f.children.length = 0
21319 var f = {
21337 a.addCommand("pastetext", f);
21354 function l(a, f, e) {
21356 …h ? e() : (a = CKEDITOR.getUrl(a.config.pasteFromWordCleanupFile || f + "filter/default.js"), CKED…
21362 function f(a) {
21391 a.on("paste", function(f) {
21392 var b = f.data,
21413 k && f.cancel()
21416 … if (CKEDITOR.plugins.clipboard.isCustomDataTypesSupported && m) a.on("afterPasteFromWord", f)
21430 f = b.baseHref ? '\x3cbase href\x3d"' + b.baseHref + '"/\x3e' : "";
21431 …if (b.fullPage) g = a.getData().replace(/<head>/, "$\x26" + f).replace(/[^>]*(?=<\/title>)/, "$\x2…
21438 …\x3chtml dir\x3d"' + a.config.contentsLangDirection + '"\x3e\x3chead\x3e' + f + "\x3ctitle\x3e" + …
21440 f = 640;
21445 f = Math.round(.8 * c.width),
21457 …tatus\x3dyes,menubar\x3dyes,scrollbars\x3dyes,resizable\x3dyes,width\x3d" + f + ",height\x3d" + b …
21507 …tes || (a._.removeAttributes = a.config.removeFormatAttributes.split(",")), f = CKEDITOR.plugins.r…
21516 … !g.equals(c.block) && !g.equals(c.blockLimit); d++) h.test(g.getName()) && f(a, g) && b.breakPare…
21524 …EDITOR.NODE_ELEMENT), "img" == b.getName() && b.data("cke-realelement") || !f(a, b) || (h.test(b.g…
21534 for (var e = a._.removeFormatFilters || [], f = 0; f < e.length; f++)
21535 if (!1 === e[f](h)) return !1;
21621 c, b, e, f, k = CKEDITOR.getUrl(this.path),
21626 …= e = f = ""; d = a.pop();) h = a.length ? "," : "", c += ".cke_show_blocks " + d + g + h, e += ".…
21628 f + "{background-position:top right;padding-right:8px}"));
21656 var f = {
21682 var b = a.addCommand("showborders", f);
21758 var f = CKEDITOR.plugins.sourcearea;
21779 a.addCommand("source", f.commands.source);
21921 …? @ 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 …
22081 f = function() {
22099 f();
22114 f = !1,
22116 …b.data.name || !d || ("cut" === b.data.name && (h = !1, f = !0), "language" === b.data.name && (f
22119 forceBookmark: f,
22148 f = b.data && b.data.language,
22151 f && (d.selectionNode = a.plugins.language.getCurrentLangElement(a),
22225f = ["lang", "ignore-all-caps-words", "ignore-domain-names", "ignore-words-with-mixed-cases", "ign…
22233 if (!g(e, c) || p && g(f, function(a) {
22236 g(f, c) && f.splice(k(f, c), 1);
22238 "options" === c && (f = ["lang"])
22240 return b = b.concat(f)
22250 f = a.addRemoveFormatFilter,
22281 f && f.call(a, k)
22393 f = d ? "word" : "phrase",
22401 … a.addCommand(l, this.createCommand(CKEDITOR.plugins.scayt.suggestions[d], f, g));
22421 …, a.addCommand(l, this.createCommand(CKEDITOR.plugins.scayt.suggestions[d], f, g)), a.addMenuItem(…
22441 f = a.config.scayt_contextCommands.split("|"),
22457 …xOf(f, h.replace("scayt_", "")) && "all" != a.config.scayt_contextCommands || m && "grayt_problemd…
22552 var f;
22553 … a.window && (f = "BODY" == a.editable().$.nodeName ? a.window.getFrame() : a.editable());
22554 if (f) {
22555 f = {
22557 container: f.$,
22578 … a.config.scayt_serviceProtocol && (f.service_protocol = a.config.scayt_serviceProtocol);
22579 a.config.scayt_serviceHost && (f.service_host = a.config.scayt_serviceHost);
22580 a.config.scayt_servicePort && (f.service_port = a.config.scayt_servicePort);
22581 a.config.scayt_servicePath && (f.service_path = a.config.scayt_servicePath);
22582 …"boolean" === typeof a.config.scayt_ignoreAllCapsWords && (f["ignore-all-caps-words"] = a.config.s…
22583 …"boolean" === typeof a.config.scayt_ignoreDomainNames && (f["ignore-domain-names"] = a.config.scay…
22585 … (f["ignore-words-with-mixed-cases"] = a.config.scayt_ignoreWordsWithMixedCases);
22586 …"boolean" === typeof a.config.scayt_ignoreWordsWithNumbers && (f["ignore-words-with-numbers"] = a.…
22589 g = e(f)
22591 c.alarmCompatibilityMessage(), delete f.charsToObserve, g = e(f)
22685 … if (b = "ready" == this.status) var f = c.removeMarkupFromString(this.getSnapshot()),
22687 b = b && c !== f
22706 f = this.contents,
22710 …editor.name] && b.editor.scayt && (this.contents = c.removeMarkupFromString(f) || "", b.contents =…
22712 this.contents = f;
22725 f = {},
22731 …1E3 * (d == CKEDITOR.STYLE_OBJECT ? 1 : d == CKEDITOR.STYLE_BLOCK ? 2 : 3), f[h] = b, k.push(b), m…
22750 var a, b, c, d, e, f;
22752 …for (f = k.length; e < f; e++) a = k[e], b = a._name, d = a._.type, d != c && (this.startGroup(g["…
22759 a = f[a];
22771 for (var g in f)
22772 if (f[g].checkElementRemovable(e, !0, c)) {
22788 for (var h in f) {
22789 var d = f[h],
22801 for (var b in f)
22802 if (f[b].checkApplicable(a, c, c.activeFilter)) return;
22807 f = {};
22845f = b.getAscendant("table").$, a = b.getParent().$.cells, f = new CKEDITOR.dom.element(f.insertRo…
22846 e.moveToElementEditStart(f)
22869 f = {
22885 CKEDITOR.tools.extend(f, h));
22893 f, c, d, e, b, a;
22903 if (!f)
22907 f = 1
22910 (f = 1);
22912 if (f && a == g) {
22922 …for (var g = void 0 === h ? this.getTabIndex() : h, f, c, d, e = 0, b, a = this.getDocument().getB…
22923 if (!f)
22927 f = 1
22929 } else c && !this.contains(a) && (f = 1);
22932 if (f && 0 === b) {
22938 if (f && b == g) {
22950 function f(c) {
22986 a.addCommand("tableProperties", new CKEDITOR.dialogCommand("tableProperties", f()));
22987 a.addCommand("tableDelete", f({
23036 function q(d, f) {
23038 return f ? f.contains(a) && a.getAscendant("table", !0).equals(f) : !0
23067 function r(d, f) {
23068 …owIndex + b.$.rowSpan - 1, b = new CKEDITOR.dom.element(e.$.rows[k]), g = f ? g : k, a = f ? a : b,
23069 …b = CKEDITOR.tools.buildTableMap(e), e = b[g], g = f ? b[g - 1] : b[g + 1], b = b[0].length, c = c…
23074 f ? c.insertBefore(a) : c.insertAfter(a);
23080 var f = d.getRanges(),
23099 f[0].moveToPosition(c, CKEDITOR.POSITION_BEFORE_START);
23103 return c.$.parentNode ? a : (f[0].select(), null)
23110 for (var f = d.getParent().$.cells, b = 0, c = 0; c < f.length; c++) {
23111 var e = f[c],
23118 function w(d, f) {
23119 for (var b = f ? Infinity : 0, c = 0; c < d.length; c++) {
23121 if (f ? e < b : e > b) b = e
23126 function u(d, f) {
23128 … w(b), a = f ? e : b, g = CKEDITOR.tools.buildTableMap(c), c = [], e = [], b = [], k = g.length, h…
23129 …ment(c[h]), g = a.clone(), g.removeAttribute("colSpan"), g.appendBogus(), g[f ? "insertBefore" : "…
23134 function f(a) {
23148 CKEDITOR.env.webkit && !d.isFake && (d = f(d));
23169 function t(d, f) {
23177 f ? c.insertBefore(b) : c.insertAfter(b)
23183 var f = d.getRanges(),
23200 …e ? p(e, !0) : c && (f[0].moveToPosition(c, CKEDITOR.POSITION_BEFORE_START), f[0].select(), c.remo…
23201 …} else d instanceof CKEDITOR.dom.element && (f = d.getParent(), 1 == f.getChildCount() ? f.remove(…
23204 function p(d, f) {
23210 …b["moveToElementEdit" + (f ? "End" : "Start")](d) || (b.selectNodeContents(d), b.collapse(f ? !1 :…
23214 function A(d, f, b) {
23215 d = d[f];
23217 for (f = 0; d && f < d.length; f++) {
23218 if (b.is && d[f] == b.$) return f;
23219 if (f == b) return new CKEDITOR.dom.element(d[f])
23224 function x(d, f, b) {
23227 …if ((f ? 1 != c.length : 2 > c.length) || (e = d.getCommonAncestor()) && e.type == CKEDITOR.NODE_E…
23236 if (f) {
23241 … n = g["up" == f ? l - p : "down" == f ? l + p : l]["left" == f ? m - a : "right" == f ? m + a : m]
23246 c["up" == f || "left" == f ? "unshift" : "push"](new CKEDITOR.dom.element(n))
23248 f = d.getDocument();
23251 u = !b && new CKEDITOR.dom.documentFragment(f),
23253 for (f = 0; f < c.length; f++) {
23254 a = c[f];
23266 …aces(!0)), !r || r.is && r.is("br") || u.append("br")), a.moveChildren(u)), f ? a.remove() : a.set…
23277 for (f = c - 1; 0 <= f; f--) e = b.getItem(f), e.$.cells.length || (e.remove(), c++);
23281 function C(d, f) {
23284 if (f) return !0;
23312 function E(d, f) {
23315 if (f) return !0;
23345 function f(a) {
23363 b("cellProperties", new CKEDITOR.dialogCommand("cellProperties", f({
23418 b("rowDelete", f({
23425 b("rowInsertBefore", f({
23434 b("rowInsertAfter", f({
23442 b("columnDelete", f({
23449 b("columnInsertBefore", f({
23457 b("columnInsertAfter", f({
23465 b("cellDelete", f({
23473 b("cellMerge", f({
23481 b("cellMergeRight", f({
23489 b("cellMergeDown", f({
23498 f({
23505 b("cellHorizontalSplit", f({
23512 b("cellInsertBefore", f({
23519 b("cellInsertAfter", f({
23716 f = {},
23734 …etCustomData("selected_cell") && (k.push(d), CKEDITOR.dom.element.setMarker(f, d, "selected_cell",…
23735 CKEDITOR.dom.element.clearAllMarkers(f);
23817 function d(a, d, e, f) {
23818 …eButton(a) !== CKEDITOR.MOUSE_BUTTON_LEFT && f) && ("mouseup" !== a.name || c(a.data.getTarget()) …
23825 f = k && k.getAscendant({
23845 (f || k) && L(e, f || k, a);
23870 f = CKEDITOR.env.ie && 9 > CKEDITOR.env.version,
23882 …= a.on("selectionChange", c, null, null, 0), f && (n = k.scrollTop), h.selectNodeContents(p), h.se…
24002 f, l;
24004 f = new q(v(e, g)), d.once("afterPaste", function() {
24010 } else a = f.cells.all;
24012f.insertRow(1, 1 === k, !0), e.selectElement(f.rows.first)) : (f.emptyCells(), t(d, f.cells.all)),…
24015 0)) : (c(f.cells.first), d.once("afterPaste", function() {
24017 f.emptyCells(f.cells.all.slice(1));
24018 t(d, f.cells.all);
24044 k, f, l, p;
24047 …if (f = new CKEDITOR.dom.element(c[l][p]), d = b[l] && b[l][p] ? new CKEDITOR.dom.element(b[l][p])…
24048 if (d && d.getParent()) f.replace(d);
24051 …getParent()) ? f.insertAfter(d) : 0 < e ? k.$.cells[e] ? f.insertAfter(new CKEDITOR.dom.element(k.…
24052 CKEDITOR.dom.element.setMarker(h, f, "processed", !0)
24053 } else f.getCustomData("processed") && d && d.remove();
24111 var f = k.data.getKey(),
24113 h, m = 37 === f || 38 == f,
24115 if (g[f] && (h = a.getSelection()) && h.isInTable() && h.isFake) {
24119 if (13 !== f || a.plugins.enterkey) k.data.preventDefault(), k.cancel();
24120 … if (36 < f && 41 > f) n[0].moveToElementEditablePosition(m ? q : r, !m), h.selectRanges([n[0]]);
24121 else if (13 !== f || 13 === l || l === CKEDITOR.SHIFT + 13) {
24125 13 === f && a.plugins.enterkey ?
24126 …d("shiftEnter"), a.fire("unlockSnapshot"), a.fire("saveSnapshot")) : 13 !== f && a.fire("saveSnaps…
24203 f = a.addCommand("undo", {
24224 f.setState(d.undoable() ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED);
24315 b || (b = new f(d));
24382 (a = new f(this.editor));
24404 var d = new f(this.editor,
24420 var b = new f(this.editor, !0);
24454 var f = CKEDITOR.plugins.undo.Image = function(a, b) {
24464 f.prototype = {
24497 …tack.getLast(b) || this.keyEventsStack.push(b), this.lastKeydownImage = new f(a.editor), e.isNavig…
24515 …alKeysBug(a) && this.lastKeydownImage && this.lastKeydownImage.equalsContent(new f(b.editor, !0))))
24521 !a && b.save(!0, null, !1) || b.updateSelection(new f(b.editor));
24680 e, g, f, h, k = CKEDITOR.tools.eventsBuffer(50, function() {
24681 …Point(f, h)) && g.nodeType && (e = new CKEDITOR.dom.element(g), d.traverseSearch(e), isNaN(f + h) …
24686 f = a.data.$.clientX;
24735 function a(a, c, e, g, f) {
24736 for (var h = 0, k; f(e);) {
24752 f = a.call(this, b.$, c, d, -1, function(a) {
24758 if (f)
24759 for (this.traverseSearch(f); !f.getParent().equals(b);) f = f.getParent();
24762 for (; f || c;) {
24763 f && (f = f.getNext(l));
24764 if (!f || f.equals(c)) break;
24765 this.traverseSearch(f);
24767 if (!c || c.equals(f)) break;
24800 for (var f in a)
24801 for (var h in a[f])
24802 if (b = Math.abs(e - a[f][h]), d.length) {
24806 uid: +f,
24812 uid: +f,
24817 uid: +f,
25032 f = d.createRange(),
25037 …nges()[0]), f.setStartAt(b.getChild(b.getChildCount() - 1), CKEDITOR.POSITION_BEFORE_END), d.getSe…
25038f.setEndAt(b.getLast().getPrevious(), CKEDITOR.POSITION_BEFORE_END), b.editor.getSelection().selec…
25079 var f = a.editor;
25081 editor: f,
25110 … this.isInited() && f.editable().contains(this.wrapper) && (this.ready = !0, this.fire("ready"))
25128 var f = a.widgets.focused;
25129 if (f && f.name == b.name) f.edit();
25132 var f = "function" == typeof b.defaults ? b.defaults() : b.defaults,
25133 f = CKEDITOR.dom.element.createFromHtml(b.template.output(f)),
25134 h, l = a.widgets.wrapElement(f, b.name),
25137 … (h = a.widgets.initOn(f, b, d && d.startupData)) ? (f = h.once("edit", function(b) {
25141 var d, f;
25143 f = b.once("cancel", function(b) {
25148 f.removeListener()
25152 }, null, null, 999), h.edit(), f.removeListener()) : e()
25165 e, f;
25166 for (f = 0; f < d.length; f++)
25168 d[f], e === a.name) return b.upcasts[e].call(this, a, c);
25180 f = b.upcastPriority || 10;
25181 e && ("string" == typeof e ? d(c, b, f) : d(e, b, f))
25202 d, e, f, h;
25211 f = l.getItem(d);
25212 if (h = !this.getByElement(f, !0)) {
25215 for (var k = f; k = k.getParent();)
25223 …h && b.contains(f) && (f.addClass("cke_widget_new"), c.push(this.initOn(f.getFirst(g.isDomWidgetEl…
25272 var f, h, l, k, m;
25279 for (f = d.length; k < f; ++k)
25282f = c[k], l = {}, h = f[0](a, l)) return h instanceof CKEDITOR.htmlParser.element && (a = h), a.at…
25347 f = e.getData("cke/widget-id"),
25350f && h === CKEDITOR.DATA_TRANSFER_CROSS_EDITORS ? c.cancel() : "" !== f && h == CKEDITOR.DATA_TRAN…
25394 e, f;
25398 f = 0;
25399 … CKEDITOR.NODE_ELEMENT && d.hasAttribute("data-cke-widget-drag-handler") ? (f = 1, a.focused != e …
25403 f && e && e.wrapper && (f = 0, e.focus())
25471 f = [];
25473 c[e] = f;
25485 … if (c = a.instances[c["data-cke-widget-id"]]) d = b.getFirst(g.isParserWidgetElement), f.push({
25491 …} else if ("data-cke-widget-editable" in c) return f[f.length - 1].editables[c["data-cke-widget-ed…
25498 for (var b, f, h, l, g, m; b = a.shift();) {
25499 f = b.widget;
25501 l = f._.downcastFn && f._.downcastFn.call(f, h);
25502 …itables) g = b.editables[m], delete g.attributes.contenteditable, g.setHtml(f.editables[m].getData…
25530f, h, l = 0, k = c.count(); l < k; ++l) f = c.getItem(l), h = f.getFirst(g.isDomWidgetElement), h.…
25572 var f = a.focused !== e,
25575 for (f &&
25577 f && e && (g = a.editor.checkDirty(), a.focused = e, a.fire("widgetFocused", {
25590 f;
25592 … for (e = CKEDITOR.tools.clone(e); f = b.pop();) c ? e[f] || (d = e[f] = 1) : e[f] && (delete e[f],
25607 var f = !c.blockless && !CKEDITOR.env.ie || e ? "div" : "span",
25608 e = d.createElement(f),
25609 h = d.createElement(f),
25610 f = CKEDITOR.env.ie && 9 > CKEDITOR.env.version;
25633 if (f) var n = d.getDocumentElement().$,
25638 f && (n.scrollTop = p);
25730 f = this.editor,
25732 … CKEDITOR.tools.isEmpty(e.visible) || (c = d.getRange(c[0]), this.focus(), f.fire("drop", {
25738 f.fire("dragend", {
25746 f = this.editor,
25747 h = f.editable(),
25763 f.fire("dragstart", {
25766 g.push(f.document.once("mouseup", b, this));
25859 …for (var f = 0, h = this.group.length; f < h; f++) b = this.group[f], c[a][b] || (c[a][b] = []), c…
25871 var b, f, h = !1;
25873 f = a.elementPath();
25874 if (this.checkApplicable(f, a))
25877 …for (var m = 0; m < b.length; m++) b[m] !== this && b[m].checkActive(f, a) && (a.widgets.focused.r…
25996 …for (var e = d.count(), f = 0; f < e; ++f)(c = this.getByElement(d.getItem(f), !0)) && this.destro…
26015 var f = this.editor.editable();
26016 do b = b.getParent(); while (b && !b.equals(f) && !(e = a(b)))
26079 var f;
26080 d && (f = a.getIndex(), a.remove());
26082 d && z(d, f, c)
26422 addUploadWidget: function(a, c, f) {
26425 m = f.supportedTypes ? 10 : 20;
26426 if (f.fileToElement) a.on("paste", function(d) {
26430 f = k.getFilesCount(),
26434 if (!d.dataValue && f)
26435 for (n = 0; n < f; n++)
26442 CKEDITOR.tools.extend(f, {
26450 f = CKEDITOR.tools.capitalize,
26455 b = "on" + f(k.status);
26467 f = a.editable(),
26474 f.insertHtmlIntoRange(d, g, c);
26487 a.widgets.add(c, f)
26489 markElement: function(a, c, f) {
26491 "data-cke-upload-id": f,
26496 function f() {
26510 !b && c.uploadTotal && (f(), b = h.createTask({
26575 var f = document.implementation.createHTMLDocument(""),
26576 f = new CKEDITOR.dom.element(f.body),
26578 f.data("cke-editable", 1);
26579 f.appendHtml(b.dataValue);
26580 m = f.find("img");
26589 b.dataValue = f.getHtml()