Test sample Test sample - 1 year ago 82
PHP Question

Tinymce font-color not support after saving in codeigniter

I'm using tinymce text editor in codeigniter fusion invoice. after saving text the editor will show the content like below in textarea source code.

<!DOCTYPE html>
<p><span ff00ff="" ff99cc="">dffghfgh</span></p>

My tinymce code is

selector: "textarea",
verify_html: false,
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste",
toolbar: "insertfile undo redo | fontselect fontsizeselect styleselect | bold italic | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
textcolor_map: [
"000000", "Black",.. ]

Answer Source

The reason is XSS filtering.

Please use this:

$this->input->post('your_input_name', false)

instead of this: