Re: FileManager problem - GoogleChrome, Safari, IE11

  •  11-25-2013, 8:37 PM

    Re: FileManager problem - GoogleChrome, Safari, IE11

    GeorgeS:

    Hi,

     

    I have most recent CE v 6.6 from October 2013 and there is a problem with File Manager.

    The same problem is on your demo page: http://cutesoft.net/asp/use-CuteEditor-as-file-manager.asp

     

    This example does not function in Google Chrome/Win7 or Safari/Mac.

     

    Problem occures in this line: feditor1.ExecCommand('insertdocument'); 

    On developer console: DOM Exception 3: A Node was inserted somewhere it doens't belong. 

     

    ---

    I guess, this causes a strange problem in IE11 - when i combine filemanager and editor window,  the editor window is not being loaded completly.

    When I triend to replace feditor1.ExecCommand('insertdocument');by feditor1.ExecCommand('ImageGalleryByBrowsing'); - the editor window was loaded correctly

    ---

    Thank you,

    George 

     

    Please use the following code. 

    1. <script language="javascript">  
    2.                             function callInsertImage() {  
    3.                                 var editor1 = document.getElementById('<%=editor.ClientID%>');  
    4.                                 var editdoc = editor1.GetDocument();  
    5.                                 editdoc.body.innerHTML = "";  
    6.                                 editor1.ExecCommand('insertdocument');  
    7.                                 InputURL();  
    8.                                 document.getElementById("docFld").focus();  
    9.                             }  
    10.   
    11.                             function InputURL() {  
    12.                                 var editor1 = document.getElementById('<%=editor.ClientID%>');  
    13.                                 var editdoc = editor1.GetDocument();  
    14.                                 var links = editdoc.getElementsByTagName("a");  
    15.                                 if (links.length > 0 && links[links.length - 1].href != "") {  
    16.                                     document.getElementById("docFld").value = links[links.length - 1].href;  
    17.                                 }  
    18.                                 else {  
    19.                                     setTimeout(InputURL, 500);  
    20.                                 }  
    21.                             }  
    22.                         </script>  

    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

View Complete Thread