TinyMCE settings

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/1/2011 5:03:49 AM
Gravatar
Total Posts 31

TinyMCE settings

Hi,

We wanted to add a style tag in a html content. But when we added it, TinyMCE deleted my style tags automatically.

So I tried to add "style" to FullToolbarExtendedValidElements in my TinyMCE settings. But that didn't work. After that I added "*[*]" to all ValidElements settings. Even that didn't change anything. On the site of tinyMCE I read that setting "Cleanup" to False could work so I tried this but again no luck, TinyMCE is still deleting my style tags ( <style></style> and everything in it ).

After that I tried to set the toolbar to the bottom position to check if the settings were working (And if I was editing the right file). and this worked.

Does anyone know how to accomplish this?

King regards,
Laurence Mommers

7/1/2011 5:36:15 AM
Gravatar
Total Posts 18439

Re: TinyMCE settings

style element is not valid outside of the head element, TinyMCE is supposed to help you make valid markup and do the right thing. You should add styles in the CSS files used by the skin rather than put it in the html.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.