diff options
Diffstat (limited to 'plugins/html5video/dialogs/html5video.js')
| -rwxr-xr-x | plugins/html5video/dialogs/html5video.js | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/plugins/html5video/dialogs/html5video.js b/plugins/html5video/dialogs/html5video.js new file mode 100755 index 0000000..dfb7369 --- /dev/null +++ b/plugins/html5video/dialogs/html5video.js @@ -0,0 +1,48 @@ +CKEDITOR.dialog.add("html5video", function(b) { + return { + title: b.lang.html5video.title, minWidth: 500, minHeight: 100, contents: [{ + id: "info", label: b.lang.html5video.infoLabel, elements: [{ + type: "vbox", padding: 0, children: [{ + type: "hbox", widths: ["365px", "110px"], align: "right", children: [{ type: "text", id: "url", label: b.lang.html5video.allowed, required: !0, validate: CKEDITOR.dialog.validate.notEmpty(b.lang.html5video.urlMissing), setup: function(a) { this.setValue(a.data.src) }, commit: function(a) { a.setData("src", this.getValue()) } }, + { type: "button", id: "browse", style: "display:inline-block;margin-top:14px;", align: "center", label: b.lang.common.browseServer, hidden: !0, filebrowser: "info:url" }] + }] + }, { type: "checkbox", id: "responsive", label: b.lang.html5video.responsive, setup: function(a) { this.setValue(a.data.responsive) }, commit: function(a) { a.setData("responsive", this.getValue() ? "true" : "") } }, { + type: "vbox", padding: 0, children: [{ + type: "hbox", widths: ["365px", "110px"], align: "right", children: [{ + type: "text", id: "poster", label: b.lang.html5video.poster, + setup: function(a) { this.setValue(a.data.poster) }, commit: function(a) { a.setData("poster", this.getValue()) } + }, { type: "button", id: "browseposter", style: "display:inline-block;margin-top:14px;", align: "center", label: b.lang.common.browseServer, hidden: !0, filebrowser: { action: "Browse", target: "info:poster", url: b.config.filebrowserImageBrowseUrl } }] + }] + }, { + type: "checkbox", id: "controls", label: b.lang.html5video.controls, setup: function(a) { this.setValue(a.data.controls) }, commit: function(a) { + a.setData("controls", this.getValue() ? + "true" : "") + } + }, { type: "hbox", id: "size", children: [{ type: "text", id: "width", label: b.lang.common.width, setup: function(a) { a.data.width && this.setValue(a.data.width) }, commit: function(a) { a.setData("width", this.getValue()) } }, { type: "text", id: "height", label: b.lang.common.height, setup: function(a) { a.data.height && this.setValue(a.data.height) }, commit: function(a) { a.setData("height", this.getValue()) } }] }, { + type: "hbox", id: "alignment", children: [{ + type: "radio", id: "align", label: b.lang.common.align, items: [[b.lang.common.alignCenter, + "center"], [b.lang.common.alignLeft, "left"], [b.lang.common.alignRight, "right"], [b.lang.common.alignNone, "none"]], "default": "center", setup: function(a) { a.data.align && this.setValue(a.data.align) }, commit: function(a) { a.setData("align", this.getValue()) } + }] + }] + }, { + id: "Upload", hidden: !0, filebrowser: "uploadButton", label: b.lang.html5video.upload, elements: [{ type: "file", id: "upload", label: b.lang.html5video.btnUpload, style: "height:40px", size: 38 }, { + type: "fileButton", id: "uploadButton", filebrowser: "info:url", label: b.lang.html5video.btnUpload, + "for": ["Upload", "upload"] + }] + }, { + id: "advanced", label: b.lang.html5video.advanced, elements: [{ + type: "vbox", padding: 10, children: [{ + type: "hbox", widths: ["33%", "33%", "33%"], children: [{ type: "radio", id: "autoplay", label: b.lang.html5video.autoplay, items: [[b.lang.html5video.yes, "yes"], [b.lang.html5video.no, "no"]], "default": "no", setup: function(a) { a.data.autoplay && this.setValue(a.data.autoplay) }, commit: function(a) { a.setData("autoplay", this.getValue()) } }, { + type: "radio", id: "loop", label: b.lang.html5video.loop, items: [[b.lang.html5video.yes, + "yes"], [b.lang.html5video.no, "no"]], "default": "no", setup: function(a) { a.data.loop && this.setValue(a.data.loop) }, commit: function(a) { a.setData("loop", this.getValue()) } + }, { type: "radio", id: "allowdownload", label: b.lang.html5video.allowdownload, items: [[b.lang.html5video.yes, "yes"], [b.lang.html5video.no, "no"]], "default": "no", setup: function(a) { a.data.allowdownload && this.setValue(a.data.allowdownload) }, commit: function(a) { a.setData("allowdownload", this.getValue()) } }] + }, { + type: "hbox", children: [{ + type: "text", id: "advisorytitle", + label: b.lang.html5video.advisorytitle, "default": "", setup: function(a) { a.data.advisorytitle && this.setValue(a.data.advisorytitle) }, commit: function(a) { a.setData("advisorytitle", this.getValue()) } + }] + }] + }] + }] + } +});
\ No newline at end of file |
