Hi Richard Schaefer,
In method "CuteEditor_OnInitialized", editor will as a parameter. You can use it directly.
Below it an example to show you how to switche the scroll bar state between on and off.
-
<%@ 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>Untitled Page</title>
-
</head>
-
<body>
-
<form id="form1" runat="server">
-
<CE:Editor ID="editor1" runat="server">
-
</CE:Editor>
-
<input type="button" value="scroll on" onclick="scrollOn()" />
-
<input type="button" value="scroll off" onclick="scrollOff()" />
-
</form>
-
</body>
-
</html>
-
-
<script>
-
function CuteEditor_OnInitialized(editor)
-
{
-
var editdoc = editor.GetDocument();
-
-
editdoc.body.style.overflow="hidden";
-
}
-
function scrollOn()
-
{
-
var editor1 = document.getElementById("<%= editor1.ClientID %>");
-
var editdoc = editor1.GetDocument();
-
editdoc.body.style.overflow="";
-
}
-
function scrollOff()
-
{
-
var editor1 = document.getElementById("<%= editor1.ClientID %>");
-
var editdoc = editor1.GetDocument();
-
editdoc.body.style.overflow="hidden";
-
}
-
</script>
Regards,
Ken