javascript - Tinymce editor generating html code for text color and background color changing but not sending -


i'm using tinymce editor laravel application. working fine getting little bit problem when i'm changing color or background color of text.

trying following it's generating html not sending when i'm submit enter image description here the initialization following:

tinymce.init({         selector: '#description',         extended_valid_elements : 'span',         verify_html: true,         height: 400,         theme: 'modern',         plugins: [             'advlist autolink lists link image charmap print preview hr anchor pagebreak',             'searchreplace wordcount visualblocks visualchars code fullscreen',             'insertdatetime media nonbreaking save table contextmenu directionality',             'emoticons template paste textcolor colorpicker textpattern imagetools codesample toc'         ],         toolbar1: 'undo redo | insert | styleselect | fontselect fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',         toolbar2: 'print preview media | forecolor backcolor emoticons | codesample | mybutton',         image_advtab: true,         image_title: true,         image_caption: true,         relative_urls: false,         theme_advanced_buttons1: "forecolor,backcolor,fontselect,fontsizeselect",          templates: [             { title: 'test template 1', content: 'test 1' },             { title: 'test template 2', content: 'test 2' },         ],     }); 

when i'm debugging output showing me following: enter image description here

i got solution: works if set

tinymce.init({      extended_valid_elements: true,      //or      extended_valid_elements: 'a[href|target=_blank]', }); 

Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -