php - Edit content in ckeditor -
iam using ckeditor in website add content pages. i'm not able understand how content in ckeditor editing later...
how load content ckeditor? iam using following code load editor:
if ( !@file_exists( '../../ckeditor/ckeditor.php' ) ) { if ( @file_exists('../../ckeditor/ckeditor.js') || @file_exists('../../../ckeditor/ckeditor_source.js') ) printnotfound('ckeditor 3.1+'); else printnotfound('ckeditor'); } include_once '../../ckeditor/ckeditor.php'; include_once '../../ckfinder/ckfinder.php'; // check ckeditor class. if not defined, paths in lines 57 , 70 must checked. if (!class_exists('ckeditor')) { printnotfound('ckeditor'); } else { $ckeditor = new ckeditor(); $ckeditor->basepath = '../../ckeditor/'; $ckfinder = new ckfinder(); $ckfinder->basepath = '../../ckfinder/'; // note: basepath property in ckfinder class starts capital letter $ckfinder->setupckeditorobject($ckeditor); $ckeditor->editor('message'); }
one way pre-populate <textarea>
field appropriate (htmlentities()
processed) html content. ckeditor automatically fetch data, , insert wysiwyg editor.
Comments
Post a Comment