javascript - TinyMCE italic tag not showing -


here's "constructor"

tinymce.init({selector:"#article_body", valid_elements:'strong/b,italic/i,p,br', formats:{bold:{inline:'b'}, italic:{inline:'i'}}});     

inside tinymce editor can select piece of text , apply italic , see italic result, same bold. when content save it, italic tag never there.

this how content

tinymce.get('article_body').getcontent(); 

what have make italic tag working in tinymce (v4.2.4) ??

the issue italic/i value in valid_elements property. changing i/italic solves problem.

valid_elements: 'strong/b,i/italic,p,br', 

jsfiddle


Comments