probleme focus() about cursor location,

  •  10-03-2005, 9:31 AM

    probleme focus() about cursor location,

    Version 4.2 ASP Cute editor

    Hello,
     
    I have a trouble when I open a popup windows for return value, this value is always at the start of editor and not at the cursor location.
     
    that functioned well in old the version.
     
    function berfonc(current,szHow) { 
        hidePopup();
        var editor = document.getElementById(current.EditorID);
        editor.focus();
        switch(szHow){  
            case "addvar":
            var html;
            var strAttr = "status:no;dialogWidth:560px;dialogHeight:500px; scroll: yes; resizable: yes; help:no";
            html = showModalDialog("2.asp", window, strAttr);  
            if(html && html!="") 
                current.insertHTML(html);  
            break;
          }
    }
     
     
    editor.CustomAddons = "<span title=""Custom Addons"" class=""button"" onClick=""berfonc(obj_Editor1,'addvar');""> Input xyz </span>"


    Thank you for your help
View Complete Thread