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

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";
</script>

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

<script type="text/javascript">
HTMLArea.loadPlugin("FullPage");

function initDocument() {
var editor = new HTMLArea("editor");
editor.registerPlugin(FullPage);
editor.generate();
}
</script>
</head>
<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

Re: [laredotornado2] Help with HTMLArea Full HTML Editor

Hi Dave

Thanks for posting!

Since htmlArea is an open source application, we don't offer support on it. But there are alternatives: first, you could do a search on [url "http://www.htmlarea.com/forum/"]http://www.htmlarea.com/forum/[/#0000ff][/url] to see if your question has already been asked and answered. If not, you could just post your question - the htmlArea community are an extremely helpful bunch, and between them they'd probably be able to answer you a lot better than we will!

Hope this helps [cool]