Re: cuteEditor as swf selector

  •  05-20-2009, 4:05 PM

    Re: cuteEditor as swf selector

    Nick,
     
    This is media selector. You need to replace insertmedia with insertflash.
     
    1. <Script Language="javascript">    
    2.     function callInsertImage()     
    3.     {     
    4.             var editor1 = document.getElementById('CE_Editor1_ID');   
    5.             editor1.FocusDocument();     
    6.             var editdoc = editor1.GetDocument();     
    7.             editor1.ExecCommand('new');   
    8.             editor1.ExecCommand('InsertFlash');   
    9.             InputURL();   
    10.     }       
    11.        
    12.     function InputURL()   
    13.     {    
    14.         var editor1 = document.getElementById('CE_Editor1_ID');   
    15.         var editdoc = editor1.GetDocument();     
    16.         var imgs = editdoc.images;   
    17.         if(editor1.getHTML()!="")     
    18.         {      
    19.             var s = editor1.getHTML();   
    20.             s=s.replace(/(<object[^\>]*>[\s|\S]*?)(<embed[^\>]*?)(\ssrc=\s*)\s*("|')(.+?)\4([^>]*)(.*<\/embed>)[\s|\S]*?<\/object>/gi,"$5");   
    21.             document.getElementById("imageFld").value = s;   
    22.             editor1.ExecCommand('new');   
    23.             document.getElementById("imageFld").focus();    
    24.         }     
    25.         else  
    26.         {   
    27.             setTimeout(InputURL,500);    
    28.         }     
    29.     }          
    30. </script>   

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread