2 Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.md or http://ckeditor.com/license
5 CKEDITOR.dialog.add("form", function(a) {
14 title: a.lang.forms.form.title,
19 var b = this.getParentEditor().elementPath().contains("form", 1);
20 b && (this.form = b, this.setupContent(b))
25 c && (b = this.getParentEditor(), a = b.document.createElement("form"), a.appendBogus());
26 c && b.insertElement(a);
31 this.setValue(b.getAttribute(this.id) ||
36 this.getValue() ? a.setAttribute(this.id, this.getValue()) : a.removeAttribute(this.id)
38 this.foreach(function(c) {
39 d[c.id] && (c.setup = a, c.commit = e)
44 label: a.lang.forms.form.title,
45 title: a.lang.forms.form.title,
50 label: a.lang.common.name,
54 this.setValue(a.data("cke-saved-name") || a.getAttribute("name") || "")
57 this.getValue() ? a.data("cke-saved-name", this.getValue()) :
58 (a.data("cke-saved-name", !1), a.removeAttribute("name"))
63 label: a.lang.forms.form.action,
68 widths: ["45%", "55%"],
72 label: a.lang.common.id,
78 label: a.lang.forms.form.encoding,
85 ["multipart/form-data"],
86 ["application/x-www-form-urlencoded"]
91 widths: ["45%", "55%"],
95 label: a.lang.common.target,
100 [a.lang.common.notSet, ""],
101 [a.lang.common.targetNew, "_blank"],
102 [a.lang.common.targetTop, "_top"],
103 [a.lang.common.targetSelf, "_self"],
104 [a.lang.common.targetParent, "_parent"]
109 label: a.lang.forms.form.method,