Snippet: Use classes instead of inline styles for text alignment

Question

WordPress’ TinyMCE (WYSIWYG) editor is adding inline stlyes to the markup when you change the text alignment. This behaviour is hard coded in wp-includes/class-wp-editor.php.

Can the inline styles be changed to classes instead?

0
, , , , bitstarr 7 months 0 Answers 99 views 0

Leave an answer