Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Support Requests:
Help with HTMLArea Full HTML Editor

New User

Feb 14, 2005, 5:08 PM

Views: 21959
Help with HTMLArea Full HTML Editor

Hello, I just downloaded all the htmlArea tools. I am trying to use Javascript to extract the value of the FullHTML Editor. However, when I try and use

var val = document.getElementById('editor').value;

my value is always empty, even if there is stuff typed in. Here is some of my code:

<script type="text/javascript">
_editor_url = "./";
_editor_lang = "en";

<!-- load the main htmlArea files -->
<script type="text/javascript" src="htmlarea.js"></script>

<script type="text/javascript">

function initDocument() {
var editor = new HTMLArea("editor");
<body class="adminPage" onLoad="initDocument();">
<textarea name="editor" id="editor" style="height: 30em; width: 100%;"></textarea>

Can someone tell me how to extract the value?

Thanks, - Dave