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.
- <script language="javascript">
- function callInsertImage() {
- var editor1 = document.getElementById('<%=editor.ClientID%>');
- var editdoc = editor1.GetDocument();
- editdoc.body.innerHTML = "";
- editor1.ExecCommand('insertdocument');
- InputURL();
- document.getElementById("docFld").focus();
- }
-
- function InputURL() {
- var editor1 = document.getElementById('<%=editor.ClientID%>');
- var editdoc = editor1.GetDocument();
- var links = editdoc.getElementsByTagName("a");
- if (links.length > 0 && links[links.length - 1].href != "") {
- document.getElementById("docFld").value = links[links.length - 1].href;
- }
- else {
- setTimeout(InputURL, 500);
- }
- }
- </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