Skip to content

Instantly share code, notes, and snippets.

@vojd
Created May 24, 2012 08:52
Show Gist options
  • Save vojd/2780287 to your computer and use it in GitHub Desktop.
Save vojd/2780287 to your computer and use it in GitHub Desktop.
Allow Youtube embedding in Mezzanines tinyMCE editor
# Allow additional attributes to be saved without be saved through tinyMCE and Mezzanine
# Create a file name defaults.py inside any django app
# Mezzanine will then automatically pick up this file
from mezzanine.conf import register_setting
register_setting(
name="RICHTEXT_ALLOWED_TAGS",
append=True,
default=("iframe", "embed", "object"),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment