Wordpress TinyMCE keeps it clean, how?
Posted
by Frankie
on Stack Overflow
See other posts from Stack Overflow
or by Frankie
Published on 2010-05-04T19:06:03Z
Indexed on
2010/05/04
19:08 UTC
Read the original article
Hit count: 334
tinymce
I've noticed that the latest version of TinyMCE on Wordpress manages text in a very 'clean' way.
Pasting from MS-Word it strips out all html text blocks, like <p>
's, and shows the text cleared of any odd formatting preserving only links, bolds and underlines.
On top of that the source code format is very clear. No <br />
's everywhere. You only see \n
's and the expected <strong><u><i>
tags.
I've been messing up with TinyMCE configuration files for some time with little success. I did manage to get all formatting removed. I can't, however, put TinyMCE to display the \n
's as <br />
's lie Wordpress does it.
Tried preformatted : true
with no success whatsoever.
Has anyone here been able to do it?
Thank you in advance, Francisco
© Stack Overflow or respective owner