<?php
function get_ckeditor($id,$flag=TRUE){
if($flag){
return '<script type="text/javascript">CKEDITOR.replace("'.$id.'");</script>';
}else{
return '<script type="text/javascript" src="'.base_url().'js/ckeditor/ckeditor.js"></script>' .
'<script type="text/javascript">CKEDITOR.replace("'.$id.'");</script>';
}
}
?>