<textarea name="page[content]" id="content" class="medium-width" style="height:100px;"></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'page[content]' );
$('#btn').click(function(){
CKEDITOR.instances.page[content].updateElement();
});
</script>
I’m using array name for my textarea field.It is working well for call CKEDITOR.replace( 'page[content]' );
Now my problem is here CKEDITOR.instances.page[content].updateElement()…Here how can i use array field name?…
If i use normal name,it working well.
How can i use array name CKEDITOR.instances.page[content].updateElement() here?
You can call it by it’s id as well, see http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.html#.replace