How to get Editor content into javascript variable in joomla.
In joomla i'm using like
<div class="field htmleditor htmleditor" id="ChapterContents">
<?php
$editor = & JFactory::getEditor();
$editor_params = array('theme' => 'simple');
$data = "asdfgh";
echo $editor->display('content', $data, '100%', '300', '50', '15', 'false', $editor_params);
?>
</div>
In joomla i'm using like
<div class="field htmleditor htmleditor" id="ChapterContents">
<?php
$editor = & JFactory::getEditor();
$editor_params = array('theme' => 'simple');
$data = "asdfgh";
echo $editor->display('content', $data, '100%', '300', '50', '15', 'false', $editor_params);
?>
</div>