1
Hi all,
I'am hacking koivi because I would like to add video.
Now, there is an icon into tools bar. If you click on this icon, then you open a dialog box where you can write an url of video. That is right! After publishing, the video is realy visible and you can play it ! BUT, there is a problem because I can't see the video player when I am making the article.. If you prefer, this is not wysiwyg ! If I return into textarea by editing, I can see the video player !
I think so that is a problem when iframe/js is refreshing.
This is my code hacked :
(
rouge = hack)
/wysiwyg/include/js/editor.js case "insertimage":
XK_InsertImage(id);
break;
[color=DD0000]
case "insertvideo":
XK_InsertVideo(id);
break;
[/color]
case "fontsize":
case "fontname":
case "formatblock":
XK_fontFormat(command,option,id);
break;
[color=DD0000]function XK_InsertVideo(id,src)
{
document.getElementById("iframe"+id).contentWindow.focus();
if (src==null)
{
var video = prompt("Video source.",'http://');
}
else var video = src;
if (video!='http://' && video!=null)
XK_insertHTML("
/wysiwyg/formwysiwygtextarea.phpOf course, it must create an image:
insertvideo.gif into /skins/ .
case "insertimage":
$form .= '. _XK_INSERTIMAGE . '" title="' . _XK_INSERTIMAGE . '" src="' . $skinUrl . '/insertimage.gif" onmousedown="XK_doTextFormat('insertimage','','' . $this->getName() . '')"/>';
break;
[color=DD0000]
case "insertvideo":
$form .= '. _XK_INSERTVIDEO . '" title="' . _XK_INSERTVIDEO . '" src="' . $skinUrl . '/insertvideo.gif" onmousedown="XK_doTextFormat('insertvideo','','' . $this->getName() . '')"/>';
break;
[/color]
case "insertorderedlist":
$form .= '. _XK_INSERTORDEREDLIST . '" title="' . _XK_INSERTORDEREDLIST . '" src="' . $skinUrl . '/' . $tool . '.gif" onmousedown="XK_doTextFormat('insertorderedlist','','' . $this->getName() . '')"/>';
break;
/wysiwyg/language/english/lang.php [color=DD0000]define('_XK_INSERTVIDEO','Insert video url');[/color]
Please,
What do you think about this bug?
Who is help me ?Gerard