firefox editor1.getselection is not a function

  •  09-24-2007, 12:32 PM

    firefox editor1.getselection is not a function

    I have a pop up box which loads a file, and merges in the location (url) into the html content of the editor. Works wonderfully in IE, but firefox generates the following error:
     
    editor1.GetSelection is not a function
     
    The pop-up window calls a function on the opening page:
    <script>
    var selText = parent.opener.getSelText();
    </script>
     
    and the function on the opening page is:
     
    function getSelText()
     {
      var editor1 = document.getElementById('CE_Editor1_ID');
     
    var sel=editor1.GetSelection();
       
       
     return sel.text
    }
     
    I am thinking it's a DOM issue or something, but its been years since i've wrestled with this type of thing. Any help would be greatly appreciated.
     
    Thanks
View Complete Thread