Hi nadol_c,
About question1 and question2, Can you try to upgrade to the latest version and try the simple page like below?
- <%@ Page Language="C#" %>
-
- <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- <title>DataGridCS</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <CE:Editor ID="Editor1" runat="server">
- </CE:Editor>
- </form>
- </body>
- </html>
About question3, please try the example below
- <%@ Page Language="C#" %>
-
- <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
- <script runat="server">
-
- public string loaderName;
-
- protected override void OnInit(EventArgs e)
- {
- base.OnInit(e);
- System.Web.HttpBrowserCapabilities browser = Request.Browser;
- string browserName = browser.Browser;
-
- switch (browserName)
- {
- case "IE":
- loaderName = "IE_Loader";
- break;
- case "Firefox":
- loaderName = "Gecko_Loader";
- break;
- case "AppleMAC-Safari":
- loaderName = "Safari_Loader";
- break;
- case "Opera":
- loaderName = "Opera_Loader";
- break;
- default:
- break;
- }
-
- }
-
- </script>
- <script src="CuteSoft_Client/CuteEditor/Scripts/spell.js"></script>
-
- <script src="CuteSoft_Client/CuteEditor/Scripts/<%=loaderName %>/Loader.js"></script>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- <title>test</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <input type="button" value="hide" onclick="hide()" />
- <input type="button" value="show" onclick="show()" />
- <div id="hidden" style="display: none;">
- <CE:Editor ID="Editor1" runat="server">
- </CE:Editor>
- <input type="button" value="SetContent" onclick="setContent()" />
- <input type="button" value="GetContent" onclick="getContent()" />
- </div>
- <br />
- </form>
- </body>
- </html>
-
- <script type="text/javascript">
- var editor1 =document.getElementById('<%= Editor1.ClientID %>');
- var div1=document.getElementById('hidden');
- function hide()
- {
- div1.style.display="none";
- }
- function show()
- {
- div1.style.display="block";
- }
- function getContent()
- {
- var content=editor1.getHTML();
- alert(content);
- }
- function setContent()
- {
-
- editor1.SetHTML('Set Content');
- alert(editor1.getHTML());
- }
- </script>
Regards,
Ken