content is empt

General Questions/Comments about NicEdit go here

content is empt

Postby webgoksa » Tue Feb 02, 2010 9:58 am

Hi,
When pressed to enter at page I want the data content in editor but Content is empty. how do I do ? Help please !

<head>
<script type="text/javascript">
var myeditor;

function abc(){

var data = ??
}

function SendMessageEnter()
{
if (window.event.keyCode == 13)
{
myeditor.findEditor('MyTextArea').saveContent();
abc();
}
}
</script>


</head>
<body onkeypress="SendMessageEnter()" >
<script type="text/javascript">
//<![CDATA[

bkLib.onDomLoaded(function() {
try {
myeditor = new nicEditor({ buttonList: ['fontSize', 'fontFamily', 'forecolor', 'bold', 'italic', 'underline', 'strikeThrough', 'html'] }).panelInstance('MyTextArea').SetASPNetHiddenField($get('HiddenTextArea').name);
}
catch (ex)
{ }
});

//]]>
</script>
<textarea cols="88" id="MyTextArea" name="MyTextArea" runat="server" style="width:470px; height:100px;" >
</textarea>
<input id="HiddenTextArea" name="HiddenTextArea" type="hidden" />
</body>
webgoksa
 
Posts: 2
Joined: Tue Feb 02, 2010 9:45 am

Return to General NicEdit Discussion

Who is online

Users browsing this forum: No registered users and 2 guests