Re: Image tag problems when pasting from Image Galery.

  •  08-14-2008, 1:42 PM

    Re: Image tag problems when pasting from Image Galery.

    Please open CuteSoft_Client\CuteEditor\Scripts\Dialog\Dialog_InsertGallery.js
     
    And add the following code to the bottom of the page:
     
    function insert(src) {
     if (src)
     {
      var url = src.replace(new RegExp("^[a-z]*:[/][/][^/]*",""), "");
           
      function Actualsize()
      {    
       var original = new Image();
       original.src = url;
       if(original.width>0&&original.height>0)
       {       
       } 
       else
       { 
        setTimeout(Actualsize, 400);    
       }  
      } 
      
      if(element)
      {
       element.src=url;
      }
      else
      {
       element=editdoc.createElement("IMG");
       element.src=url;
       element.border=0;
       element.alt="";
       Actualsize();
      }
       
      if(navigator.product == "Gecko")
      {
       try
       {
        element.setAttribute("src_cetemp",url);    
       }
       catch(e)
       {
       }
      }
      else
      {
       if(editor.GetActiveTab()=="Edit")
        element.setAttribute("src_cetemp",url);
      }
      editor.InsertElement(element);
      Window_CloseDialog(window);
     }
    }

    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