javascript - How to change the code tinymce generates when adding images and lists? -


i'm working on site of client. uses tinymce , wordpress's media uploader write blog posts , include images. problem it's adding garbage attributes when try add images , lists. example, adding list generate following code;

<ul>   <li><span style="font-size: 1rem; line-height: 1.846153846;">item one,</span></li>   <li><span style="font-size: 1rem; line-height: 1.846153846;">item two.</span></li> </ul> 

obviously, don't want "style" attribute. also, when adding images, editor wrap around tags automatically, don't want.

my question is, in code of tinymce and/or wordpress's image uploader can change sort of formatting?

i guess find kind of behaviour hardcoded in tinymce core file formatter.js (classes directory) , tinymce style plugin.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -