I'm a beginner on Javascript/TinyMCE and I try to understand how is it possible to get the HTML content from the editor, and show it with a simple alert() function. 

I've this minimalist config on my HTML page :

```
<div id="tiny">
<script type="text/javascript">
tinyMCE.init({
        // General options
        mode : "specific_textareas",
        editor_selector : "mceEditor"
});
</script>
</div>

<form method="post" action="somepage">
        <textarea id="myarea1" class="mceEditor">This will be an editor.</textarea>
</form>

```

On the [TinyMCE Website](http://www.tinymce.com/wiki.php/API3:method.tinymce.Editor.getContent), They explained that i have to use this :

```
// Get the HTML contents of the currently active editor
console.debug(tinyMCE.activeEditor.getContent());

```

And [here](https://stackoverflow.com/questions/11503320/how-to-get-the-html-code-from-tinymce-editor-using-php-javascript) too 

```
tinymce.activeEditor.getContent()

```

I don't know why it doesn't work

Someone have an idea ?