Commit 6c217da7 authored by 杨培's avatar 杨培

乐视云视频插件支持修改元素

parent d248b907
......@@ -23,12 +23,14 @@ if (oFakeImage) {
oFakeImage = null ;
}
console.log(oVideo);
console.log(oFakeImage);
window.onload = function() {
// First of all, translate the dialog box texts
oEditor.FCKLanguageManager.TranslatePage(document) ;
oEditor.FCKLanguageManager.TranslatePage(document);
if (oVideo) {
$('videoId').value = oVideo.getAttribute("vd");
$('videoVU').value = oVideo.getAttribute("vu");
}
window.parent.SetOkButton(true) ;
window.parent.SetAutoSize(true) ;
......@@ -43,11 +45,12 @@ function Ok() {
if (!oVideo) {
oVideo = FCK.EditorDocument.createElement('div');
oVideo.setAttribute("class", "lecloud-video");
oVideo.setAttribute("vd", videoId);
oVideo.setAttribute("vu", videoVU);
oFakeImage = null;
}
oVideo.setAttribute("vd", videoId);
oVideo.setAttribute("vu", videoVU);
if (!oFakeImage) {
oFakeImage = oEditor.FCKDocumentProcessor_CreateFakeImage('FCK__Lecloud', oVideo) ;
oFakeImage.setAttribute('_fck_lecloud', 'true') ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment