Using CuteEditor as a FLASH selector

  •  10-24-2008, 11:13 AM

    Using CuteEditor as a FLASH selector

    Hello everyone,
     
    I've been using CuteEditor .Net for a month and I can only say it's a very powerful ans usefull tool to have on a website.
     
    I've use the editor as IMAGE selector, DOCUMENT selector and of course for text editing needs.
     
    Now, I would like to be able to use it as a FLASH selector.  In the page I am currently working on, what you have to know is that the editor is not seen by the user in the page.  In fact, I want to use it the same way as seen in the File Picker tutorial or like the Image selector tutorial.
     
    Curently, I am able to map a button using JavaScript and call : editor1.ExecCommand('InsertFlash'); and get the Insert Flash dialog.  Then, I need to get the path of the SWF file and then think of saving it in my database (I'l figured that out no problem).
     
    What I need to know from you guys is what Javascript propertites I have to set to get that path.
     
    For instance, in the image selector page, I use a JavaScript function like in the Image selector tutorial. :
     
    var editor1 = document.getElementById('<%=editeurBandeau.clientID%>');
    var editdoc = editor1.GetDocument();  
    var imgs = editdoc.images;
                    
    if(imgs.length>0)  
    { [..........] }
     
    What would it be to get the FLASH file path.  Will it be editdoc.flash ?  links ? getTagBy ?
     
    It is probably easy, I think I'm almost there !!!
     
    Thank you very much, any help or lead will be greatly apprectiated.
     
     
    JF Potvin
View Complete Thread