vkvideo title CURLANG video_vk buttonHTML span class fonticon ve-tlb-v

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
vkvideo: {
title: CURLANG.video_vk,
buttonHTML: '<span class="fonticon ve-tlb-video1">\uE008</span>',
modal: {
title: CURLANG.video_vk,
width: "600px",
tabs: [
{
title: CURLANG.video_vk,
input: [
{param: "SRC",title:CURLANG.modal_video_vk_text}
]
}
],
onSubmit: function(cmd,opt,queryState) {
var url = this.$modal.find('input[name="SRC"]').val();
if (url)
{
url = url.replace(/^\s+/,"").replace(/\s+$/,"");
}
this.insertAtCursor(this.getCodeByCommand(cmd,{src:url}));
this.closeModal();
this.updateUI();
this.insertAtCursor("<br />");
return false;
}
},
transform: {
'<iframe src="{SRC}&hd2=1" width="607" height="360" frameborder="0"></iframe>':'[vkvideo={SRC}]'
}
},