[eluser]basty_dread[/eluser]
Hi.. i am creating a simple CMS for my website..
I used the latest ckeditor..
And i have this problem applying content formatting..
i used this code to change all the formatting even it is paste from word,,
Code:
$size = $_post['textsize'];
$font = $_post['fontface'];
for($x=0;$x<$ctr;$x++){
$where2 = "iKeywordNo = '".$ikeyno[$x]."' and iUserNo = '".$userid."'";
$replaced = preg_replace('/([0-9]+px)/', $size.'px', $content[$x]);
$replaceds = preg_replace('/(font-family:)(.*);/', '$1'.$styles.';', $replaced);
$data2 = array('vContent' => $replaceds);
$str2 = $this->db->update_string('tblcontents',$data2, $where2);
$this->db->query($str2);
}
but some are beeng deleted...when i looked at the ckeditor.. some words or phrase has been removed..
any idea why this is happening? The content is usually passed from word..