2 Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.md or http://ckeditor.com/license
7 var c = this instanceof CKEDITOR.ui.dialog.checkbox;
8 b.hasAttribute(this.id) && (b = b.getAttribute(this.id), c ? this.setValue(e[this.id]["true"] == b.toLowerCase()) : this.setValue(b))
12 var c = "" === this.getValue(),
13 a = this instanceof CKEDITOR.ui.dialog.checkbox,
15 c ? b.removeAttribute(this.att || this.id) : a ? b.setAttribute(this.id, e[this.id][d]) : b.setAttribute(this.att || this.id, d)
27 CKEDITOR.dialog.add("iframe", function(b) {
28 var f = b.lang.iframe,
30 e = b.plugins.dialogadvtab;
36 this.fakeImage = this.iframeNode = null;
37 var a = this.getSelectedElement();
38 a && a.data("cke-real-element-type") && "iframe" == a.data("cke-real-element-type") && (this.fakeImage = a, this.iframeNode = a = b.restoreRealElement(a), this.setupContent(a))
42 a = this.fakeImage ? this.iframeNode : new CKEDITOR.dom.element("iframe");
45 this.commitContent(a, c, d);
46 a = b.createFakeElement(a, "cke_iframe", "iframe", !0);
49 this.fakeImage ? (a.replace(this.fakeImage), b.getSelection().selectElement(a)) : b.insertElement(a)
63 validate: CKEDITOR.dialog.validate.notEmpty(f.noUrl),
72 requiredContent: "iframe[width]",
74 labelLayout: "vertical",
76 validate: CKEDITOR.dialog.validate.htmlLength(a.invalidHtmlLength.replace("%1", a.width)),
82 requiredContent: "iframe[height]",
84 labelLayout: "vertical",
86 validate: CKEDITOR.dialog.validate.htmlLength(a.invalidHtmlLength.replace("%1", a.height)),
92 requiredContent: "iframe[align]",
96 [a.alignLeft, "left"],
101 [a.alignMiddle, "middle"],
102 [a.alignBottom, "bottom"]
105 labelLayout: "vertical",
107 setup: function(a, b) {
108 c.apply(this, arguments);
110 var d = b.getAttribute("align");
111 this.setValue(d && d.toLowerCase() || "")
114 commit: function(a, b, c) {
115 d.apply(this, arguments);
116 this.getValue() && (c.align = this.getValue())
121 widths: ["50%", "50%"],
125 requiredContent: "iframe[scrolling]",
132 requiredContent: "iframe[frameborder]",
139 widths: ["50%", "50%"],
143 requiredContent: "iframe[name]",
150 requiredContent: "iframe[title]",
151 label: a.advisoryTitle,
158 requiredContent: "iframe[longdesc]",
163 }, e && e.createAdvancedTab(b, {