Codeigniter CkEditor Pre populate value in form

Hi,

I have a tips for developer codeigniter to handle prepopulate.

Try this in your form add setData()
<textarea id="pr_description" class="form-control" value="<?php echo set_value('pr_description'); ?> "name="pr_description"></textarea>
<script>
  CKEDITOR.replace('pr_description');
  var editorText = CKEDITOR.instances.pr_description.setData("<?php echo set_value('pr_description'); ?>");
</script>
 I hope this article useful.

Komentar

Postingan populer dari blog ini

EPrT English Proficiency Test Soal - soal

cara memunculkan dan menyembunyikan icon date, time, clock, volume, network, power battery, action center pada taskbar pada Windows 7

Cara Mengurus Perpanjang SIM dan Rincian Biaya di Lumajang.