That's a great site, thanks for sharing it!
On Tue, Jan 7, 2014 at 6:28 PM, Neum Schmickrath <[email protected]>wrote: > Took me quite a while to track this down. The problem was not the actual > button tag - it was the <a> inside of it. There may be other combinations > of tags that Bootstrap uses that would need to be added here but none that > I've encountered yet. I added a pull request with the change here > https://github.com/stephenmcd/mezzanine/pull/886. > > I also noticed that there were two entries for "theme_advanced_styles" in > the config. Not sure if that was intentional or not. > > Thanks for getting back to me so quick in response. It helped me track it > down by focusing on TinyMCE. > > Also, not sure where to add new sites but I created aldlocator.com a few > months back and it's powered by Mezzanine and Postgis. > > > On Monday, January 6, 2014 12:26:05 PM UTC-7, Stephen McDonald wrote: > >> All the filtering occurs server-side, but it looks like "button" tags are >> somehow being stripped by tinymce itself client-side, so you'll need to >> play withs its config to resolve it. Please let us know what you change, >> because we can make that the default - feel free to create a pull request >> with the change too. >> >> >> On Tue, Jan 7, 2014 at 4:09 AM, Neum Schmickrath <[email protected]>wrote: >> >>> Developing a new site and I've noticed that Bleach seems to filter out >>> tags commonly used in Bootstrap. In this case I'm trying to add some HTML >>> to a rich text page like: >>> >>> <button type="button" class="btn btn-primary"><a href="/about-us-events"> >>> Events</a></button> >>> <button type="button" class="btn btn-primary"><a >>> href="/advocacy/hearing-loss/">Hearing Loss Advocacy</a></button> >>> >>> But bleach strips out the <button> tags. I tried changing the RichText >>> Filter setting to None, but that does not affect this. It seems it would >>> also filter out many of the other common Bootstrap tags such as <small> etc. >>> >>> I can add these (and others) to the ALLOWED_TAGS settings in Bleach, but >>> I'm wondering if anyone else has dealt with this and if there is a best >>> approach to adding Bootstrap tags to bleach? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Mezzanine Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> >> >> -- >> Stephen McDonald >> http://jupo.org >> > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
