Help with HTMLArea Full HTML Editor

2 posts by 2 authors in: Forums > Off Topic / Other
Last Post: February 14, 2005   (RSS)

By laredotornado2 - February 13, 2005

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