0

I want that Wordpress (or TinyMCE or any plugin) could auto indent my HTML (as switching from Text to Visual does), because I have lots of old posts that I need to edit and they are kind of minified.

I know that the Visual editor wraps codes, replaces short codes and so on. I know how to disable all the Visual editor, using this:

add_filter( 'user_can_richedit' , '__return_false', 50 );

And I also know how to prevent the Visual editor from messing the HTML (Preserved HTML Editor Markup plugin), but those doesn't fit me. I wanted that my HTML wasn't stripped, only auto indented. What can I do?

Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.