1
Skype-Fr
video in koivi toolbar
  • 2007/6/13 14:30

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


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("+video+"  type="application/x-shockwave-flash" wmode="transparent" width="425" height="350">",id);

    return;
};[/
color]



/wysiwyg/formwysiwygtextarea.php

Of 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

2
Skype-Fr
Re: video in koivi toolbar
  • 2007/6/21 15:31

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


UP !

Anybody can help me ?

Login

Who's Online

300 user(s) are online (224 user(s) are browsing Support Forums)


Members: 0


Guests: 300


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits