diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-01-26 15:34:32 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-01-26 15:34:32 +0100 |
commit | 7183f6a6a21ad9124e70c997e0168459f377a9f2 (patch) | |
tree | f3355f3e28d35d9f431ff71045e1b46c82ac4826 /release/plugins/html5video | |
parent | d1844275460a3e3a32e199326f6b36938a329091 (diff) | |
download | ludivine-ckeditor-component-7183f6a6a21ad9124e70c997e0168459f377a9f2.tar.gz ludivine-ckeditor-component-7183f6a6a21ad9124e70c997e0168459f377a9f2.tar.zst ludivine-ckeditor-component-7183f6a6a21ad9124e70c997e0168459f377a9f2.zip |
Change skin and add video button4.6.2.5
Diffstat (limited to 'release/plugins/html5video')
-rw-r--r-- | release/plugins/html5video/dialogs/html5video.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/plugins/html5video/dialogs/html5video.js b/release/plugins/html5video/dialogs/html5video.js new file mode 100644 index 0000000..85a8899 --- /dev/null +++ b/release/plugins/html5video/dialogs/html5video.js | |||
@@ -0,0 +1,5 @@ | |||
1 | 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())}}, | ||
2 | {type:"button",id:"browse",style:"display:inline-block;margin-top:14px;",align:"center",label:b.lang.common.browseServer,hidden:!0,filebrowser:"info:url"}]}]},{type:"hbox",id:"size",children:[{type:"text",id:"width",label:b.lang.common.width,"default":400,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,"default":300,setup:function(a){a.data.height&&this.setValue(a.data.height)}, | ||
3 | 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, | ||
4 | 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:0,children:[{type:"hbox",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&& | ||
5 | this.setValue(a.data.autoplay)},commit:function(a){a.setData("autoplay",this.getValue())}}]}]}]}]}}); \ No newline at end of file | ||