Lines Matching refs:e

54                             } catch (e) {
116 function n(e, a, y, v) {
117 e = {
120 editor: e,
127 return !1 === d.call(h, e) ? !1 : e.data
133 var e = a.call(this, b);
134 if (0 > e.getListenerIndex(d)) {
135 e = e.listeners;
141 for (var v = e.length - 1; 0 <= v; v--)
142 if (e[v].priority <= g) return e.splice(v + 1, 0, n), {
145 e.unshift(n)
176 var e = d(this)[g];
180 if (e) {
181 var v = e.listeners;
184 if (e.errorProof) try {
350 n = function(a, e) {
351 return "#" == e[0] ? String.fromCharCode(parseInt(e.slice(1), 10)) : g[e]
357 arrayCompare: function(a, e) {
358 if (!a && !e) return !0;
359 if (!a || !e || a.length != e.length) return !1;
361 if (a[b] != e[b]) return !1;
364 getIndex: function(a, e) {
366 if (e(a[b])) return b;
370 var e;
372 e = [];
373 for (var b = 0; b < a.length; b++) e[b] = CKEDITOR.tools.clone(a[b]);
374 return e
377 e = new a.constructor;
378 for (b in a) e[b] = CKEDITOR.tools.clone(a[b]);
379 return e
381 capitalize: function(a, e) {
383 (e ? a.slice(1) : a.slice(1).toLowerCase())
386 var e = arguments.length,
388 …"boolean" == typeof(b = arguments[e - 1]) ? e-- : "boolean" == typeof(b = arguments[e - 2]) && (v …
389 for (var c = 1; c < e; c++) {
399 var e = function() {};
400 e.prototype = a;
401 return new e
404 var e = {},
406 for (b in a) e[b] = a[b];
407 return e
413 for (var e in a)
414 if (a.hasOwnProperty(e)) return !1;
417 cssVendorPrefix: function(a, e, b) {
418 if (b) return d + a + ":" + e + ";" + a + ":" + e;
420 b[a] = e;
421 b[d + a] = e;
426e = "undefined" != typeof a.cssFloat ? "cssFloat" : "undefined" != typeof a.styleFloat ? "styleFlo…
428 return "float" == a ? e : a.replace(/-./g, function(a) {
435 for (var e,
437e = a[v]) /@import|[{}]/.test(e) ? b.push("\x3cstyle\x3e" + e + "\x3c/style\x3e") : b.push('\x3cli…
452 transformPlainTextToHtml: function(a, e) {
453 var b = e == CKEDITOR.ENTER_BR,
456 c = e == CKEDITOR.ENTER_P ? "p" : "div";
471 function(a, e) {
472 return e + "\x26nbsp;"
485 …for (var a = "e", e = 0; 8 > e; e++) a += Math.floor(65536 * (1 + Math.random())).toString(16).sub…
488 override: function(a, e) {
489 var b = e(a);
493 setTimeout: function(a, e, b, c, g) {
499 e || 0)
501 throttle: function(a, e, b) {
509 e.apply(b, n)
523 return function(e) {
524 return e.replace(a, "")
529 return function(e) {
530 return e.replace(a, "")
536 return function(e) {
537 return e.replace(a, "")
540 indexOf: function(a, e) {
541 if ("function" == typeof e)
543 if (e(a[b])) return b
545 if (a.indexOf) return a.indexOf(e);
548 if (a[b] === e) return b
552 search: function(a, e) {
553 var b = CKEDITOR.tools.indexOf(a, e);
556 bind: function(a, e) {
558 return a.apply(e, arguments)
562 var e = a.$,
567 !e && (e = function() {
571 if (c) var d = e,
572 e = function() {
574 e;
575 for (e in c) {
576 var b = c[e];
577 a[e] = "function" == typeof b ? CKEDITOR.tools.bind(b, this) : b
581 …b && (e.prototype = this.prototypedCopy(b.prototype), e.prototype.constructor = e, e.base = b, e.b…
586 g && this.extend(e.prototype, g, !0);
587 a && this.extend(e, a, !0);
588 return e
590 addFunction: function(b, e) {
592 return b.apply(e ||
600 var e = a[b];
601 return e && e.apply(window, Array.prototype.slice.call(arguments, 1))
605 e;
607 e = CKEDITOR.tools.trim(b + "") + "px";
608 return a.test(e) ? e : b || ""
613 return function(e) {
616 return /%$/.test(e) ? e : (a.setStyle("width", e), a.$.clientWidth)
619 repeat: function(a, e) {
620 return Array(e + 1).join(a)
623 for (var a, e = 0, b = arguments.length; e < b; e++) {
624 var c = arguments[e];
637 var e = arguments,
640 a.apply(b, e)
644 normalizeCssText: function(a, e) {
647 !0, e);
667 e, b) {
673e && (b = b.toLowerCase(), "font-family" == b && (g = g.replace(/\s*,\s*/g, ",")), g = CKEDITOR.to…
678 writeCssText: function(a, e) {
681 e && c.sort();
684 objectCompare: function(a, e, b) {
686 if (!a && !e) return !0;
687 if (!a || !e) return !1;
689 if (a[c] != e[c]) return !1;
691 for (c in e)
692 if (a[c] != e[c]) return !1;
696 var e = [],
698 for (b in a) e.push(b);
699 return e
701 convertArrayToObject: function(a, e) {
703 1 == arguments.length && (e = !0);
704 for (var c = 0, g = a.length; c < g; ++c) b[a[c]] = e;
711 } catch (e) {
719 eventsBuffer: function(a, e, b) {
723 b ? e.call(b) : e()
729 var e = (new Date).getTime() - d;
730 e < a ? g = setTimeout(c, a - e) : c()
739 enableHtml5Elements: function(a, e) {
741 e && a.appendChild(g)
743 checkIfAnyArrayItemMatches: function(a, e) {
745 if (a[b].match(e)) return !0;
748 checkIfAnyObjectPropertyMatches: function(a, e) {
750 if (b.match(e)) return !0;
753 keystrokeToString: function(a, e) {
754 var b = this.keystrokeToArray(a, e);
759 keystrokeToArray: function(a, e) {
760 var b = e & 16711680,
761 c = e & 65535,
777 for (var e = document.cookie.split(";"), b, c, g = 0; g < e.length; g++)
778 … if (b = e[g].split("\x3d"), c = decodeURIComponent(CKEDITOR.tools.trim(b[0]).toLowerCase()),
782 setCookie: function(a, e) {
783 … document.cookie = encodeURIComponent(a) + "\x3d" + encodeURIComponent(e) + ";path\x3d/"
789 e = "";
795 e = e + (.5 < Math.random() ? c.toUpperCase() : c);
796 a = e;
2286 …for (var b = 0, c = 0, e = k[a].length; c < e; c++) b += parseFloat(this.getComputedStyle(k[a][c])…
2344 var e = c.extractContents(!1, b || !1),
2348 …for (c = new CKEDITOR.dom.element("div"); d = e.getFirst();) d.$.style.backgroundColor && (d.$.sty…
2351 } else e.insertAfterNode(this)
2396 } catch (e) {
2448 e;
2451 …for (e = 0; e < c.length; e++) - 1 === CKEDITOR.tools.indexOf(a, c[e].name) && (b[c[e].name] = c[e
2551 var e = a.getItem(b);
2552 if (e.type != CKEDITOR.NODE_ELEMENT || !e.data("cke-bookmark"))
2553 …if (e.type == CKEDITOR.NODE_ELEMENT && !e.isEmptyInlineRemoveable() || e.type == CKEDITOR.NODE_TEX…
2606 var e;
2608 for (; e = c.lastChild;) a.insertBefore(c.removeChild(e), a.firstChild);
2610 for (; e = c.firstChild;) a.appendChild(c.removeChild(e))
2614 function a(b, c, e) {
2617 …if (d.push(c), c = e ? c.getNext() : c.getPrevious(), !c || c.type != CKEDITOR.NODE_ELEMENT) retur…
2619 … for (var g = e ? b.getLast() : b.getFirst(); d.length;) d.shift().move(b, !e);
2620 c.moveChildren(b, !e);
2648 } catch (e) {} else a.apply(this, arguments);
2681 e;
2682 "border" == a && (e = ["color", "style", "width"]);
2684 if (e)
2686 0; v < e.length; v++) b.push([a, c[d], e[v]].join("-"));
2707 …for (var a, b = this.getElementsByTag("*"), c = 0, e = b.count(); c < e; c++) a = b.getItem(c), a.…
2721 e = this.getDocument(),
2722 d = e.getBody(),
2723 v = "BackCompat" == e.$.compatMode;
2727 h = e.$.documentElement,
2731 …CKEDITOR.env.ie && (k = e.getDocumentElement().contains(this), e = e.getBody().contains(this), k =…
2758 var e = c.$.frameElement;
2759 e && (b = new CKEDITOR.dom.element(e))
2765 var e, d, v, f;
2778 var e = a.$.getBoundingClientRect();
2779 c.x = e.left;
2780 c.y = e.top
2782 e = a.getWindow();
2783e.equals(b) || (e = x(CKEDITOR.dom.element.get(e.$.frameElement), b), c.x += e.x, c.y += e.y);
2798 e = this.$.offsetWidth;
2803 e = d.x + e + m(this, "right") - (u.x + t) || 0;
2806 c && (0 > v || 0 < e) && h(0 > v ? v : e, 0)
2842 for (var e = 0; e < c.length; e++) {
2843 var d = c[e],
2867 var e = b.childNodes;
2868 if (0 <= c && c < e.length) return e[c]
2902 c, e, d;
2905e = b[c], e.element.equals(this) && e.elementMode != CKEDITOR.ELEMENT_MODE_APPENDTO || !a && (d =
2922 if (!(c || b && this.type != b)) var e = a(this);
2923 if (!1 !== e) {
2925 …ar d = 0; d < c.count(); d++) e = c.getItem(d), e.type == CKEDITOR.NODE_ELEMENT ? e.forEach(a, b) …
2990 var e, d = c.startContainer;
2991 e = c.endContainer;
2998 var L = e.type == CKEDITOR.NODE_ELEMENT ? e : e.getParent(),
2999 C = e.type == CKEDITOR.NODE_ELEMENT ? e.getChild(y) : e.getNext();
3016 this.current ? e = this.current[g](!1, t, h) : (a ? e.type == CKEDITOR.NODE_ELEMENT &&
3017e = 0 < y ? e.getChild(y - 1) : !1 === h(e, !0) ? null : e.getPreviousSourceNode(!0, t, h)) : (e =…
3018 for (; e && !this._.end;) {
3019 this.current = e;
3020 if (!this.evaluator || !1 !== this.evaluator(e)) {
3021 if (!b) return e
3023 e = e[g](!1, t, h)
3030 for (var c, e = null; c = a.call(this, b);) e = c;
3031 return e
3101 return function(e) {
3103 d = e && e.type != CKEDITOR.NODE_ELEMENT && (f = e.getParent()) && c(f);
3104 d = a ? d : d || c(e);
3119 return function(e) {
3120 … b(e) ? e = 1 : (e.type == CKEDITOR.NODE_TEXT && (e = e.getParent()), e = e.$.offsetWidth <= c);
3121 return !!(a ^ e)
3134 … var e = CKEDITOR.env.needsBrFiller ? c.is && c.is("br") : c.getText && f.test(c.getText());
3135 e && (e = c.getParent(), c = c.getNext(b), e = e.isBlockBoundary() &&
3137 return !!(a ^ e)
3164 for (var c = 0, e = b.getChildCount(); c < e; ++c)
3169 var e = CKEDITOR.dom.walker.empty(),
3183 … == b.getAttribute("contenteditable") || !CKEDITOR.env.needsBrFiller && b.is(y) && e(b)) ? !0 : !1;
3206 function h(a, b, c, e) {
3208 if (e && k) return d;
3209 l || e ? b.append(a.clone(!0, f), c) : (a.remove(), r && b.append(a, c));
3214 var a, b, c, e = Math.min(O.length, p.length);
3215 for (a = 0; a < e; a++)
3377 var e = b.container,
3380 m = e;
3384 m && (e = e.getChild(d - 1), d = e.getLength());
3385 if (e.type == CKEDITOR.NODE_ELEMENT && 0 < d) {
3387 for (m = e; d--;)
3395 if (e.type == CKEDITOR.NODE_TEXT) {
3396 m = e;
3400e.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))
3403 b.container = e;
3408 var e = c.getCustomData("cke-fillingChar");
3409 if (e) {
3411e.equals(d) && (a.offset -= CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE.length, 0 >= a.offset && …
3536 e;
3539 }; e = c.next();) {
3540 if (e.type != CKEDITOR.NODE_TEXT) return !1;
3541 M = e != a ? e.getText() : e.substring(b);
4035 e = new CKEDITOR.dom.range(c.root),
4039 h && e.setStart(c.startContainer.getParent(), c.startContainer.getIndex());
4040 l && e.setEnd(c.endContainer.getParent(), c.endContainer.getIndex() + 1);
4041 if (h || l) c = e;
4042 e = c.cloneContents();
4043e = CKEDITOR.dom.document.prototype.find.call(e, "[data-cke-widget-id]").toArray();
4044 if (e = CKEDITOR.tools.array.map(e, function(a) {
4048 })) return e = CKEDITOR.tools.array.map(e, function(a) {
4058 }, c), CKEDITOR.tools.array.forEach(e, function(a) {
4059 function b(e) {
4061 var l = CKEDITOR.tools.objectCompare(a[e], b);
4063 … l && (Array.prototype.splice.call(d, f, a.length - e, a.widgetRect), c = !0)
4065 c || (e < d.length - 1 ? b(e + 1) : d.push(a.widgetRect))
4072 function b(a, c, e) {
4074e.startContainer instanceof CKEDITOR.dom.element ? (a = e.checkStartOfBlock(), f = new CKEDITOR.do…
4075 …a = c.getClientRects(), e.startContainer.setText("")) : a = [d(e.createBookmark())]) : a = [d(e.cr…
4144 var e = new CKEDITOR.dom.range(b.root),
4145 d = new CKEDITOR.dom.walker(e),
4147 e.setStart(c.endContainer, c.endOffset);
4148 e.setEnd(b.startContainer, b.startOffset);
4149 for (e = d.next(); f(e) || b.endContainer.equals(e);) e = d.next();
4150 d = !e
4419 var e, w;
4421 for (e in b) {
4422 w = b[e];
4426 "$" != e.charAt(0) && (w.elements = e);
4457 e = E(a[c]);
4458 w = !0 === e.classes || !0 === e.styles || !0 === e.attributes;
4459 l = e;
4474 if (!0 === e.elements ||
4475 null === e.elements) f[w ? "unshift" : "push"](e);
4477 for (F in l = e.elements, delete e.elements, l)
4478 if (b[F]) b[F][w ? "unshift" : "push"](e);
4479 else b[F] = [e]
4493 for (var e = 0, w = c.length, l; e < w; ++e) l = c[e], f[l] ||
4517 for (var d = !1, e = !0 === a, l = b.length; l--;)
4518 if (e || a(b[l])) b.splice(l, 1), d = !0;
4556 var c, d, f, e;
4558 for (e = b.classes, c = 0; c < f.length; ++c)
4560 if (-1 == CKEDITOR.tools.indexOf(e, d)) return !1
4561 } else if (!CKEDITOR.tools.checkIfAnyArrayItemMatches(e, d)) return !1;
4581 function e(a) {
4582 var b, c, d, f, e = {},
4584 …? (d = y(c, "styles"), f = y(c, "attrs"), c = y(c, "classes")) : d = f = c = null, e["$" + l++] = {
4590 return e
4606 function B(a, b, f, e) {
4609 e.toHtml && (b.name = b.name.replace(w, "$1"));
4610 if (e.doCallbacks && a.elementCallbacks) {
4621 if (e.doTransform && (p = a._.transformations[b.name])) {
4626 if (e.doFilter) {
4629 E = e.skipRequired;
4682 if (!e.skipFinalValidation && !m(b)) return f.push(b),
4685 e.toHtml && (b.name = b.name.replace(A, "cke:$1"));
4747 for (var e = 0, l = d.length, w; e < l; ++e)
4748 if (w = d[e], w.type == CKEDITOR.NODE_ELEMENT && !f[w.name]) {
4759 …for (var e = f.type == CKEDITOR.NODE_DOCUMENT_FRAGMENT || "body" == f.name, p, h, l = d.length; 0 …
4791 e, l, w, p;
4793 for (e in d)
4794 if ("class" == e)
4795 for (c = d[e].split(/\s+/), w = a.classes.join("|"); p = c.pop();) {
4797 } else if (a.attributes[e] != d[e]) return !1;
4866 if ("string" == typeof b) b = e(b);
4887 e = [],
4900 if (p = B(f, a, e, t), p & 1) h = !0;
4914 c || e.push(a)
4917 e.length && (h = !0);
4921 for (var z; c = e.pop();) c.type == CKEDITOR.NODE_ELEMENT ? l(c, d, a) : c.remove();
4946 "string" == typeof b && (b = e(b));
4980 var e = void 0,
4987 … = null, m = w[1]) : (p = w.check, h = w.left, m = w.right), e || (e = w, e = e.element ? e.elemen…
4988e.left.getDefinition().element), h instanceof CKEDITOR.style && (h = C(h)), c.push({
4989 check: p == e ? null : p,
4993 b = e;
5010 f = e(a).$1;
5054 e;
5056 for (d || (f = f.reverse()); e = f.pop();)
5057 if (this.check(e)) return b[e];
5204 e, l, w, p;
5206 for (e in f)
5207 if ("class" == e)
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];
5445 e = function(a) {
5448 if (0 === g) e(!0);
5452 … 0 >= --g && (h && CKEDITOR.document.getDocumentElement().removeStyle("cursor"), e(b))
5458 for (var e = 0; e < f.length; e++) f[e](b, c)
5466 var e =
5468 e.setAttributes({
5472 …(CKEDITOR.env.ie && (8 >= CKEDITOR.env.version || CKEDITOR.env.ie9Compat) ? e.$.onreadystatechange…
5473 …if ("loaded" == e.$.readyState || "complete" == e.$.readyState) e.$.onreadystatechange = null, v(b…
5474 } : (e.$.onload = function() {
5478 }, e.$.onerror = function() {
5481 e.appendTo(CKEDITOR.document.getHead())
5561 var e = this.getFilePath(r);
5562 h.push(e);
5563 e in k || (k[e] = []);
5564 k[e].push(r)
5569 for (var e = 0; e < a.length; e++)
5570 for (var h = k[a[e]], n = 0; n < h.length; n++) {
5588 e;
5589 for (e in a) {
5590 var g = a[e],
5592 if (!d[e]) {
5595 d[e] = 1
5603 …for (e in h) g = h[e], g.onLoad && !g.onLoad._called && (!1 === g.onLoad() && delete h[e], g.onLoa…
5664 function a(a, f, e) {
5669 if (!e) throw Error("One of the element modes must be specified.");
5670 …if (CKEDITOR.env.ie && CKEDITOR.env.quirks && e == CKEDITOR.ELEMENT_MODE_INLINE) throw Error("Inli…
5671 …if (!b(f, e)) throw Error('The specified element mode is not supported on element: "' + f.getName(…
5673 this.elementMode = e;
5737 var d, f, e = a.commands;
5738 for (f in e) d = e[f], (c || d.contextSensitive) && d.refresh(a, b)
5794 e(a)
5798 function e(a) {
5819 e = b(c.removePlugins);
5823 if (e) var g = new RegExp("(?:^|,)(?:" + e.replace(/,/g, "|") + ")(?\x3d,|$)", "g"),
5830 e = [];
5845 …angEntries && h.langEntries[k] ? (a.lang[l] = h.langEntries[k], k = null) : e.push(CKEDITOR.getUrl…
5849 CKEDITOR.scriptLoader.load(e, function() {
5850 for (var b = ["beforeInit", "init", "afterInit"], e = 0; e < b.length; e++)
5853 … 0 === e && f[l] && p.lang && p.langEntries && (a.lang[p.name] = p.langEntries[f[l]]);
5854 if (p[b[e]]) p[b[e]](a)
5889 for (var f = new CKEDITOR.dom.documentFragment, e, h, g, k = 0; k < a.length; k++) {
5892 c(M) ? (e || (e = q.getAscendant("table").clone(), e.append(q.getAscendant({
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])
6046 e;
6048 for (e = 0; e < d.length; e++) f.append(c.extractHtmlFromRange(d[e], b));
6150 var e = n[1].toLowerCase();
6152 g[e] = !n && d[e] ? e : CKEDITOR.tools.htmlDecodeAttr(n)
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 ||…
6387 function e(a) {
6400 …previous && (v(c, b) && (u = c, D.onTagOpen(g, {}), b.returnPoint = c = u), e(b), a(b) && !b.child…
6422 D.onTagOpen = function(f, e, h, g) {
6423 e = new CKEDITOR.htmlParser.element(f, e);
6424 e.isUnknown && h && (e.isEmpty = !0);
6425 e.isOptionalClose = g;
6426 if (a(e)) m.push(e);
6436 if ("br" == f) J.push(e);
6438 …TOR.dtd[h] || (u._.isBlockLike ? CKEDITOR.dtd.div : CKEDITOR.dtd.span) : c, e.isUnknown || u.isUnk…
6440 …li" == h.name || y(h = new CKEDITOR.htmlParser.element("li"), u), !e.returnPoint && (e.returnPoint…
6443 … else if (h in d && !B(f, h)) !e.returnPoint && (e.returnPoint = u), u = u.parent;
6446 e.isOrphan = 1;
6451 e.parent = u;
6452 e.isEmpty ? y(e) : u = e
6464 var e = c[b];
6465 y(e, e.parent)
6479e = b ? CKEDITOR.dtd[b] || (u._.isBlockLike ? CKEDITOR.dtd.div : CKEDITOR.dtd.span) : c;
6480 if (!K && !e["#"] && b in d) D.onTagOpen(f[b] || ""), D.onText(a);
6501 e(x);
6662 n, r, e, y;
6664 … if (d && (n = c.type, r = c.name), e = k[y], !(a.nonEditable && !e.options.applyToAll ||
6665 a.nestedEditable && e.options.excludeNestedEditable)) {
6666 e = e.value.apply(null, h);
6667 if (!1 === e || d && e && (e.name != r || e.type != n)) return e;
6668 null != e && (h[0] = c = e)
6679 function e(a) {
6692 …h(w); w;) h(w) && (p = c(w)) && q(p) && ((E = c(p)) && !h(E) ? l.push(p) : (e(z).insertAfter(p), p…
6696 l && f.add(e(a))
6725 … !d && h(b.parent) ? k(b.parent, e(a)) : h(d) && l && !h(l) && e(a).insertBefore(d)
6789 function e(a, b) {
6830 e = /<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g,
6836 a = a.replace(e, function(a, b, d) {
6841 a = a.replace(e, function(a, b, d) {
6880 c = e(c, H),
6882 c = e(c, z),
6944 e, l, p, h;
6945 …ect" == typeof b ? (e = b.context, c = b.fixForBody, d = b.dontFilter, l = b.filter, p = b.enterMo…
6946 e || null === e || (e = f.editable().getName());
6949 context: e,
7505 var e = (k.$.offsetHeight || 0) - (n.$.clientHeight ||
7507 g = Math.max(b - (d ? 0 : e), 0);
7508 b = d ? b + e : b;
7528 e = a.data.path,
7529 f = e.blockLimit,
7534 if (g = d(g, e)) g.appendBogus(), q = CKEDITOR.env.ie;
7535e.block, f) && h.collapsed && !h.getCommonAncestor().isReadOnly() && (e = h.clone(), e.enlarge(CKE…
7537 }, !f.checkForward() || e.checkStartOfBlock() && e.checkEndOfBlock()) &&
7545 e = d && d.getLast(c);
7546 …if (!(!d || !d.isBlockBoundary() || e && e.type == CKEDITOR.NODE_ELEMENT && e.isBlockBoundary() ||…
7556 return e(a) && y(a)
7568 return function(b, e) {
7569 e && b.type == CKEDITOR.NODE_ELEMENT && b.is(f) && (d = b);
7570 if (!(e || !c(b) || a && B(b))) return !1
7573 var d, e = a.getRanges()[0];
7581 if (e.startPath().contains(f)) {
7582 var g = e.clone();
7588 …if (d) return g = e.clone(), g.collapse(), g.setEndAt(d, CKEDITOR.POSITION_AFTER_END), a = new CKE…
7615 var e, y, v, B, D, x, m, J, u, K;
7710 var e = d.activeEnterMode,
7718 …ementEditStart(f) : b.moveToElementEditEnd(a) : f || e == CKEDITOR.ENTER_BR || (f = b.fixBlock(!0,…
7728 e = a.getName(),
7729 f = CKEDITOR.dtd.$block[e];
7742 … b.getCommonAncestor(0, 1)) && (g = CKEDITOR.dtd[q.getName()]) && (!g || !g[e]);) q.getName() in C…
7777 e;
7778 a: if (d.anchorNode && d.anchorNode == c.$) e = !0;
7780 … if (CKEDITOR.env.webkit && (e = c.getDocument().getActive()) && e.equals(c) && !d.anchorNode) {
7781 e = !0;
7784 e = void 0
7785 …} e && (e = new CKEDITOR.dom.range(c), e.moveToElementEditStart(c), b = b.createRange(), b.setStar…
7792 e = c.getDocument().getActive();
7793 …"None" == d.type && e.equals(c) && (d = new CKEDITOR.dom.range(c), a = a.body.createTextRange(), d…
7823 e = this.getHtmlFromRange(a);
7824 if (a.collapsed) return a.optimize(), e;
7862 return e
7964 …1) : g.collapsed && ((k = p.block) && (A = k[c ? "getPrevious" : "getNext"](e)) && A.type == CKEDI…
7965 …c ? CKEDITOR.START : CKEDITOR.END) && (A = w[c ? "getPrevious" : "getNext"](e)) ? (a.fire("saveSna…
8011 var e = b.block;
8012 …if (e && d[c ? "checkStartOfBlock" : "checkEndOfBlock"]() && d.moveToClosestEditablePosition(e, !c…
8023 if (!d || d && d.contains(e)) b = void 0;
8027 (p = (c ? d : e).getBogus()) && p.remove();
8030 (c ? e : d).moveChildren(c ? d : e, !1);
8032 r(e, d, !c);
8038 …Path().block, p && d && !p.equals(d) ? (a.fire("saveSnapshot"), (e = p.getBogus()) && e.remove(), …
8104 var e = CKEDITOR.tools.getNextId(),
8105 …d = CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"' + e + '" class\x3d"cke_voice_label"\x3e…
8107 a.changeAttr("aria-describedby", e)
8113 e = CKEDITOR.dom.walker.whitespaces(!0);
8124 var e, f, g, q, h = [],
8126 e = d.range.startPath();
8127 …ren(), m = H.count(), n = -1, r = -1, C = 0, P = e.contains(E.$list); k < m; ++k) e = H.getItem(k)…
8128e.getName(), P && g in CKEDITOR.dtd.$list ? h = h.concat(b(e, d)) : (q = !!z[g], "br" != g || !e.d…
8131 isBlock: e.isBlockBoundary(),
8133 node: e,
8138 node: e,
8145 var e = [],
8151 …for (k && e.push(" "); h < g; h++) q = f.getItem(h), a(q) && !q.is(z) ? e = e.concat(d(q, c)) : e.…
8152 k && e.push(" ");
8153 return e
8156 function e(b) {
8164 function h(b, c, d, e) {
8169 …d.contains(q) && e.contains(g) && g.isIdentical(q) && (g.moveChildren(q), g.remove(), h(b, c, d, e
8176 var e = c.endContainer.getChild(c.endOffset),
8178 e && d(e, b[b.length - 1]);
8240 …(r = e(p)) && a(r) && r.isBlockBoundary() && G.contains(r);) p.moveToPosition(r, CKEDITOR.POSITION…
8372 for (D = e(B); D && a(D) && !D.is(E.$empty);) {
8415 var e = d.startContainer,
8416 f = e.getAscendant("table", 1),
8421 f.setStart(e, 0);
8423 … f || (f = d.clone(), f.setEndAt(e, CKEDITOR.POSITION_BEFORE_END), f = a(f).lastForward(), g = !0);
8424 f || (f = e);
8430 …tr") && (f = b(f, f.getParent().is("thead") ? "th" : "td", g)), (e = f.getBogus()) && e.remove(), …
8449 e;
8450 e = b.clone();
8451 e.setStart(c, 0);
8452 e = a(e).lastBackward();
8453e || (e = b.clone(), e.setEndAt(c, CKEDITOR.POSITION_BEFORE_END), e = a(e).lastForward(), d = !0);
8454 e || (e = c);
8455e.is(CKEDITOR.dtd.$list) ? (b.setStartAt(e, CKEDITOR.POSITION_BEFORE_START), b.collapse(!0), e.rem…
8463 e = c.clone(),
8467 e.collapse();
8469 …g.block && e.checkBoundaryOfElement(g.block, CKEDITOR.START) && (c.setEndBefore(g.block), a.append…
8498 e = new CKEDITOR.dom.elementPath(d, b),
8503 if (e.blockLimit.is({
8507 var h = e.contains("table").getParent();
8511 …} else if (e.block && e.block.is(CKEDITOR.dtd.$listItem) && (f = f.contains(CKEDITOR.dtd.$list), c…
8512 var z = e.contains(CKEDITOR.dtd.$list).getParent();
8518 return !a.equals(e.block) && !a.equals(e.blockLimit)
8523 … for (var e; c && !c.equals(b) && d(c);) e = c.clone(0, 1), a.fragment.appendTo(e),
8524 a.fragment = e, c = c.getParent()
8533 e = a.endOffset;
8534 …b.type == CKEDITOR.NODE_ELEMENT && b.equals(c) && b.is("tr") && ++d == e && a.shrink(CKEDITOR.SHRI…
8544 function b(c, d, e) {
8546 a(e, 1);
8547 for (var f; f = e.getNext();) f.insertAfter(d), d = f;
8561 e = d.startPath(),
8563 g = e.contains(CKEDITOR.dtd.$list),
8566 …a.mergeListItems = e.block && f.block && e.block.is(CKEDITOR.dtd.$listItem) && f.block.is(CKEDITOR…
8573 e = a.mergeListBookmark.endNode,
8575 g = new CKEDITOR.dom.elementPath(e, c);
8581 …ntains(CKEDITOR.dtd.$listItem), g = g.contains(CKEDITOR.dtd.$listItem), f.equals(g) || b(g, d, e));
8583 e.remove()
8600 e = a.mergeBlockBookmark.endNode,
8602 g = new CKEDITOR.dom.elementPath(e, c),
8605 f && g && !f.equals(g) && b(g, d, e);
8607 e.remove()
8613 var e = [],
8624 … if (g && h && a.equals(h)) f = c.clone(), f.setEndAt(h, CKEDITOR.POSITION_BEFORE_END), e.push(f);
8625 … (!g && k && a.equals(k)) f = c.clone(), f.setStartAt(k, CKEDITOR.POSITION_AFTER_START), e.push(f);
8635 A && (f = c.clone(), f.selectNodeContents(a), e.push(f))
8640 return e
8645 e = a.getPosition(c);
8646 return e === CKEDITOR.POSITION_IDENTICAL ? !1 : 0 === (e & d)
8660 e = 0;
8662 a.type == CKEDITOR.NODE_ELEMENT && a.is(d) && ++e
8665 if (1 < e) {
8671 detectRanges: function(e, f) {
8672 var g = c(f, e.bookmark),
8681 …if (p || l) p && l && b(p, l) ? (e.tableSurroundingRange = h, h.setStartAt(p, CKEDITOR.POSITION_AF…
8682e.tableSurroundingRange = h, h.setStartAt(p, CKEDITOR.POSITION_AFTER_END), g.setEndAt(p, CKEDITOR.…
8724 var d, e;
8735 e = CKEDITOR.tools.trim;
8736 … tbody, table") ? (f = f.cloneContents(), d = f.getFirst() ? e(f.getFirst().getText()) !== e(d.get…
8739 for (e = 0; e < b.length; e++)
8740 if (d = b[e]._getTableElement(), !d) return !1;
8753 d, e;
8754 for (e = 0; e < a.length; e++) d = a[e]._getTableElement(), d.is && d.is({
8765 e, f;
8766 … a.length; f++) e && !e.equals(a[f].getAscendant("tr")) ? (c += d.join("\t") + "\n", e = a[f].getA…
8797 var e;
8798 if (!(e = !c) && (e = !c.isHidden())) {
8799 e = b;
8801 g = e.getRanges(),
8806 if (a(e.getSelectedElement())) e = !1;
8812 h && (l || g) ? (k && !w && e.selectRanges(f), e = !0) : e = !1
8814 e = !e
8816 e && (b.reset(), b = 0)
8821 …viousPath) || (e = this._.selectionPreviousPath && this._.selectionPreviousPath.blockLimit.equals(…
8848 e = a.getNextNode(n, null,
8850 …return b(d) || b(e, 1) || !(d || e || c.type == CKEDITOR.NODE_ELEMENT && c.isBlockBoundary() && c.…
8853 function e(a) {
8865 e = d && "None" != d.type && d.getRangeAt(0),
8867 if (c.getLength() > f && e && e.intersectsNode(c.$)) {
8897 e = a.createRange(),
8901 e.setStartAt(c, CKEDITOR.POSITION_AFTER_START);
8902 e.setEndAt(c, CKEDITOR.POSITION_BEFORE_END);
8903 d.selectRanges([e]);
8919 var e = a.getSelection().getRanges(),
8920 f = e[0];
8921 …1 == e.length && f.collapsed && (d = f[38 > d ? "getPreviousEditableNode" : "getNextEditableNode"]…
8933e; d && !((e = d.type == CKEDITOR.NODE_ELEMENT) && d.is("body") || !d.isReadOnly());) e && "false"…
8935 e = c.endContainer;
8940 e && e.type == CKEDITOR.NODE_TEXT && (g ? h.setEndAfter(e) : h.setEndBefore(e));
8944 var e =
8948 …h.endContainer) & CKEDITOR.POSITION_CONTAINS || (e.setStartAfter(d), e.collapsed || a.splice(b + 1…
8976 e;
8977e = d.moveToClosestEditablePosition(b.selected, a)) || (e = d.moveToClosestEditablePosition(b.sele…
9009 … "None" != a.type && c.parentElement() && c.parentElement().ownerDocument == e.$ && c.select()
9019 var e = c.document,
9022 l = e.getBody(),
9023 q = e.getDocumentElement(),
9032 …c._.previousActive.equals(e.getActive())) && null != c._.previousScrollTop && c._.previousScrollTo…
9055 if ("BackCompat" != e.$.compatMode) {
9113 g.attachListener(e.getDocumentElement(), "mouseup", function() {
9117 … } else g.attachListener(CKEDITOR.env.ie ? g : e.getDocumentElement(), "mouseup", k, c);
9118 CKEDITOR.env.webkit && g.attachListener(e, "keydown", function(a) {
9232 var d, e;
9234 …if (a.getRangeAt) d = (e = a.rangeCount && a.getRangeAt(0)) && new CKEDITOR.dom.node(e.commonAnces…
9237 e = a.createRange()
9239 d = e && CKEDITOR.dom.element.get(e.item && e.item(0) || e.parentElement())
9268 _createFillingCharSequenceNode: e,
9286 } catch (e) {}
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…
9321 if (-1 == q || q == e.length - 1 && 0 > m) {
9325 e = d.childNodes;
9327 e[e.length - 1], f.nodeType != CKEDITOR.NODE_TEXT ? {
9329 offset: e.length
9334 …for (d = e.length; 0 < h && 0 < d;) g = e[--d], g.nodeType == CKEDITOR.NODE_TEXT && (n = g, h -= g…
9369 for (var d = [], e = 0; e < c.length; e++) {
9370 …for (var f = c.item(e), g = f.parentNode, h = 0, a = new CKEDITOR.dom.range(this.root); h < g.chil…
9384 var e = c.getRangeAt(d);
9386 b.setStart(new CKEDITOR.dom.node(e.startContainer),
9387 e.startOffset);
9388 b.setEnd(new CKEDITOR.dom.node(e.endContainer), e.endOffset);
9432 …es()[0].clone(), c, d, e = 2; e && !((c = a.getEnclosedNode()) && c.type == CKEDITOR.NODE_ELEMENT …
9457 e = this.isFake;
9461 …1) && (d(c) ? f.call(this, c) : e ? this.fake(b) : b ? this.selectElement(b) : this.selectRanges(c…
9556 …b.collapsed && CKEDITOR.env.webkit && r(b) && (p = e(this.root), b.insertNode(p), (A = p.getNext()…
9579 e = new CKEDITOR.dom.range(this.root);
9580 e.setStartBefore(a);
9581 e.setEndAfter(a);
9582 d.ranges = new CKEDITOR.dom.rangeList(e);
9615 for (var b = [], c, e = 0; e < a.length; e++) {
9617 f.moveToBookmark(a[e]);
9653 var e = a.getAttribute("contentEditable");
9654 "false" == e ? c = a : "true" == e && (d = 1)
9664 var e = c.document;
9665 …if (c.collapsed) e = J(this, e), c.insertNode(e), c.moveToPosition(e, CKEDITOR.POSITION_BEFORE_END…
9722 …for (var l = J(this, e), x = l.hasAttributes(), B = u.getCommonAncestor(), y = {}, E = {}, F = {},…
9745 …lementPath(d.getParent()), c = new CKEDITOR.dom.elementPath(n.getParent()), e = null, f = null, g …
9748 r.checkElementRemovable(h, !0) && (e = h)
9756 e && d.breakParent(e)
9762 e = this._.definition.alwaysRemoveElement;
9767 …!e && a.collapsed && (a.checkBoundaryOfElement(k, CKEDITOR.END) || (m = a.checkBoundaryOfElement(k…
9769 e = d;
9776 k.append(e);
9777 e = k
9779 e["start" == g.match ? "insertBefore" : "insertAfter"](g)
9812 for (var e in b.styles) b.styles.hasOwnProperty(e) &&
9813 a.removeStyle(e)
9822 …r (var d, e = a.document, f; d = c.getNextParagraph();) !d.isReadOnly() && (c.activeFilter ? c.act…
9831 for (var d, e; d = c.getNextParagraph();) this.checkElementRemovable(d) &&
9832e = this._.enterMode == CKEDITOR.ENTER_BR ? null : a.document.createElement(this._.enterMode == CK…
9859 } else g ? b = v(c ? [a.getHtml()] : e(a), b) : a.moveChildren(b);
9869 function e(a) {
9881 e = "";
9884 c && (e = c);
9887 return d + a.replace(b, c) + e
9894 var e = a[d],
9895 e = e.replace(/(\r\n|\r)/g, "\n"),
9896 e = y(e, /^[ \t]*\n/, ""),
9897 e = y(e, /\n$/, ""),
9898 e = y(e, /^[ \t]+|[ \t]+$/g, function(a, b) {
9901 e = e.replace(/\n/g, "\x3cbr\x3e"),
9902 e = e.replace(/[ \t]{2,}/g, function(a) {
9907 f.setHtml(e);
9909 } else b.setHtml(e)
9918 e = l(this)[a.getName()],
9924 x(a, e, C[a.getName()]);
9930 …r b = l(this), c = a.getElementsByTag(this.element), d, e = c.count(); 0 <= --e;) d = c.getItem(e)…
9933 …for (c = a.getElementsByTag(f), e = c.count() - 1; 0 <= e; e--) d = c.getItem(e), d.isReadOnly() |…
9939 var e = b[d][0],
9941 if (f = a.getAttribute(e)) {
9943 … (null === g || g.test && g.test(f) || "string" == typeof g && f == g) && a.removeAttribute(e)
9981 for (var e in d) a.setAttribute(e, d[e]);
10000 var e = c[d],
10002 …"string" == typeof e ? f = e.toLowerCase() : (f = e.element ? e.element.toLowerCase() : a.element,…
10003 e = b[f] || (b[f] = {});
10005 var e = e.attributes = e.attributes || [],
10007 for (h in g) e.push([h.toLowerCase(), g[h]])
10035 var e, f;
10037 for (e = [], f = 0; f < d.length; f++) e.push(d[f].clone());
10039 a.selectRanges(e || d)
10147 for (var c = a.elements, d = 0, e; d < c.length; d++)
10148 … if (e = c[d], this.type != CKEDITOR.STYLE_INLINE || e != a.block && e != a.blockLimit) {
10150 var f = e.getName();
10154 if (this.checkElementRemovable(e, !0, b)) return !0
10180 e = 0,
10183 for (var g in f) e++, d[g] = f[g];
10184 if (g = CKEDITOR.style.getStyleText(c)) d.style || e++, d.style = g;
10185 d._length = e;
10206 var e = b[c][1];
10207 if (null === e) return !0;
10208 if ("string" == typeof e) {
10209 if (d == e) return !0
10210 } else if (e.test(d)) return !0
10221 e = b.attributes;
10222 if (e)
10223 for (var f in e) c.push(" ", f, '\x3d"', e[f], '"');
10224 (e = CKEDITOR.style.getStyleText(b)) && c.push(' style\x3d"', e, '"');
10239 for (var e in b) {
10240 var f = b[e],
10241 g = (e + ":" + f).replace(q, ";");
10354 for (var e = 0, y = r.count(); e < y; e++) {
10355 var v = r.getItem(e);
10477 var e = g.document;
10479 n = e.getById(d[r].endNode);
10480 for (e = e.getById(d[r + 1].startNode);;) {
10483 if (e.equals(n)) k = 1;
10666 for (var a = b.match(/[^#]./g), e = 0; 3 > e; e++) {
10667 var f = e,
10669 c = parseInt(a[e], 16);
10772 var e = {
10775 a.includeLabel && (e["aria-labelledby"] = c.labelId);
10776 … CKEDITOR.ui.dialog.uiElement.call(this, b, a, d, "div", null, e, function() {
10777 var e = [],
10779 …"horizontal" != a.labelLayout ? e.push('\x3clabel class\x3d"cke_dialog_ui_labeled_label' + g + '" …
10792 }, CKEDITOR.dialog._.uiElementBuilders.hbox.build(b, g, e));
10793 return e.join("")
10810 var e = this,
10813 e.getInputElement().on("keydown",
10817 e.getInputElement().on("keyup", function(a) {
10821 e.bidi && w.call(e, a)
10831 for (var e in c) b.push(e + '\x3d"' + c[e] + '" ');
10842 e = {};
10844 e.rows = a.rows || 5;
10845 e.cols = a.cols || 20;
10846 e["class"] = "cke_dialog_ui_input_textarea " + (a["class"] || "");
10847 "undefined" != typeof a.inputStyle && (e.style = a.inputStyle);
10848 a.dir && (e.dir = a.dir);
10854 e["aria-labelledby"] = this._.labelId;
10855 this._.required && (e["aria-required"] = this._.required);
10858 … for (b in e) a.push(b + '\x3d"' + CKEDITOR.tools.htmlEncode(e[b]) + '" ');
10875 e = [],
10885 … f.checkbox = new CKEDITOR.ui.dialog.uiElement(b, c, e, "input", null, g);
10886e.push(' \x3clabel id\x3d"', d, '" for\x3d"', g.id, '"' + (a.labelStyle ? ' style\x3d"' + a.labelS…
10887 return e.join("")
10903 …for (var e = [], d = [], g = (a.id ? a.id : CKEDITOR.tools.getNextId()) + "_radio", k = 0; k < a.i…
10937 e.push(u.join(""))
10939 new CKEDITOR.ui.dialog.hbox(b, f, e, d);
10970 var e = CKEDITOR.tools.getNextId() + "_label";
10978 "aria-labelledby": e
10979 }, '\x3cspan id\x3d"' + e + '" class\x3d"cke_dialog_ui_button"\x3e' +
10992 e = [],
10999 e.push('\x3cdiv class\x3d"cke_dialog_ui_input_',
11001 a.width && e.push('style\x3d"width:' + a.width + '" ');
11002 e.push("\x3e");
11008 f.select = new CKEDITOR.ui.dialog.uiElement(b, c, e, "select", null,
11010 e.push("\x3c/div\x3e");
11011 return e.join("")
11043 e = c.onClick;
11048 c = e ? e.call(this, c) : !1;
11061 return function(f, c, e) {
11080 e.push([g[1], " ", m[1] || "", g[2]].join(""))
11085 var e = c.label;
11091e && a.push("\x3clegend" + (c.labelStyle ? ' style\x3d"' + c.labelStyle + '"' : "") + "\x3e" + e +…
11327 …ols.fixDomain + ")();" : "", "window.parent.CKEDITOR.tools.callFunction(" + e + ");", "window.onbe…
11336 e = this.formLoadedNumber,
11340 e || (e = this.formLoadedNumber = CKEDITOR.tools.addFunction(function() {
11345 CKEDITOR.tools.removeFunction(e);
11386 … for (var f = a.children, c, e = [], h = [], g = 0; g < f.length && (c = f[g]); g++) {
11388 e.push(k);
11391 return new CKEDITOR.ui.dialog[a.type](b, h, e, d, a)
11417 e = 0, d = c.length; e < d; e++) {
11418 var f = new CKEDITOR.dom.element(c[e]);
11450 e = c.getChild(0),
11454 e.unselectable();
11460 title: e,
11518 r = q - e.x,
11519 l = n - e.y;
11520 e = {
11539 var e = null,
11546 e = {
11576 d == CKEDITOR.DIALOG_RESIZE_BOTH) n = Math.max(e.minWidth || 0, G - g);
11577 …ITOR.DIALOG_RESIZE_HEIGHT || d == CKEDITOR.DIALOG_RESIZE_BOTH) q = Math.max(e.minHeight || 0, H - …
11593 var e = a.definition,
11594 d = e.resizable;
11599 var e = a.parts.contents;
11600e.$.getElementsByTagName("iframe").length && (q = CKEDITOR.dom.element.createFromHtml('\x3cdiv cla…
11611 …CKEDITOR.env.ie6Compat && (e = u.getChild(0).getFrameDocument(), e.on("mousemove", b), e.on("mouse…
11634 e = CKEDITOR.skinName || a.config.skin,
11635 d = c.dialog_backgroundCoverColor || ("moono-lisa" == e ? "black" : "white"),
11636 e = c.dialog_backgroundCoverOpacity,
11638 c = CKEDITOR.tools.genKey(d, e, f),
11641 … CKEDITOR.dom.element.createFromHtml(f.join("")), g.setOpacity(void 0 !== e ? e : .5), g.on("keydo…
11698 function e(a) {
11707 var e = c,
11710 e += a;
11711 if (g && !l._.tabBarMode && (e == b.length || -1 == e)) {
11717 e = (e + b.length) % b.length;
11718 if (e == c) break
11719 } while (a && !b[e].isFocusable());
11720 b[e].focus();
11721 "text" == b[e].type && b[e].select()
11731 … if (9 == c || c == CKEDITOR.SHIFT + 9) e(c == CKEDITOR.SHIFT + 9 ? -1 : 1), q = 1;
11742 this._.tabBarMode = !1, this._.currentFocusIndex = -1, e(1), q = 1;
11834 for (var e in b[d])
11835 if (c = a.call(this, b[d][e])) return
11860 this.changeFocus = e;
11882 (b = g.onFocus.call(this)) && b.focus() : e(1))
11897 …this._.tabBarMode && (this._.tabBarMode = !1, this._.currentFocusIndex = -1, e(1)), a.data.prevent…
11941 var e = this._.element.getFirst(),
11943 f = "fixed" == e.getComputedStyle("position");
11944 CKEDITOR.env.ie && e.setStyle("zoom", "100%");
11951 … b[d ? "right" : "left"] = (0 < a ? a : 0) + "px", e.setStyles(b), c && (this._.moved = 1))
11974 e = this._.tabs[a.id],
11977 if (e) {
11981 … }!f || d && !this._.editor.activeFilter.check(d) ? e[0].addClass("cke_dialog_tab_disabled") :
11982 e[0].removeClass("cke_dialog_tab_disabled")
12002 e =
12005 …env.ie6Compat || (b.height + (0 < d ? d : 0) > c.height || b.width + (0 < e ? e : 0) > c.width ? a…
12006 … this.move(this._.moved ? this._.position.x : e, this._.moved ? this._.position.y : d)
12070 … = a.label ? ' title\x3d"' + CKEDITOR.tools.htmlEncode(a.label) + '"' : "", e = CKEDITOR.dialog._.…
12077e.getChild(), g = 0; e = f.shift();) e.notAllowed || "hbox" == e.type || "vbox" == e.type || g++, …
12081 e = CKEDITOR.env;
12084 …", c, a.hidden ? ' style\x3d"display:none"' : "", ' id\x3d"', d, '"', e.gecko && !e.hc ? "" : ' hr…
12107 e = this._.tabs[b][1];
12108 b != a && (c.removeClass("cke_dialog_tab_selected"), e.hide());
12109 e.setAttribute("aria-hidden", b != a)
12289 for (var e = 0, d; d = a[e]; e++)
12293 E = function(a, b, c, e, d) {
12297 if (e && g[e] && (g = E(g[e], b, c, e, !0))) return g
12305 for (var e = 0, d; d = a[e]; e++) {
12306 if (d.id == b) return a.splice(e, 1);
12314 for (var c = b.contents, e = 0, d; d = c[e]; e++) c[e] = d && new M(a, d);
12354 e = a.data.$.shiftKey,
12356 …(b = w[(b ? "CTRL+" : "") + (c ? "ALT+" : "") + (e ? "SHIFT+" : "") + d]) && b.length && (b = b[b.…
12361 e = a.data.$.shiftKey,
12363 …(b = w[(b ? "CTRL+" : "") + (c ? "ALT+" : "") + (e ? "SHIFT+" : "") + d]) && b.length && (b = b[b.…
12365 S = function(a, b, c, e, d) {
12371 keydown: e || a.accessKeyDown
12376 …for (var c = w[b], e = c.length - 1; 0 <= e; e--) c[e].dialog != a && c[e].uiElement != a || c.spl…
12387 uiElement: function(a, b, c, e, d, f, g) {
12389 var h = (e.call ? e(b) : e) || "div",
12462 hbox: function(a, b, c, e, d) {
12475 }, e, "table", {}, m,
12480 e = [];
12484 … g ? g[p] && e.push("width:" + v(g[p])) : e.push("width:" + Math.floor(100 / c.length) + "%");
12485 h && e.push("height:" + v(h));
12486 d && void 0 !== d.padding && e.push("padding:" + v(d.padding));
12488 f[p].align && e.push("text-align:" + f[p].align);
12489 0 < e.length && a.push('style\x3d"' + e.join("; ") + '" ');
12497 vbox: function(a, b, c, e, d) {
12505 }, e, "div", null, {
12516 for (var e = 0; e < c.length; e++) {
12520 …h ? k.push("height:" + v(h[e])) : d && d.expand && k.push("height:" + Math.floor(100 / c.length) +…
12522 … CKEDITOR.env.ie && CKEDITOR.env.quirks && f[e].align && k.push("text-align:" + f[e].align);
12524 … b.push(' class\x3d"cke_dialog_ui_vbox_child"\x3e', c[e], "\x3c/td\x3e\x3c/tr\x3e")
12570 c, e = function(a, b, c, d) {
12577 …ntProcessors[d] ? this.eventProcessors[d].call(this, this._.dialog, a[d]) : e(this, this._.dialog,…
12625 build: function(a, c, e) {
12632 h, g, e, c)
12656 e = /^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,
12667 e = [],
12670 if ("function" == typeof a[f]) e.push(a[f]);
12675 for (f = 0; f < e.length; f++) n = d == CKEDITOR.VALIDATE_AND ? n &&
12676 e[f](b) : n || e[f](b);
12702 return e.test(CKEDITOR.tools.trim(a))
12735 e = CKEDITOR.dialog._.dialogDefinitions[a];
12737 …if ("function" == typeof e) c = this._.storedDialogs || (this._.storedDialogs = {}), c = c[a] || (…
12739 …if ("failed" == e) throw O(this), Error('[CKEDITOR.dialog.openDialog] Dialog "' + a + '" failed wh…
12740 … "string" == typeof e && CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e), function() {
12924 e = [];
12925 if (a.id || a.dir) a.id && e.push({
12933 }), a.dir && e.push({
12951 children: [].concat(e)
12953 if (a.styles || a.classes) e = [], a.styles && e.push({
12969 e = c.document.createElement("span");
12970 e.setAttribute("style", d);
12971 e.setStyle(a, b);
12972 d = CKEDITOR.tools.normalizeCssText(e.getAttribute("style"));
12977 }), a.classes && e.push({
12993 children: [].concat(e)
13001 var e = 0,
13016 toolbar: "basicstyles," + (e += 10)
13118 var e = c.getParent();
13119 if (!e) break;
13120 c = e
13135 for (var h = {}, e = d.createBookmarks(), c = c.createIterator(), g,
13141 n = e[l].startNode,
13142 p = e[l++].endNode;
13159 d.selectBookmarks(e);
13172 var e;
13173 if (e = c == (f || d ?
13176 e = this;
13177 for (var g = e.getDocument().getBody().getParent(); e;) {
13178 if (e.equals(g)) {
13179 e = !1;
13182 e = e.getParent()
13184 e = !0
13186 e = !e
13188 …if (e && (e = this.getDirection(1), g = a.apply(this, arguments), e != this.getDirection(1))) retu…
13214 c, d, e, f) {
13215 a.addCommand(d, new CKEDITOR.command(a, e));
13253 var e = h[0].startNode,
13256 if (e && "blockquote" == e.getParent().getName())
13257 for (d = e; d = d.getNext();)
13259 e.move(d, !0);
13271 for (e = []; a = f.getNextParagraph();) e.push(a);
13272e.length && (a = g.document.createElement(g.config.enterMode == CKEDITOR.ENTER_P ? "p" : "div"), b…
13273 d = e[0].getParent();
13275 … for (b = 0; b < e.length; b++) a = e[b], d = d.getCommonAncestor(a.getParent());
13283 for (b = null; 0 < e.length;) {
13284 for (a = e.shift(); !a.getParent().equals(d);) a = a.getParent();
13290 ….documentFragment(g.document); a.getFirst();) b.append(a.getFirst().remove()), e.push(b.getLast());
13292 } else e.push(a);
13294 for (c.insertBefore(e[0]); 0 < e.length;) a = e.shift(), c.append(a)
13298 for (e = c = null; a.getParent();) {
13301 e = a;
13306 …c && e && !e.getCustomData("blockquote_moveout") && (b.push(e), CKEDITOR.dom.element.setMarker(d,
13310 e = [];
13311 …getParent(), f.getPrevious() ? f.getNext() ? (f.breakParent(f.getParent()), e.push(f.getNext())) :…
13312 … (e.push(c), CKEDITOR.dom.element.setMarker(d, c, "blockquote_processed", !0)), a.push(f);
13314 for (b = e.length - 1; 0 <= b; b--) {
13315 c = e[b];
13403 b.showNotification = function(a, d, e) {
13405 "progress" == d ? f = e : l = e;
13437 e = c.findOne(".cke_notification_progress"),
13441 …ype), "progress" != this.type || e ? "progress" != this.type && e && e.remove() : (e = this._creat…
13444 e && e.setStyle("width", this._getPercentageProgress()));
13552 e = c.ui.contentsElement.getDocumentPosition(),
13570 top: k(e.y)
13571 }) : e.y + d.height - u.height > p.y ? a.setStyles({
13576 top: k(e.y + d.height - u.height)
13578 … == a.getStyle("position") ? d.left : "static" != q.getComputedStyle("position") ? e.x - r.x : e.x;
13580e.x + g + h > p.x + t.width ? b() : a.setStyle("left", k(n)) : e.x + g + h > p.x + t.width ? a.set…
13627 var e = {
13642 … if (e.onkey) return a = new CKEDITOR.dom.event(a), !1 !== e.onkey(e, a.getKeystroke())
13646 e.onfocus && (b = !1 !== e.onfocus(e, new CKEDITOR.dom.event(a)));
13650 e.clickFn = t = CKEDITOR.tools.addFunction(function() {
13652 e.execute();
13698 return e
13723 …for (var b = f(), e = CKEDITOR.tools.clone(a.config.toolbarGroups) || v(a), n = 0; n < e.length; n…
13724 var g = e[n];
13726 "string" == typeof g && (g = e[n] = {
13735 return e
13740 c, e, g;
13741 …a.ui.items) e = a.ui.items[c], g = e.toolbar || "others", g = g.split(","), e = g[0], g = parseInt…
13745 for (e in b) b[e] = b[e].sort(function(b,
13752 function c(c, e) {
13753 if (e.length) {
13755 …for (var d; d = e.shift();) d = "string" == typeof d ? d : d.name, b && -1 != CKEDITOR.tools.index…
13761 e, d, h;
13762 …for (e = 0; e < b.length; ++e) d = b[e], h = {}, "/" == d ? a.push(d) : CKEDITOR.tools.isArray(d) …
13768 e = a.config.toolbar;
13769 "string" == typeof e && (e = a.config["toolbar_" + e]);
13770 return a.toolbar = e ? h(e) : d()
13838 var b, e = "rtl" == a.lang.dir,
13840 q = e ? 37 : 39,
13841 e = e ? 39 : 37,
13858 … return c.button && c.button.hasArrow ? c.execute() : f(c, 40 == h ? q : e), !1;
13859 case e:
13880 e, k;
13888 …if (e && (b.push("\x3c/span\x3e"), k = e = 0), "/" === p) b.push('\x3cspan class\x3d"cke_toolbar_b…
13906 e && t;
13923 …A ? e || (b.push('\x3cspan class\x3d"cke_toolgroup" role\x3d"presentation"\x3e'), e = 1) : e && (b…
13929 e && (b.push("\x3c/span\x3e"), k = e = 0);
13947 e = c.getParent(),
13949 g = e.$.offsetHeight,
13954 h - (e.$.offsetHeight - g) + "px");
13978 b, e, f;
13980 …for (e = a[d].items, b = 0; b < e.length; b++) f = e[b], f.clickFn && CKEDITOR.tools.removeFunctio…
14061 u || (g(), a.data.preventDefault(), k(a), e("paste"))
14092 if (CKEDITOR.env.ie) b = e(c);
14112 …dataTransfer || (b.dataTransfer = p.initPasteDataTransfer()), r(a, b, h)) : e && !a._.forcePasteDi…
14122 e = "undefined" !== typeof b.notification ? b.notification : !0,
14126 …n = "string" === typeof e ? e : a.lang.clipboard.pasteNotification.replace(/%1/, '\x3ckbd aria-lab…
14150 function e(b) {
14154 e = !1,
14156 e = !0
14161 return e
14167 c, d, e;
14168 …ectedElement()) && (d = b.getRanges()[0], e = a.document.createText(""), e.insertBefore(c), d.setS…
14169 c.getParent() && (e.remove(), b.selectElement(c))
14177 e = a.editable(),
14186 …var k = new CKEDITOR.dom.element(!CKEDITOR.env.webkit && !e.is("body") || CKEDITOR.env.ie ? "div" …
14193 …CKEDITOR.env.webkit ? (e.append(k), k.addClass("cke_editable"), e.is("body") || (l = "static" != e
14194e : CKEDITOR.dom.element.get(e.$.offsetParent), l = l.getDocumentPosition().y)) : e.getAscendant(C…
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() {
14220 CKEDITOR.env.ie && e.focus();
14240 if (a.editable().fire(p.mainPasteEvent) && !e("paste")) return b.unlock(), !1;
14339 function b(c, d, e, h, f) {
14341 a.addCommand(d, e);
14368 function e(a) {
14388 … h && a.fire("pasteDialog") ? (a.on("pasteDialogCommit", e), a.on("dialogHide", function(a) {
14390 a.data.removeListener("pasteDialogCommit", e);
14472 function c(b, c, e) {
14475 dataTransfer: e,
14478 e.sourceEditor.fire("saveSnapshot");
14479 e.sourceEditor.editable().extractHtmlFromRange(b);
14480 e.sourceEditor.getSelection().selectRanges([b]);
14481 e.sourceEditor.fire("saveSnapshot")
14484 function d(c, e) {
14487 dataTransfer: e,
14493 function g(b, c, e) {
14499 e && (d.dropRange = e);
14507 var e = a.editable(),
14513 e.attachListener(f, "dragstart", g);
14514 e.attachListener(a, "dragstart", b.resetDragDataTransfer, b, null, 1);
14515 e.attachListener(a, "dragstart", function(c) {
14518 e.attachListener(a, "dragstart", function() {
14523 e.attachListener(f, "dragend", g);
14524 e.attachListener(a, "dragend", b.initDragDataTransfer, b, null, 1);
14525 e.attachListener(a, "dragend", b.resetDragDataTransfer, b, null, 100);
14526 e.attachListener(f, "dragover", function(a) {
14534 e.attachListener(f, "drop", function(c) {
14537 var e = c.data.getTarget();
14538 if (!e.isReadOnly() || e.type == CKEDITOR.NODE_ELEMENT && e.is("html")) {
14539 var e = b.getRangeAtDropPosition(c, a),
14541 e && g(c, d, e)
14545 e.attachListener(a, "drop", b.initDragDataTransfer, b, null, 1);
14546 e.attachListener(a, "drop", function(e) {
14547 if (e = e.data) {
14548 var h = e.dropRange,
14549 f = e.dragRange,
14550 g = e.dataTransfer;
14693 e, f;
14700 (f = this.isDropRangeAffectedByDragRange(a, b)) || (e = a.createBookmark(!1));
14702 f && (e = a.createBookmark(!1));
14703 a = e.startNode;
14704 b = e.endNode;
14708 a.moveToBookmark(e);
14725 e = b.createRange();
14727 …c = b.document.$.caretRangeFromPoint(d, g), e.setStart(CKEDITOR.dom.node(c.startContainer), c.star…
14728 …else if (c.rangeParent) e.setStart(CKEDITOR.dom.node(c.rangeParent), c.rangeOffset), e.collapse(!0…
14747 e.moveToPosition(t, CKEDITOR.POSITION_BEFORE_START);
14756 …d < r.left ? e.setStartAt(p, CKEDITOR.POSITION_AFTER_START) : e.setStartAt(p, CKEDITOR.POSITION_BE…
14757 e.collapse(!0)
14764 return e
14958 e = this._getFallbackTypeData();
14959 e[a] = d;
14961 …d = this._applyDataComment(c, e), g.setData(this._customDataFallbackType, d), this._dataTransfer._…
15019 function e(c) {
15034 this.click = e;
15051 e = this._.panelDefinition.block,
15054 f = d.addBlock(a.id, e),
15083 beforeInit: function(e) {
15084 e.ui.addHandler(CKEDITOR.UI_PANELBUTTON, CKEDITOR.ui.panelButton.handler)
15138 }, e)));
15153 var e = {
15165 e.frame = h.output({
15170 d = g.output(e);
15186e = !this.forceIFrame || CKEDITOR.env.ie ? this._.holder : this.document.getById(this.id + "_frame…
15189 CKEDITOR.fire("ariaWidget", e);
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…
15248 var e = this.keys[a];
15249 switch (e) {
15251 … for (var d = this._.focusIndex, e = this.element.getElementsByTag("a"), c; c = e.getItem(++d);)
15260 … for (e = this.element.getElementsByTag("a"); 0 < d && (c = e.getItem(--d));) {
15268 … return c || b ? !1 : (this._.focusIndex = e.count(), this.onKeyDown(a, 1));
15271 …<= d && this.element.getElementsByTag("a").getItem(d)) && (c.$[e] ? c.$[e]() : c.$["on" + e]()), !1
15295 e.hide()
15304 e = this;
15340 var e = this._.editor.editable();
15341 … this._.returnFocus = e.hasFocus ? e : new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);
15344 e = this._.iframe,
15345e = CKEDITOR.env.ie && !CKEDITOR.env.edge ? e : new CKEDITOR.dom.window(e.$.contentWindow),
15366 this._.editor.focusManager.add(e);
15367 this._.blurSet || (CKEDITOR.event.useCapture = !0, e.on("blur", function(a) {
15373 }, this), e.on("focus", function() {
15377 }, this), CKEDITOR.env.iOS && (e.on("touchstart", function() {
15379 }, this), e.on("touchend", function() {
15408 e = a.height || a.bottom - a.top,
15414 … b.height - a.top < e && (p = c > e ? p - e : b.height > e ? p - a.bottom + b.height : p - a.top);
15507 init: function(e) {
15513 e.ui.add(a, CKEDITOR.UI_PANELBUTTON, {
15540 f = "rtl" == e.lang.dir;
15550 e.activeFilter.check(p) || this.setState(CKEDITOR.TRISTATE_DISABLED)
15553 var a = e.getSelection(),
15555 c = e.elementPath(b);
15557 b = c.block || c.blockLimit || e.document.getBody();
15590 p = e.plugins.colordialog && !1 !== l.colorButton_enableMore,
15596 e.removeStyle(new CKEDITOR.style(d, {
15604 e.focus();
15605 a && e.applyStyle(new CKEDITOR.style(d, {
15608 e.fire("saveSnapshot")
15610 e.focus();
15611 e.fire("saveSnapshot");
15612 if ("?" == a) e.getColorFromDialog(function(a) {
15625 …n[1] ? n = b : (b = "#" + b.replace(/^(.)(.)(.)$/, "$1$1$2$2$3$3"), n = e.lang.colorbutton.colors[…
15642 var l = e.config,
15643 h = e.lang.colorbutton;
15662 x = e.config.colorButton_normalizeBackground;
15673 var d = (new CKEDITOR.style(e.config.colorButton_backStyle, {
15715 var c, f, e;
15726 e = function(a) {
15732 … if (b._.storedDialogs && b._.storedDialogs.colordialog) e(b._.storedDialogs.colordialog);
15739 e(this);
15772 … for (var e = [], b = 0, c = a.length; b < c; b++) f[a[b]] || (e.push(a[b]), f[a[b]] = 1);
15773 e.length ? CKEDITOR.scriptLoader.load(e, d) : setTimeout(d, 0)
15841 for (var e in k) {
15842 var f = this.editor.getMenuItem(e);
15843 … !f || f.command && !this.editor.getCommand(f.command).state || (f.state = k[e], this.add(f))
15893 e = this._.panel,
15895 if (!e) {
15896e = this._.panel = new CKEDITOR.ui.floatPanel(this.editor, CKEDITOR.document.getBody(), this._.pan…
15897 e.onEscape = CKEDITOR.tools.bind(function(a) {
15900 e.onShow = function() {
15901e._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")
15903 e.onHide = CKEDITOR.tools.bind(function() {
15906 f = e.addBlock(this.id, this._.panelDefinition.block);
15945 …this.parent ? this.parent._.panel.showAsChild(e, this.id, a, b, d, m) : e.showBlock(this.id, a, b,…
15946 k.fire("menuShow", [e])
15981 e = this.editor,
15991 …this.command && (f = e.getCommand(this.command), (f = e.getCommandKeystroke(f)) && (c = CKEDITOR.t…
16002 ariaShortcut: c ? e.lang.common.keyboardShortcut + " " + c.aria : "",
16040 addTarget: function(a, e) {
16044 if (!e || !c) {
16076 open: function(a, e, f, d) {
16077 …a || CKEDITOR.document.getDocumentElement(), this.editor.selectionChange(1), this.show(a, e, f, d))
16083 var e = a.contextMenu = new CKEDITOR.plugins.contextMenu(a);
16085 e.addTarget(a.editable(),
16098 function k(a, b, d, e) {
16101 if (d(a), e) return;
16104 if (d(a), e) break
16154 var e = a.getCommand("copyFormatting");
16155 …r(b) !== CKEDITOR.MOUSE_BUTTON_LEFT || e.state !== CKEDITOR.TRISTATE_ON || d.contains(b.data.getTa…
16168 var e = a.getCommand("copyFormatting");
16170 …b.getKeystroke && 27 === b.getKeystroke() && e.state === CKEDITOR.TRISTATE_ON && a.execCommand("co…
16173 var e = d.data.element;
16174 if (e.contains(a.editable()) || e.equals(a.editable())) return d.cancel();
16175 e = b._convertElementToStyleDef(e);
16176 … if (!a.copyFormatting.filter.check(new CKEDITOR.style(e), !0, !0)) return d.cancel();
16177 d.data.styleDef = e
16182 var e = d.data.range,
16183 c = b._extractStylesFromRange(a, e),
16184 f = b._determineContext(e),
16187e.createBookmark(), -1 === l(b.preservedElements, f.element) ? CKEDITOR.env.webkit && !CKEDITOR.en…
16192 var e = CKEDITOR.plugins.copyformatting,
16193 c = e._determineContext(b.data.range);
16194e._applyStylesToListContext(b.editor, b.data.range, b.data.styles) : "table" === c && a.copyFormat…
16218 e = a.copyFormatting,
16223 …if (this.state === CKEDITOR.TRISTATE_ON) return e.styles = null, e.sticky = !1, g.removeClass("cke…
16225 e.styles = d._extractStylesFromElement(a, a.elementPath().lastElement);
16228 e.sticky = f;
16238 e = b ? "keystrokeHandler" == b.from : !1,
16243 if (e || d.state === CKEDITOR.TRISTATE_ON) {
16244 …if (e && !f.styles) return c._putScreenReaderMessage(a, "failed"), c._detachPasteKeystrokeHandler(…
16245 e = c._applyFormat(a, f.styles);
16248 c._putScreenReaderMessage(a, e ? "applied" : "canceled")
16269 e = [];
16271 …ment = b, a.copyFormatting.fire("extractFormatting", d, a) && d.styleDef && e.push(new CKEDITOR.st…
16272 return e
16275 for (var d = [], e = new CKEDITOR.dom.walker(b),
16276 … c; c = e.next();) d = d.concat(CKEDITOR.plugins.copyformatting._extractStylesFromElement(a, c));
16280 … for (var d = -1 !== l(["ol", "ul", "table"], b), e = new CKEDITOR.dom.walker(a), c; c = e.next();)
16296 function e(a, c) {
16321 if ("number" !== typeof n && !m) return e(f, c);
16323 else if (c && (n += 1, n > h.length)) return e(f);
16333 … g.index + g[0].length, 0 === g.index && (g = e(h, !0), m = g.node, a = g.offset), c >= f.length &…
16345 e, c;
16346e = a[c]._.definition, -1 !== CKEDITOR.tools.indexOf(CKEDITOR.plugins.copyformatting.inlineBoundar…
16351 var e = new CKEDITOR.dom.walker(a),
16354 for (; c = e.next();)
16364 var e = CKEDITOR.plugins.copyformatting,
16365 c = e.excludedAttributesFromInlineTransform,
16369 if (b = d[f], -1 === l(e.excludedElementsFromInlineTransform, b.element)) {
16370 if (-1 !== l(e.elementsForInlineTransform, 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.…
16381 var b = e;
16384 }, !0) : "li" === e.element ? k(b, "li", function(a) {
16385 e.applyToObject(a)
16386 … }) : CKEDITOR.plugins.copyformatting._applyStylesToTextContext(a, b, [e]), b.moveToBookmark(c)
16389 function e(a, b) {
16401 e(a, c)
16406 e(a, c)
16411 e = CKEDITOR.plugins.copyformatting,
16416 if (!(c = e._getSelectedWordOffset(d))) return;
16422 b = e._filterStyles(b);
16488e, h = b.createBookmarks(), f = [], d = 0; d < g.length; d++) e = g[d], e.collapsed ? c(b.getStart…
16535 var e = c.width,
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)));
16541 b.resize(h ? e : null, m)
16586 var e = "";
16587 h && !p && (e = " cke_resizer_horizontal");
16588 !h && p && (e = " cke_resizer_vertical");
16589 …var c = '\x3cspan id\x3d"' + r + '" class\x3d"cke_resizer' + e + " cke_resizer_" + g + '" title\x3…
16590 "ltr" == g && "ltr" == e ? a.data.html += c : a.data.html = c + a.data.html
16604 var e;
16605 …Attribute("contenteditable") ? (e = a.createRange(), e.selectNodeContents(b), e = e.select()) : (e
16607 selection: e,
16628 w = CKEDITOR.tools.addFunction(function(b, e) {
16631 e = new CKEDITOR.dom.event(e);
16633 switch (e.getKeystroke()) {
16648 …for (var e = [], g = h.list = [], d = [], c = h.filters, p = !0, k = b.data.path.elements, u = k.l…
16673 }), e.unshift(b);
16677 … d.setHtml(e.join("") + '\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e');
16714 function x(a, e, b) {
16717 e || (e = a.activeEnterMode);
16719 g && !g.isContextFor("p") && (e = CKEDITOR.ENTER_BR, b = 1);
16721 e == CKEDITOR.ENTER_BR ? u(a, e, null, b) : r(a, e, null, b);
16728 for (var e = a.length - 1; 0 < e; e--) a[e].deleteContents();
16733 var e = a.startContainer.getAscendant(function(a) {
16737 if (a.root.equals(e)) return a;
16738 e = new CKEDITOR.dom.range(e);
16739 e.moveToRange(a);
16740 return e
16772 enterBlock: function(a, e, b, g) {
16787 l = e == CKEDITOR.ENTER_DIV ? "div" : "p",
16807 …if (p.block.is("li") ? (d = h.createElement(e == CKEDITOR.ENTER_P ? "p" : "div"), r && d.setAttrib…
16829 u(a, e, b, g);
16839 if (m(e)) b.moveToElementEditStart(b.getTouchedStartNode());
16847 for (e = 0, g = h.elements.length; e < g; e++) {
16848 l = h.elements[e];
16867 enterBr: function(a, e, b, g) {
16875 …t(a, CKEDITOR.POSITION_AFTER_END)), b.collapse(!0), b.select(), b.scrollIntoView()) : r(a, e, b, g)
16888 e = {
16898 var d = f ? "\x26" + a + ";" : e[a];
16899 g[d] = f ? e[a] : "\x26" + a + ";";
16930 var e = [];
16931 !1 !== c.basicEntities && e.push("nbsp,gt,lt,amp");
16932 …c.entities && (e.length && e.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laqu…
16933e.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,…
16934 c.entities_additional && e.push(c.entities_additional));
16935 var a = k(e.join(",")),
16961 popup: function(e, a, b, d) {
16975 …werCase().indexOf(" chrome/") && (c.moveTo(g, f), c.resizeTo(a, b)), c.focus(), c.location.href = e
16977 window.open(e, null, d, !0)
17008 d, f, g, e;
17012 for (e = 0; e < f.length; e++) g[e] = f.charCodeAt(e);
17036 g, e;
17037 for (e in c) {
17038 var h = c[e];
17039 … "object" === typeof h && h.file ? d.append(e, h.file, h.name) : d.append(e, h)
17054 for (var e in g) f[e] = g[e];
17152 …}, c = ["message", "fileName", "url"], e = b.editor.fire("fileUploadResponse", a), h = 0; h < c.le…
17158 !1 === e ? b.changeStatus("error") : b.changeStatus("uploaded")
17254 for (var e, g = c.length; g--;)
17255 …if (e = c[g], "hbox" != e.type && "vbox" != e.type && "fieldset" != e.type || l(a, b, d, e.childre…
17256 if ("string" == typeof e.filebrowser && (e.filebrowser = {
17257 action: "fileButton" == e.type ? "QuickUpload" : "Browse",
17258 target: e.filebrowser
17259 }), "Browse" == e.filebrowser.action) {
17260 var f = e.filebrowser.url;
17262 f && (e.onClick = q, e.filebrowser.url = f, e.hidden = !1)
17263 } else if ("QuickUpload" == e.filebrowser.action &&
17264e["for"] && (f = e.filebrowser.url, void 0 === f && (f = a.config["filebrowser" + k(b) + "UploadUr…
17265 var h = e.onClick;
17266 e.onClick = function(b) {
17269 e = CKEDITOR.fileTools && CKEDITOR.fileTools.isFileUploadSupported;
17272 …if ("form" !== a.config.filebrowserUploadMethod && e) return b = a.uploadRepository.create(d.$.fil…
17282 e.filebrowser.url = f;
17283 e.hidden = !1;
17284 u(a, d.getContents(e["for"][0]).get(e["for"][1]), e.filebrowser)
17310 e = this._.filebrowserSe.filebrowser.onSelect;
17313 if (!e || !1 !== e.call(this._.filebrowserSe, a, b))
17315 if (c = c.split(":"), e = d.getContentElement(c[0], c[1])) e.setValue(a),
17402 var e = this.lang.fakeobjects,
17403 e = e[c] || e.unknown;
17408 alt: e,
17409 title: e,
17420 var e = this.lang.fakeobjects,
17421 e = e[c] || e.unknown,
17430 alt: e,
17431 title: e,
17458 function e(a, b) {
17508 return e(a, b)
17511 return e(a, b)
17514 return d(b) ? e(a, b) : null
17534 function f(a, c, e) {
17535 b.setStyle(c, w(e));
17539 function e(a) {
17572 …m ? (q + r <= c.top ? e("top") : q + r > h.height - c.bottom ? e("pin") : e("bottom"), d = h.width…
17573 …("pin" == m ? u : p) + f + ("pin" == m ? 0 : "left" == d ? v : -v)))) : (m = "pin", e("pin"), t(d))
17591 e = CKEDITOR.tools.eventsBuffer(100, t);
17600 g.on("scroll", e.input);
17601 g.on("resize", e.input)
17607 e.input);
17608 g.removeListener("resize", e.input)
17611 g.removeListener("scroll", e.input);
17612 g.removeListener("resize", e.input);
17687 var e;
17688 e = CKEDITOR.tools.htmlEncodeAttr(a).replace(k, "\\'");
17691 val: e,
17733 …for (var e in b) a = c.getById(b[e]), d = a.getNext(), a.setStyle("display", ""), d && "ul" == d.g…
17848 e = CKEDITOR.tools.addFunction(function(b) {
17870 clickFn: e
17884 CKEDITOR.tools.callFunction(e, b);
17906 clickFn: e
17918 e = new CKEDITOR.ui.floatPanel(a, k, b),
17919 b = e.addListBlock(this.id, c),
17921 e.onShow = function() {
17928 e.onHide = function(b) {
17934 e.onEscape = function() {
17935 e.hide(1)
17939 e.hide()
17941 this._.panel = e;
17943 e.getBlock(this.id).onHide = function() {
18017 function p(b, f, e, d, r, p, t, x) {
18028 w[e] = r[l] = m[1] || q;
18076 e, n, h, d, g;
18078 if (e = k[c], c = b.getSelection().getRanges()[0], c.collapsed) {
18080 return e.checkElementRemovable(a)
18092 } else b.removeStyle(e);
18093 a === this.defaultValue ? e && b.removeStyle(e) : b.applyStyle(f);
18103 for (var e in k)
18104 if (k[e].checkElementMatch(f, !0, b)) {
18105 e != c && this.setValue(e);
18118 function v(b, f, e) {
18121 if (e) return v(b, f, d.equals(e) ? null : e);
18122 e = d.clone();
18123 b.insertNode(e);
18124 b.moveToPosition(e, CKEDITOR.POSITION_AFTER_START);
18204 e = function(d, c, e) {
18216 CKEDITOR.dialog.add(c, e)
18219 !a.blockless && e("Form", "form", f + "form.js");
18220 e("Checkbox", "checkbox", f + "checkbox.js");
18221 e("Radio", "radio",
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");
18228 …k && !a.plugins.image2 && e("ImageButton", "imagebutton", CKEDITOR.plugins.getPath("image") + "dia…
18229 e("HiddenField", "hiddenfield", f + "hiddenfield.js");
18230 a.addMenuItems && (e = {
18266 }, k && (e.imagebutton = {
18271 (e.form = {
18275 }), a.addMenuItems(e));
18400 var e = c["tag_" + a];
18401 this.add(a, d[a].buildPreview(e), e)
18408 var e = a.elementPath();
18409 b.checkActive(e, a) || a.applyStyle(b);
18416 var e = this.getValue();
18421 c != e && this.setValue(c,
18665 … for (var e = 0; e < d.count(); e++) d.getItem(e).setCustomData("retain", !0);
18677 e = c.getElementById("cke_actscrpt");
18678 e && e.parentNode.removeChild(e);
18679 (e = c.getElementById("cke_shimscrpt")) && e.parentNode.removeChild(e);
18680 (e = c.getElementById("cke_basetagscrpt")) && e.parentNode.removeChild(e);
18792 var e = CKEDITOR.env.ie && !CKEDITOR.env.edge || CKEDITOR.env.gecko;
18793 if (e) d.on("load", b);
18812 !e && b();
18844 e = c.docType,
18850 b.docType = e = a;
18858 …head[^>]*?>/, "$\x26" + h)), a = a.replace(/<\/head\s*>/, g + "$\x26"), a = e + a) : a = c.docType…
18885 e = this.getDocument(),
18886 b = b ? e.getDocumentElement().getOuterHtml() : e.getBody().getHtml();
18916 function e(b, a) {
18960 if (e(b, a)) return {
18971 var c = e(b),
18977 var c = e(b);
18989 var e, f;
18997 e = a.getSelection();
18998 f = e.createBookmarks(1);
19004 e.selectBookmarks(f)
19051 specificDefinition: function(a, b, e) {
19056 this.isIndent = !!e;
19057 this.relatedGlobal = e ? "indent" : "outdent";
19058 this.indentKey = e ? 9 : CKEDITOR.SHIFT + 9;
19064 var e = a.getCommand(b.relatedGlobal),
19066 for (c in b.jobs) e.on("exec", function(d) {
19068 }, this, null, c), e.on("refresh", function(d) {
19083 var e = this.jobs[b];
19084 if (e.state != k) return e.exec.call(this, a)
19087 b, e) {
19089 … a.activeFilter.checkFeature(this) ? b.state = b.refresh.call(this, a, e) : b.state = k;
19167 var e = b.block || b.blockLimit;
19168 if (!e.is(h)) var c = e.getAscendant(h),
19169 e = c && b.contains(c) || e;
19170 e.is(h) && (e = e.getParent());
19174 e = e.$.className.match(this.classNameRegex),
19176 c = e ? f ? e[1] != c.slice(-1) : !0 : f;
19179 …return this.isIndent ? n : e ? CKEDITOR[0 >= (parseInt(e.getStyle(m(e)), 10) || 0) ? "TRISTATE_DIS…
19226 …for (var e = c.startContainer, a = c.endContainer; e && !e.getParent().equals(b);) e = e.getParent…
19228 if (!e || !a) return !1;
19229 for (var d = [], h = !1; !h;) e.equals(a) && (h = !0), d.push(e), e = e.getNext();
19231 e = b.getParents(!0);
19232 for (a = 0; a < e.length; a++)
19233 if (e[a].getName && p[e[a].getName()]) {
19234 b = e[a];
19236 …} for (var e = k.isIndent ? 1 : -1, a = d[0], d = d[d.length - 1], h = CKEDITOR.plugins.list.listT…
19238 if (h[a].indent += e, 0 < e) {
19240 if (h[n].indent === e) {
19244 …a = d.getCustomData("listarray_index") + 1; a < h.length && h[a].indent > m; a++) h[a].indent += e;
19245e = CKEDITOR.plugins.list.arrayToList(h, q, null, f.config.enterMode, b.getDirection());
19249 for (var d = e.listNode.getChildren(),
19252 e && e.listNode.replace(b);
19259 e && f.fire("contentDomInvalidated");
19421 var e = c.config.justifyClasses;
19422e && (d.hasClass(e[0]) ? (d.removeClass(e[0]), d.addClass(e[2])) : d.hasClass(e[2]) && (d.removeCl…
19423 d.addClass(e[0])));
19424 e = d.getStyle("text-align");
19425 … "left" == e ? d.setStyle("text-align", "right") : "right" == e && d.setStyle("text-align", "left")
19433 …for (var f = c.createBookmarks(), d = c.getRanges(), e = this.cssClassName, h, g, k = a.config.use…
19439 if ((l = a.activeFilter.check(l + "(" + e + ")")) || p) {
19442 …var m = e && (g.$.className = CKEDITOR.tools.ltrim(g.$.className.replace(this.cssClassRegex, ""))),
19444e && l ? r ? g.addClass(e) : m || g.removeAttribute("class") : r && p && g.setStyle("text-align", …
19543 e = {},
19550 var c = e["language_" + b];
19558 … for (f = 0; f < b.length; f++) g = b[f].split(":"), h = g[0], k = "language_" + h, e[k] = {
19568 }, e[k].style = new CKEDITOR.style({
19572 dir: e[k].ltr ? "ltr" : "rtl"
19575 e.language_remove = {
19579 order: e.length,
19587 a.addMenuItems(e);
19598 for (f in e) b[f] = CKEDITOR.TRISTATE_OFF;
19632 f, e;
19633 e = [a.compiledProtectionFunction.name, "("];
19634 …g = 0; g < d.length; g++) a = d[g].toLowerCase(), f = b[a], 0 < g && e.push(","), e.push("'", f ? …
19635 e.push(")");
19636 return e.join("")
19792 e = [],
19798 … }), (g = c.elementPath(g.getCommonAncestor()).contains("a", 1)) && b) e.push(g);
19800 return b ? e : null
19804 …"), a = a.getElementsByTag("img"), d = [], f = 0, e; e = b.getItem(f++);)(e.data("cke-saved-name")…
19805 name: e.data("cke-saved-name") || e.getAttribute("name"),
19806 id: e.getAttribute("id")
19808 for (f = 0; e = a.getItem(f++);)(e = this.tryRestoreFakeAnchor(c, e)) && d.push({
19809 name: e.getAttribute("name"),
19810 id: e.getAttribute("id")
19826 e, g = {};
19836 …for (var e = c.length, f, h, k = 0; k < e; k++) f = decodeURIComponent, h = c[k].replace(b, "").re…
19843 e = a.match(v);
19848 e && (k.subject = decodeURIComponent(e[1]));
19850 } else a && (e = a.match(y)) &&
19851 (g.type = "url", g.url = {}, g.url.protocol = e[1], g.url.url = e[2]);
19891 var e = b.email,
19892 f = e.address;
19896 var g = encodeURIComponent(e.subject || ""),
19897 k = encodeURIComponent(e.body || ""),
19898 e = [];
19899 g && e.push("subject\x3d" + g);
19900 k && e.push("body\x3d" + k);
19901 e = e.length ? "?" + e.join("\x26") : "";
19902 …t:void(location.href\x3d'mailto:'+", q(f)], e && a.push("+'", p(e), "'"), a.push(")")) : a = ["mai…
19905 … a = f.split("@", 2), e.name = a[0], e.domain = a[1], a = ["javascript:", r(c, e)]
19915 }, e = 0; e < f; e++) h[e] += b.target[h[e]] ? "\x3dyes" : "\x3dno";
20008 function I(b, m, e) {
20014 …for (var f = CKEDITOR.plugins.list.listToArray(m.root, e), g = [], k = 0; k < m.contents.length; k…
20016 …", !0)) && !h.getCustomData("list_item_processed") && (g.push(h), CKEDITOR.dom.element.setMarker(e,
20026 …} var d = CKEDITOR.plugins.list.arrayToList(f, e, null, b.config.enterMode, m.root.getAttribute("d…
20042 function E(b, m, e, c) {
20043 …tDirection(1) && f.setAttribute("dir", g), f.remove(), e ? f[c ? "insertBefore" : "insertAfter"](e
20047 function m(e) {
20048 var c = b[e ? "getPrevious" : "getNext"](u);
20049 …c && c.type == CKEDITOR.NODE_ELEMENT && c.is(b.getName()) && (E(b, c, null, !e), b.remove(), b = c)
20060 function C(b, m, e) {
20062 e.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);
20063 var c = e.extractContents();
20069 h = new CKEDITOR.dom.elementPath(e.startContainer),
20077 for (; e.checkStartOfBlock() && e.checkEndOfBlock();) {
20078 h = e.startPath();
20082 e.moveToPosition(c, CKEDITOR.POSITION_BEFORE_START);
20085 e = e.clone();
20087 e.setEndAt(c, CKEDITOR.POSITION_BEFORE_END);
20088 e = new CKEDITOR.dom.walker(e);
20089 e.evaluator = function(a) {
20092 … (e = e.next()) && e.type == CKEDITOR.NODE_ELEMENT && e.getName() in CKEDITOR.dtd.$list && F(e);
20112 listToArray: function(b, m, e, c, f) {
20115 e || (e = []);
20118 …_ELEMENT && h.getName() in CKEDITOR.dtd.$list && CKEDITOR.plugins.list.listToArray(h, m, e, c + 1);
20127 m && CKEDITOR.dom.element.setMarker(m, h, "listarray_index", e.length);
20128 e.push(d);
20129 …OR.NODE_ELEMENT && v[l.getName()] ? CKEDITOR.plugins.list.listToArray(l, m, e, c + 1, d.grandparen…
20132 return e
20134 arrayToList: function(b, m, e, c, f) {
20135 e || (e = 0);
20136 if (!b || b.length < e + 1) return null;
20137 …for (var g, k = b[e].parent.getDocument(), h = new CKEDITOR.dom.documentFragment(k), d = null, a =…
20150 r.indent && !e && g) {
20186 …earMarkers(m, b), b.getName() in CKEDITOR.dtd.$listItem && (e = b, k = f = c = void 0, c = e.getDi…
20188 e.getParent(); f && !(k = f.getDirection());) f = f.getParent();
20189 c == k && e.removeAttribute("dir")
20205 e = b.getSelection(),
20206 c = e && e.getRanges();
20213 ….appendBogus() : c[0].fixBlock(1, m.enterMode == CKEDITOR.ENTER_P ? "p" : "div"), e.selectRanges(c)
20215 for (var m = e.createBookmarks(!0), f = [], k = {}, c = c.createIterator(), h = 0;
20306 e.selectBookmarks(m);
20310 var e = m.contains(v, 1),
20312e && c.contains(e) ? this.setState(e.is(this.type) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF)…
20330 var e = m.data.domEvent.getKey(),
20332 if ("wysiwyg" == b.mode && e in {
20339 var k = 8 == e,
20349 e = f.clone();
20352 … a.getParent()) && a.is("li") && (a = A(a)) ? (c = a, a = a.getPrevious(u), e.moveToPosition(a && …
20353 …d.reset(), d.evaluator = G, a = d.previous()), c = a, e.moveToElementEditEnd(c), e.moveToPosition(
20354 if (c) C(b, e, f), m.cancel();
20364 if (1 == g && (e.optimize(), !e.startContainer.equals(c))) {
20365 … for (c = e.startContainer; c.is(CKEDITOR.dtd.$inline);) p = c, c = c.getParent();
20366 p && e.moveToPosition(p, CKEDITOR.POSITION_AFTER_END)
20368 …2 == g && (e.moveToPosition(e.endPath().block, CKEDITOR.POSITION_BEFORE_END), f.endPath().block &&…
20369 C(b, e, f);
20372 …tEditStart(a), f.select()) : (f = f.clone(), f.moveToElementEditStart(a), C(b, e, f)), m.cancel());
20578 e = a.editor,
20581 d && e.fire("saveSnapshot");
20584 e.getSelection().selectRanges([b]);
20586 d && e.fire("saveSnapshot")
20613 var e;
20616 (e = P(b)) && "false" == e.getAttribute("contenteditable") && (b = e);
20618 e = w(a, b, !c);
20620 …n(e) && e.is(a.triggers) && e.is(ma) && (!w(a, e, !c) || (f = w(a, e, !c)) && n(f) && f.is(a.trigg…
20663 for (var e = a.tabuList.length; e--;)
20664 if (d[b].hasAttribute(a.tabuList[e])) return !0;
20682 e = a.triggerOffset;
20694e) ? (a = a.inInlineMode || 0 === b.scroll.y ? C : x, new z([null, c, I, M, a])) : f && c.size.bot…
20701 e = O(a);
20702 if (!e) return null;
20703 r(a, e);
20704 var b = Math.min(b, 0 | e.size.outerHeight / 2),
20707 if (q(c.y, e.size.top - 1, e.size.top + b)) h = !1;
20709 e.size.bottom - b, e.size.bottom + 1)) h = !0;
20711 if (u(e) || na(a, e, h) || e.getParent().is(fa)) return null;
20712 var g = w(a, e, !h);
20717 f = [g, e][h ? "reverse" : "concat"]().concat([T, M])
20719e.equals(a.editable[h ? "getLast" : "getFirst"](a.isRelevant)) ? (H(a), h && q(c.y, e.size.bottom …
20721 …]().concat([h ? da : I, M, k, e.equals(a.editable[h ? "getLast" : "getFirst"](a.isRelevant)) ? h ?…
20726 …for (var e = c.getDocumentPosition(), f = {}, k = {}, h = {}, g = {}, l = y.length; l--;) f[y[l]] …
20728 g.top = e.y - (d ? 0 : a.view.scroll.y);
20729 g.left = e.x - (d ? 0 : a.view.scroll.x);
20787 for (var e = b, f = b, k = 0, h = !1, g = !1, l = a.view.pane.height,
20789 h || (h = c(e, b));
20791 !h && 0 < p.y - k && (e = d(a, {
20802 return new z([e, f, null, null])
20827 e, f, k;
20861 var e = b.view.editable,
20863 …d > e.left - f.x && d < e.right - f.x && c > e.top - f.y && c < e.bottom - f.y || (clearTimeout(k)…
20890 …= a.mode && (b.line.detach(), t.webkit && (b.hiddenMode = 1, clearTimeout(e), e = setTimeout(funct…
20903 var c, d, e, f;
20909 for (c = a.document.getElementsByTag(f), e = c.count(); e--;)
20910 if ((d = c.getItem(e)).data("cke-magicline-hot")) {
20972 var e = c.doc,
20975 var k = a(e, b);
20976 d && A(c, k) && (f.hide(), k = a(e, b), f.show());
20985 e, f, k;
20992 e = k.upper;
20994 if (V(a, e, f)) return k.set(T,
20996 if (e && b.contains(e))
20997 for (; !e.getParent().equals(b);) e = e.getParent();
20998 else e = b.getFirst(function(b) {
21006 if (!e || !f) return null;
21007 r(a, e);
21009 if (!q(a.mouse.y, e.size.top, f.size.bottom)) return null;
21010 …f && !f.equals(e) && (g = e.getNext(a.isRelevant));) h = Math.abs(ka(a, e, g) - a.mouse.y), h < b …
21022 e;
21023 if (e = b) {
21024 e = b.upper;
21026e = !e || !f || u(f) || u(e) || f.equals(e) || e.equals(f) || f.contains(e) || e.contains(f) ? !1 …
21028 return e ? b : null
21038 for (var e = [], f = ["style", "className"], b = 0; b < f.length; b++) {
21040 c && (c = new CKEDITOR.dom.element(c), e.push([c, c.nextSibling]), c.remove())
21042 return e
21045 function t(a, e) {
21046 if (a && a.type == CKEDITOR.NODE_ELEMENT && "form" == a.getName() && 0 < e.length)
21047 for (var f = e.length - 1; 0 <= f; f--) {
21048 var b = e[f][0],
21049 c = e[f][1];
21054 function r(a, e) {
21058 e || (b["class"] = c.className ||
21061 e || (c.style.cssText = "position: static; overflow: visible");
21066 function u(a, e) {
21069 "class" in e && (b.className = e["class"]);
21070 "inline" in e && (b.style.cssText = e.inline);
21076 var e = CKEDITOR.instances,
21078 for (f in e) {
21079 var b = e[f];
21088 function e() {
21119 c.on("resize", e);
21143 e();
21151 c.removeListener("resize", e);
21222 function e(a) {
21255 e(a.lang.pagebreak.alt), !0);
21299 attributes: e(a.lang.pagebreak.alt)
21324e = CKEDITOR.tools.keystrokeToString(c.common.keyboard, a.getCommandKeystroke(CKEDITOR.env.ie ? a.…
21326 …etext.pasteNotification.replace(/%1/, '\x3ckbd aria-label\x3d"' + e.aria + '"\x3e' + e.display + "…
21354 function l(a, f, e) {
21356 …h ? e() : (a = CKEDITOR.getUrl(a.config.pasteFromWordCleanupFile || f + "filter/default.js"), CKED…
21371 var e = 0,
21379 e = 1;
21405 if (c && (e || d) && (!1 !== a.fire("pasteFromWord", g) || e)) {
21409 …else if (!a.config.pasteFromWordPromptCleanup || e || confirm(a.lang.pastefromword.confirmCleanup)…
21411 e = 0
21453 e;
21454 …CKEDITOR.env.ie && (window._cke_htmlToLoad = a.dataValue, e = "javascript:void( (function(){docume…
21459 e);
21460 …CKEDITOR.env.ie || CKEDITOR.env.gecko || (e = c.document, e.open(), e.write(a.dataValue), e.close(…
21507 …RegExp("^(?:" + a.config.removeFormatTags.replace(/,/g, "|") + ")$", "i")), e = a._.removeAttribut…
21515 for (var c = a.elementPath(b), e = c.elements, d = 1, g;
21516 …(g = e[d]) && !g.equals(c.block) && !g.equals(c.blockLimit); d++) h.test(g.getName()) && f(a, g) &…
21525 … b.remove(1) : (b.removeAttributes(e), a.fire("removeFormatCleanup", b))), b = k;
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 …for (c = b = e = f = ""; d = a.pop();) h = a.length ? "," : "", c += ".cke_show_blocks " + d + g +…
21627 …ground-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(b, e + "{background-posit…
21729 var e = parseInt(this.getValue(), 10);
21730 c[!e || 0 >= e ? "addClass" : "removeClass"]("cke_show_border")
21750 var a = e && this.equals(CKEDITOR.document.getActive());
21759 a.addMode("source", function(e) {
21777 e()
21788 var e = CKEDITOR.env.ie && 9 == CKEDITOR.env.version
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 …
21941 e = CKEDITOR.env;
21946 wysiwyg: !(e.ie && (8 > e.version || e.quirks))
21980 var e = a.scayt,
21982e && (m = e.getSelectionNode()) && (l = c.menuGenerator(a, m), e.showBanner("." + a.contextMenu._.…
21996 …b = a.config.scayt_contextMenuItemsOrder.split("|"), e = 0; e < b.length; e++) b[e] = "scayt_" + b…
21998 for (e = 0; e < b.length; e++) a.addMenuGroup(b[e], e - 10);
22078 e = function() {
22084 CKEDITOR.plugins.scayt && !a.scayt && setTimeout(e, 0);
22096 d ? a.config.scayt_inlineModeImmediateMarkup ? e() : (a.on("blur", function() {
22098 }), a.on("focus", e), a.focusManager.hasFocus && e()) : e();
22113 e = !1,
22116 …ut" === b.data.name && (h = !1, f = !0), "language" === b.data.name && (f = e = !0), a.fire("reloa…
22120 language: e
22147 e = b.data && b.data.timeout,
22155 }, e || 0)
22224e = "all options lang ignore-all-caps-words ignore-domain-names ignore-words-with-mixed-cases igno…
22233 if (!g(e, c) || p && g(f, function(a) {
22248 e = a._.elementsPath && a._.elementsPath.filters,
22259 e && e.push(g);
22392 e = {},
22412 …}), e[l] = CKEDITOR.TRISTATE_OFF, "on" === a.config.scayt_moreSuggestions && (a.addMenuItem("scayt…
22417 return e
22440 e = {},
22449 }), e = this.buildSuggestionMenuItems(a, CKEDITOR.plugins.scayt.suggestions,
22450e = c.getAttribute(d.getGraytNodeAttributeName()), d.getGraytNodeRuleAttributeName ? (k = c.getAtt…
22452 phrase: e,
22454 }), e = this.buildSuggestionMenuItems(a, CKEDITOR.plugins.scayt.suggestions, l));
22456 "off" == a.config.scayt_contextCommands) return e;
22457e[h] = "undefined" != typeof b[h].state ? b[h].state : CKEDITOR.TRISTATE_OFF, "function" !== typeo…
22466 return e
22472 var e = {};
22473 e[c] = a;
22474 b.replaceSelectionNode(e);
22549 function e(a) {
22589 g = e(f)
22591 c.alarmCompatibilityMessage(), delete f.charsToObserve, g = e(f)
22606 e = c.getCustomData(d.charName);
22607 e && (e.$ = d.node, c.setCustomData(d.charName, e))
22730 …for (var b, h, d, e = 0, n = a.length; e < n; e++)(b = a[e], c.blockless && b.element in CKEDITOR.…
22731e + 1E3 * (d == CKEDITOR.STYLE_OBJECT ? 1 : d == CKEDITOR.STYLE_BLOCK ? 2 : 3), f[h] = b, k.push(b…
22750 var a, b, c, d, e, f;
22751 e = 0;
22752 …for (f = k.length; e < f; e++) a = k[e], b = a._name, d = a._.type, d != c && (this.startGroup(g["…
22769 for (var h = 0, d = a.length, e; h < d; h++) {
22770 e = a[h];
22772 if (f[g].checkElementRemovable(e, !0, c)) {
22790 e = d._.type;
22791 d.checkApplicable(a, c, c.activeFilter) ? b[e]++ : this.hideItem(h);
22824 var e = d.getSelection(),
22826 … if (b = (new CKEDITOR.dom.elementPath(e.getCommonAncestor(), e.root)).contains({
22830 var e = d.createRange(),
22842 …(a) a = new CKEDITOR.dom.element(a), e.moveToElementEditStart(a), e.checkStartOfBlock() && e.check…
22846 e.moveToElementEditStart(f)
22848 e.select(!0);
22876 …for (var d = !1 !== c.config.enableTabKeyTools, e = c.config.tabSpaces || 0, b = ""; e--;) b += " …
22893 f, c, d, e, b, a;
22916 … a > g && (!d || !e || a < e) ? (d = b, e = a) : d || 0 !== a || (d = b, e = a)
22922 …for (var g = void 0 === h ? this.getTabIndex() : h, f, c, d, e = 0, b, a = this.getDocument().getB…
22936 b > e && (d = a, e = b)
22942 b < g && (!d || b > e) && (d = a, e = b)
22959 var e = a.lang.table;
22992 e = a.editable();
22993 1 != b.getChildCount() || b.is("td", "th") || b.equals(e) || (d = b);
23002 label: e.toolbar,
23010 label: e.menu,
23016 label: e.deleteTable,
23042e.length || b.type != CKEDITOR.NODE_ELEMENT || !F.test(b.getName()) || b.getCustomData("selected_c…
23044 var e = [],
23046 if (!d) return e;
23052 }, !0)) && b(h) && e.push(h);
23060 …("selected_cell") && b(l) && (CKEDITOR.dom.element.setMarker(a, l, "selected_cell", !0), e.push(l))
23064 return e
23068e = c.getAscendant("table"), c = c.getDocument(), a = b[0].getParent(), g = a.$.rowIndex, b = b[b.…
23069 …CKEDITOR.tools.buildTableMap(e), e = b[g], g = f ? b[g - 1] : b[g + 1], b = b[0].length, c = c.cre…
23071 …1 < e[k].rowSpan && g && e[k] == g[k] ? (h = e[k], h.rowSpan += 1) : (h = (new CKEDITOR.dom.elemen…
23083 e = CKEDITOR.tools.buildTableMap(c),
23090 … for (var k = e[d], h = new CKEDITOR.dom.element(c.$.rows[d]), l = 0; l < k.length; l++) {
23093 …1 == m.$.rowSpan ? m.remove() : (--m.$.rowSpan, n == d && (n = e[d + 1], n[l - 1] ? m.insertAfter(…
23098 e = c.$.rows;
23100 a = new CKEDITOR.dom.element(e[g +
23101 1] || (0 < a ? e[a - 1] : null) || c.$.parentNode);
23111 var e = f[c],
23112 b = b + e.colSpan;
23113 if (e == d.$) break
23120 var e = v(d[c]);
23121 if (f ? e < b : e > b) b = e
23128e = w(b, 1), b = w(b), a = f ? e : b, g = CKEDITOR.tools.buildTableMap(c), c = [], e = [], b = [],…
23129 …for (h = 0; h < k; h++) c[h] && (1 < c[h].colSpan && e[h] == c[h] ? (g = c[h], g.colSpan += 1) : (…
23151 e = c[0],
23153 c = e.getAscendant("table"),
23160 …0, p = g[m].length; n < p; n++) void 0 === k && g[m][n] == e.$ && (k = n), g[m][n] == a.$ && (h = …
23162e = new CKEDITOR.dom.element(c.$.rows[n]), a = new CKEDITOR.dom.element(a[m]), a.$ && (1 == a.$.co…
23186 e;
23188 var a = 0;e = b.length - 1;
23193 e = h;
23196 …(a = a.getPrevious()) ? e = a.getLast() : (a = b[e].getParent(), e = (a = a.getNext()) ? a.getChil…
23200e ? p(e, !0) : c && (f[0].moveToPosition(c, CKEDITOR.POSITION_BEFORE_START), f[0].select(), c.remo…
23226 e;
23227 …if ((f ? 1 != c.length : 2 > c.length) || (e = d.getCommonAncestor()) && e.type == CKEDITOR.NODE_E…
23230 e = d.getAscendant("table");
23231 var g = CKEDITOR.tools.buildTableMap(e),
23275 b = new CKEDITOR.dom.nodeList(e.$.rows);
23277 for (f = c - 1; 0 <= f; f--) e = b.getItem(f), e.$.cells.length || (e.remove(), c++);
23287 e = c.getAscendant("table"),
23288 a = CKEDITOR.tools.buildTableMap(e),
23295 …for (var h = Math.floor(h / 2), c = g + l, e = new CKEDITOR.dom.element(e.$.rows[c]), a = A(a, c),…
23296 if (m = a[g], m.parentNode == e.$ &&
23301 m || e.append(c)
23303 …for (h = l = 1, e = c.clone(), e.insertAfter(c), e.append(c = b.clone()), m = A(a, g), k = 0; k < …
23318 e = c.getAscendant("table"),
23319 e = CKEDITOR.tools.buildTableMap(e),
23320 a = A(e, c.$.rowIndex, b),
23324 for (var g = c = 1, k = [], h = 0; h < e.length; h++) {
23325 var l = e[h];
23329 for (e = 0; e < k.length; e++) k[e].colSpan++
23331 e = b.clone();
23332 e.insertAfter(b);
23333 e.appendBogus();
23335 e.$.colSpan = g;
23337 1 == g && e.removeAttribute("colSpan");
23338 return e
23362 e = CKEDITOR.tools.style.parse;
23371 e.background(a.styles.background).color
23374 … a.styles["background-color"] = e.background(a.styles.background).color
23712 e = CKEDITOR.tools.buildTableMap(c),
23723 for (c = 0; c < e[g].length; c++)
23724 if (a.$ === e[g][c]) {
23727 } for (c = 0; c < e[h].length; c++)
23728 if (b.$ === e[h][c]) {
23733 for (g = l; g <= p; g++) d = new CKEDITOR.dom.element(e[c][g]),
23762 d, e;
23763 …for (e = 0; e < b.length; e++) d = a.createRange(), d.setStartBefore(b[e]), d.setEndAfter(b[e]), c…
23776 var e;
23777 …(e = m.active && !m.first) && !(e = b) && (e = a.getSelection().getRanges(), e = 1 < d.length || e
23778 if (e) m.first = b || d[0], m.dirty = b ? !1 : 1 !== d.length;
23814 return !a.getAscendant("table", !0) && a.getDocument().equals(e.document)
23817 function d(a, d, e, f) {
23818 …TOR.MOUSE_BUTTON_LEFT && f) && ("mouseup" !== a.name || c(a.data.getTarget()) || b(e, f)) ? !1 : !0
23821 var e = a.editor || a.listenerData.editor,
23822 g = e.getSelection(1),
23823 h = J(e),
23839 d(a, g, h, k) && A(e, !0);
23843 editor: e
23845 (f || k) && L(e, f || k, a);
23846 …tMouseButton(a) === CKEDITOR.MOUSE_BUTTON_LEFT && (c(a.data.getTarget()) || b(h, k)) && K(e), m = {
23866 e = d.createBookmarks(),
23884 d.selectBookmarks(e);
23943 e;
23944 for (e = 0; e < c[d].length; e++)
23945 if ((new CKEDITOR.dom.element(c[d][e])).equals(b)) {
23946 b = e;
23958 …for (var d = this.cells.first.$.cellIndex, e = this.cells.last.$.cellIndex, g = c ? [] : this.cell…
23960 return c ? !0 : a.$.cellIndex >= d && a.$.cellIndex <= e
23967 return a >= e && a <= g
23971 …for (var c = this.cells, d = c.all, e = r(c.first), g = r(c.last), c = 0; c < a; c++) d = d.concat…
23998 e = d.getSelection(),
23999 g = v(e),
24001 k = e.isInTable(!0) && this.isBoundarySelection(e),
24003 …!g.length || 1 === g.length && !I(e.getRanges()[0]) && !k || k && !h || (g = g[0].getAscendant("ta…
24004 f = new q(v(e, g)), d.once("afterPaste", function() {
24012 …}), h ? (a.stop(), k ? (f.insertRow(1, 1 === k, !0), e.selectElement(f.rows.first)) : (f.emptyCell…
24041 var d, e = C(a.cells.first),
24051 …s(d.getParent()) ? f.insertAfter(d) : 0 < e ? k.$.cells[e] ? f.insertAfter(new CKEDITOR.dom.elemen…
24073 function c(b, e) {
24074 if (!e.length) return null;
24076 g = CKEDITOR.dom.range.mergeRanges(e);
24201 var d = a.undoManager = new e(a),
24266 var e = CKEDITOR.plugins.undo.UndoManager = function(a) {
24275 e.prototype = {
24277 var c = e.getKeyGroup(a),
24287 return e.getKeyGroup(a) != this.previousKeyGroup
24312 var e = d.editable();
24313 if (!e || "ready" != e.status) return !1;
24314 e = this.snapshots;
24321 e.splice(this.index + 1, e.length - this.index - 1);
24322 e.length == this.limit && e.shift();
24323 this.index = e.push(b) - 1;
24426 e.navigationKeyCodes = {
24436 e.keyGroups = {
24440 e.isNavigationKey = function(a) {
24441 return !!e.navigationKeyCodes[a]
24443 e.getKeyGroup = function(a) {
24444 var b = e.keyGroups;
24447 e.getOppositeKeyGroup = function(a) {
24448 var b = e.keyGroups;
24451 e.ieFunctionalKeysBug = function(a) {
24452 return CKEDITOR.env.ie && e.getKeyGroup(a) == e.keyGroups.FUNCTIONAL
24478 e = a[c];
24479 …if (d.startOffset != e.startOffset || d.endOffset != e.endOffset || !CKEDITOR.tools.arrayCompare(d…
24480 e.end)) return !1
24497 …b) || this.keyEventsStack.push(b), this.lastKeydownImage = new f(a.editor), e.isNavigationKey(b) ||
24515 …if (!(e.ieFunctionalKeysBug(a) && this.lastKeydownImage && this.lastKeydownImage.equalsContent(new…
24517 else if (e.isNavigationKey(a)) this.onNavigationKey(!0)
24536 if (e.ieFunctionalKeysBug(a.data.getKey())) c.onInput()
24633 e = CKEDITOR.tools.bind(this.hideVisible, this),
24637 b.attachListener(this.winTop, "resize", e);
24638 b.attachListener(this.win, "scroll", e);
24680 e, g, f, h, k = CKEDITOR.tools.eventsBuffer(50, function() {
24681 …romPoint(f, h)) && g.nodeType && (e = new CKEDITOR.dom.element(g), d.traverseSearch(e), isNaN(f + …
24711 var e = a.getUniqueId();
24712 e in c ? c[e].type |= b : c[e] = {
24735 function a(a, c, e, g, f) {
24736 for (var h = 0, k; f(e);) {
24737 e += g;
24739 if (k = this.doc.$.elementFromPoint(c, e))
24774 … for (var a = this.editable.getElementsByTag("*"), d = 0, b, c, e; b = a.getItem(d++);)
24776 for (e in this.lookups)(c = this.lookups[e](b)) && this.store(b, c);
24797 return function(e, g) {
24802 if (b = Math.abs(e - a[f][h]), d.length) {
24866 var b, c, e;
24868 for (e in this.visible)
24869 if (this.visible[e].getCustomData("hash") !== this.hash) {
24870 c = this.visible[e];
24873 for (e in this.hidden)
24874 if (this.hidden[e].getCustomData("hash") !== this.hash) {
24875 this.showLine(c = this.hidden[e]);
24887 e = {};
24888e.width = b.siblingRect ? Math.max(b.siblingRect.width, b.elementRect.width) : b.elementRect.width;
24889e.top = this.inline ? c + this.winTopScroll.y - this.rect.relativeY : this.rect.top + this.winTopS…
24890 …if (e.top - this.winTopScroll.y < this.rect.top || e.top - this.winTopScroll.y > this.rect.bottom)…
24892e.left = b.elementRect.left - this.rect.relativeX : (0 < b.elementRect.left ? e.left = this.rect.l…
24893 e.left += this.winTopScroll.x;
24894 for (var g in e) e[g] = CKEDITOR.tools.cssLength(e[g]);
24895 return e
24943 function e(a) {
24978 var d = a.getFirst(e),
24979 c = a.getLast(e);
25033 g, e;
25034 c.contains(a) && (g = a.getHtml(), e = !0);
25037 … - 1), CKEDITOR.POSITION_BEFORE_END), d.getSelection().selectRanges([f])) : e && (c ? f.setStartAt…
25078 function g(a, b, c, d, e) {
25104 e && this.setData(e);
25125 function e() {
25142 d = b.once("ok", e, null, null, 20);
25151 else e()
25152 }, null, null, 999), h.edit(), f.removeListener()) : e()
25165 e, f;
25167 if (e =
25168 d[f], e === a.name) return b.upcasts[e].call(this, a, c);
25173 var e = CKEDITOR.tools.getIndex(a._.upcasts, function(a) {
25176 0 > e && (e = a._.upcasts.length);
25177 a._.upcasts.splice(e, 0, [CKEDITOR.tools.bind(b, c), c.name, d])
25179 var e = b.upcast,
25181 e && ("string" == typeof e ? d(c, b, f) : d(e, b, f))
25202 d, e, f, h;
25210 for (e = l.count(); d < e; d++) {
25303 e = a.parent;
25307 return z(e, b, c)
25322 var e = a.editor;
25323 e.fire("lockSnapshot");
25324e.setActiveFilter(d.filter), e.setActiveEnterMode(d.enterMode, d.shiftEnterMode)) : (d || b.focuse…
25325 e.fire("unlockSnapshot")
25342 var e = c.data.target;
25343 …g.isDomDragHandler(e) && (e = a.getByElement(e), c.data.dataTransfer.setData("cke/widget-id", e.id…
25346 var e = c.data.dataTransfer,
25347 f = e.getData("cke/widget-id"),
25348 h = e.getTransferType(b),
25349 e = b.createRange();
25350e.setStartBefore(f.wrapper), e.setEndAfter(f.wrapper), c.data.dragRange = e, delete CKEDITOR.plugi…
25394 e, f;
25397 e = d instanceof CKEDITOR.dom.element ? a.getByElement(d) : null;
25399e && (e.inline && d.type == CKEDITOR.NODE_ELEMENT && d.hasAttribute("data-cke-widget-drag-handler"…
25400 …g.getNestedEditable(e.wrapper, d) ? e = null : (c.data.preventDefault(), CKEDITOR.env.ie || e.focu…
25403 f && e && e.wrapper && (f = 0, e.focus())
25407 e && e.wrapper && c.contains(e.wrapper) && (e.focus(), e = null)
25423 e;
25424 c ? e = c.fire("key", {
25426e = !1) : 8 == c || 46 == c ? (e = d.editor.getSelection().getRanges(), d = e[0], e = !(1 == e.len…
25427 return e
25452 e = a.widgetHoldingFocusedEditable;
25453 e ? e === d &&
25454e.focusedEditable.equals(c) || (n(a, e, null), d && c && n(a, d, c)) : d && c && n(a, d, c)
25470 var e = CKEDITOR.tools.getNextNumber(),
25472 b.data.downcastingSessionId = e;
25473 c[e] = f;
25479 var e = w(b);
25482e.parent.attributes["data-cke-white-space-last"] && (e.value = e.value.replace(/&nbsp;$/g, " "))
25559 e = null;
25568 e = a;
25572 var f = a.focused !== e,
25577 f && e && (g = a.editor.checkDirty(), a.focused = e, a.fire("widgetFocused", {
25578 widget: e
25579 }), e.setFocused(!0), !g && a.editor.resetDirty());
25589 var e = a.data.classes || {},
25592 … for (e = CKEDITOR.tools.clone(e); f = b.pop();) c ? e[f] || (d = e[f] = 1) : e[f] && (delete e[f],
25594 d && a.setData("classes", e)
25605 e = CKEDITOR.env.edge && 16 <= CKEDITOR.env.version;
25607 var f = !c.blockless && !CKEDITOR.env.ie || e ? "div" : "span",
25608 e = d.createElement(f),
25615 e.setStyles({
25621 e.setStyle("ltr" == c.config.contentsLangDirection ? "left" :
25626e.setHtml('\x3cspan data-cke-copybin-start\x3d"1"\x3e​\x3c/span\x3e' + c.editable().getHtmlFromRan…
25629 h.append(e);
25636 g.selectNodeContents(e);
25729 e = this.repository.liner,
25732 … CKEDITOR.tools.isEmpty(e.visible) || (c = d.getRange(c[0]), this.focus(), f.fire("drop", {
25737 e.hideVisible();
25745 e = this.repository.liner,
25756 k.length && (e.prepare(p, m), e.placeLine(k[0]), e.cleanup())
25933 c, d, e;
25934 …for (d in b) c = b[d], (e = c.button) && a.ui.addButton && a.ui.addButton(CKEDITOR.tools.capitaliz…
25935 label: e,
25993 var c, d, e = this.instances;
25996 …for (var e = d.count(), f = 0; f < e; ++f)(c = this.getByElement(d.getItem(f), !0)) && this.destro…
25998 for (d in e) c = e[d], this.destroy(c, a)
26013 var e = a(b);
26014 if (!d && !e) {
26016 do b = b.getParent(); while (b && !b.equals(f) && !(e = a(b)))
26018 return this.instances[e] || null
26053 d, e;
26061 (e = A(d, a.getName())) && u(a);
26062 c = new CKEDITOR.dom.element(e ? "span" : "div");
26063 c.setAttributes(y(e, b));
26074 (e = A(d, a.name)) && u(a);
26075 c = new CKEDITOR.htmlParser.element(e ? "span" : "div", y(e, b));
26129 var d, e;
26132 }), e = a.on("ok", function() {
26133 var d, e = b.on("data", function(a) {
26139 e.removeListener();
26143 e.removeListener()
26200 var e = a;
26201 for (a in e) c[a] !== e[a] && (d = 1, c[a] = e[a])
26297 function e(a, b, c) {
26314 e.prototype = {
26384 CKEDITOR.event.implementOn(e.prototype);
26410 CKEDITOR.plugins.notificationAggregator = e;
26433 e, n;
26436 … if (e = k.getFile(n), !l.supportedTypes || h.isTypeSupported(e, l.supportedTypes)) {
26437 var m = l.fileToElement(e);
26438 e = b.create(e, void 0, l.loaderType);
26439e[g](l.uploadUrl, l.additionalRequestParameters), CKEDITOR.fileTools.markElement(m, c, e.id), "loa…
26451 g, e;
26456 … || !1 !== d[b](k)) e = "cke_upload_" + k.status, d.wrapper && e != g && (g && d.wrapper.removeCla…
26469 e, h;
26473 b && (e = g.createBookmark());
26479 … b ? (g.moveToBookmark(e), g.select()) : a.getSelection().selectBookmarks(h)
26539 e += 1;
26540 return "image-" + CKEDITOR.tools.array.map(a, l).join("") + "-" + e + "." + c
26542 var e = 0;
26551 e = a.getUploadUrl(c.config,
26553 e && (a.addUploadWidget(c, "uploadimage", {
26555 uploadUrl: e,
26587 …+?);/i)) && h[1] || "jpg", d = c.uploadRepository.create(d, n(h)), d.upload(e), a.markElement(g, "…