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.
it's generating html not sending when i'm submit
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' }, ], });
i got solution: works if set
tinymce.init({ extended_valid_elements: true, //or extended_valid_elements: 'a[href|target=_blank]', }); 
Comments
Post a Comment