Custom Browse link in Insert_a_tag Dialog Firefox problems

Last post 02-07-2010, 11:27 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  02-05-2010, 5:18 AM 58545

    Custom Browse link in Insert_a_tag Dialog Firefox problems

       Hi, i have the following problem.
     
    For our CMS i've added a custom browse popup in the insert a Tag dialog. When the link is selected in the browse popup i use javascript to enter that link in the Url: field.
     
    window.opener.document.getElementById(inp_src).value = 'link url'
     
    This works perfectly in all cases BUT, In IE when above code is executed you can see the selected text becom a link in the editor main window. In Firefox however he doesn't see the above code as an actual trigger to synchronize the main window thus the link is not actually added.
     
    Does anyone have any idea how to solve this?
     
    Thanks in advance
  •  02-07-2010, 11:27 PM 58567 in reply to 58545

    Re: Custom Browse link in Insert_a_tag Dialog Firefox problems

    Hi SaferSephy,
     
    Try add "SyncTo(element);" in you code.
     
    In my case, I add the value by a button. Like below.
     
    1. function addLink()   
    2. {   
    3. var inp_src=document.getElementById("inp_src");   
    4. inp_src.value="http://www.google.com";   
    5. SyncTo(element);   
    6. }  
    Regards,
     
    ken
View as RSS news feed in XML