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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -