Insert internal links via custom popup window

Last post 04-25-2006, 7:10 PM by nisse. 4 replies.
Sort Posts: Previous Next
  •  12-29-2005, 7:34 AM 14211

    Insert internal links via custom popup window

    Hello
     
    I am using your CuteEditor 4.2 for ASP and it works very well so far, except for one thing, that I cannot manage to solve. I need to be able to handle all my internal pages in the system, and link to those.

    Just basic stuff, that is, pull it out of the DB and generate a table with all the internal pages to select from. Works without a problem!
     
    Now, I am trying to use your Custombutton via the editor.CustomAddons;
     
        vLink = "window.open('../CuteEditor_Files/insert_link_internal.asp','_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=350,height=600').focus()"
        editor.CustomAddons = "<span title=""Custom Addons"" class=""button"" onclick=" & """" & vLink & """" & "type=""btn"" border=""0""> Länk </span>"
     
    As you can see, I have made a new page called "insert_link_internal.asp", which is a copy of your "insert_link.asp". In that same page I have placed the above mentioned table with all internal pages to select from. It even give me a special mini javascript dropdown solution to select all Anchors from each page. Works without a problem!
     
    From this table, I select an internal page and/or anchor and in your field called "inp_src", my selection is inserted via javascript (instead of manually enter a value/text in your "insert_link.asp" page). Works perfect!
     
    Now, when I click on the "Insert" button nothing happens! The "Cancel" button acts as normal, ie the the popup closes, but the "Insert" button does not work. It neither inserts what is in the "inp_src" field into the Editor or neither closes the popup window (like your "insert_link.asp" page does).
     
    What is missing? Please advise, so I can continue using your excellent product.

    Please note, that I do not want to use your "Link" dropdown solution, but be able to use a separate popup window, like described above.
     
    Thanks
     
    Nisse
  •  01-04-2006, 3:13 PM 14431 in reply to 14211

    Re: Insert internal links via custom popup window

    Any chance of a response to the above?
     
    Thanks
     
    nisse
  •  04-25-2006, 12:29 PM 18480 in reply to 14431

    Re: Insert internal links via custom popup window

    What is the status on this, 5 months later. I never got a reply last time.
     
    Best regards
     
    Lars
  •  04-25-2006, 3:34 PM 18491 in reply to 14431

    Re: Insert internal links via custom popup window

    Nisse,
     
    You need to do something like:
     
    function do_insert()
    {
        editor.PasteHTML("put your link HTML code here");
        top.close();
    }
     
     

    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

  •  04-25-2006, 7:10 PM 18496 in reply to 18491

    Re: Insert internal links via custom popup window

    Thanks for your reply. I will look into this soon and test it out. Now with version 5.1.
     
    Regards
     
    Nisse   
View as RSS news feed in XML