Custom dialog steals cursor position for IE

  •  08-13-2008, 1:20 PM

    Custom dialog steals cursor position for IE

    Hi there.
     
    I've got a minor problem - hope there's a workaround for it:
     
    I use CTE in combination with some custom dialogs. I put cursor to a desired place inside CTE. Then I hit a button that invokes custom dialog. Custom dialog has som inputs inside. I select any of them adn press a button that calls for stabdard sequence -
    var editor=Window_GetDialogArguments(window);
      var ta=document.getElementById("ta");
      editor.PasteHTML(ta.value); 
     
    After that text is inserted to thу very begining of the input area, but not at the cursor position (what is expected). This can be reproduced for IE 6 with create_a_custom_dialog.aspx that is included to samples package.
     
    Any ideas how to deal with this?
View Complete Thread