How to control allowed HTML tags in WMD Editor?
Posted
by Toto
on Stack Overflow
See other posts from Stack Overflow
or by Toto
Published on 2009-03-04T13:15:29Z
Indexed on
2010/03/21
8:01 UTC
Read the original article
Hit count: 444
I am trying to some-how set the valid HTML tags and attributes users would be able to use in WMD Editor in my site. For example, I want to forbid the user to directly set the font size, color, typeface and so on, which is trivial to do with the default settings typing something like:
<span style="font-size: 45px; color:#FF0000">Some intrusive text here</span>.
I think the way to implement this is through the "wmd_options", but I have not found any documentation or reference regarding this, giving the fact that the 'Options demo' seems to be the only public documentation and it does not show how should I do what I have described above.
I've send this same question to [email protected] but didn't get any reply. As stackoverflow uses this editor someone reading this or maybe Jeff knows the answer ;)
Thanks in advance!
© Stack Overflow or respective owner