I want to add dynamic content in ckeditor I have also used CKEDITOR.instances or some another thinks which I get from Stack Overflow but I can't get output.
<script type="text/javascript" src="<?php echo base_url();?>js/ckeditor/ckeditor.js"></script> <textarea class="ckeditor form-control" name="Content" id="emailcontent" > <?php echo $valuedata[0]['email']; ?> </textarea>
i am using ck-editor java script and text area.
If you want to replace the entire editor content, use setData()
, for example:
CKEDITOR.instances[Name].setData(Data)
If you want append data into the editor window, you can use insertHtml()
and insertText()
methods
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments