I have a line to be right-aligned. In raw text editing, I can do it by: <div style="text-align: right">...</div>.
When a page containing it is edited by Tiny MCE, the div tag is kept. But when it's saved, it's removed.
Is this an expected behavior? If so, what's a way to have a right-aligned line in a Tiny MCE safe manner?
- 10 Dec 2007
The only way to do this to protect the div with the attribute. in WysiwygPlugin
you will find instructions for setting WYSIWYGPLUGIN_STICKYBITS
I don't think right-aligning in this way is a popular requirement, so i'm not going to add it as a default (it would make importing styled content from M$ Word a complete mess)