php - CKEditor not displaying data in CakePHP -
i using ckeditor plugin in cakephp :
$this->element('ckeditor', array( 'name' => 'body', 'description'=>$body, 'id' => 'description', 'width' => 628, 'height' => 250 ));
but unable see content on page load. $instructiondetails['instruction']['body'] contains html data. tried static data , displaying in not html data. on changing language able see content since using:
ckeditor.instances.description.setdata(data);
in javascript change event. there way use setdata
in $this->element('ckeditor')
other params?
you need tell ckeditor
open in default mode. mode load @ editor startup depends on plugins loaded. default, "wysiwyg" , "source" modes available.
use this
ckeditor.config.startupmode = 'source'
ckeditor.instances.config.startupmode = 'source'
what open data source you.
Comments
Post a Comment