I seem to have a conflict with another script already on the page (see below). Also, is there a reason for placing the JavaScript at the bottom of the html and not between the HEAD tags?
<!-- #include file = "cuteeditor_files/include_CuteEditor.asp" -->
<html>
<head>
<title>ASP Editor Demo</title>
<script>
function CuteEditor_OnInitialized(editor)
{
var editor1 = document.getElementById('CE_Editor1_ID');
var editdoc = editor1.GetDocument();
//set border when editor load
editdoc.body.style.border="solid 1px red";
}
function getBorder()
{
var editor1 = document.getElementById('CE_Editor1_ID');
var editdoc = editor1.GetDocument();
//get border
alert(editdoc.body.style.border);
}
function scrollOff()
{
var editor1 = document.getElementById('CE_Editor1_ID');
var editdoc = editor1.GetDocument();
editdoc.body.style.overflow="hidden";
}
</script>
</head>
<body bgcolor="#FFFFFF" onLoad="scrollOff();">
<form name="theForm" method="post">
<div>
<%
Dim editor
Set editor = New CuteEditor
editor.ID = "Editor1"
editor.Text = "Hello World"
editor.EditCompleteDocument=true
editor.Draw()
%>
</div>
</form>
</body>
</html>