TinyMCE strips inline style with valid-elements: *[*] with Codeigniter TinyMCE strips inline style with valid-elements: *[*] with Codeigniter codeigniter codeigniter

TinyMCE strips inline style with valid-elements: *[*] with Codeigniter


No, it was not TinyMCE that was preventing inline styles.

CodeIgniter did that.

Even now that I had manually disabled XSS filtering using:

$body = $this->input('body', FALSE);

, that was still being removed because I had enabled XSS filtering in application/config/config.php:

$config['global_xss_filtering'] = TRUE;

But when I changed it to

$config['global_xss_filtering'] = FALSE;

the problem was resolved and I got rid of the Server Side filtering.


I post the answer here and I hope no one else be such crazy and mad that I became!