My website name is example.com.  So, my Installation is 
/sites/mezzanine/example.  Inside this, I have another directory called 
example containing settings.py.  That is,

/sites/mezzanine/example/example/settings.py

I created /sites/mezzanine/example/example/defaults.py with content:


from mezzanine.conf import register_setting

register_setting(
  name = 'RICHTEXT_ALLOWED_STYLES',
  append = True,
  default = (
    'color',
    'background-color',
    'width',
    'height',
    'border-width',
    'font-family',
    'font-size',
    'line-height',
    'letter-spacing',
  )
)

However, when I login as admin user into my website and edit a RichText 
page to include colored text (using TinyMCE menu button), the inline style 
attribute of "color: red" is stripped off from <span> tag.

The Documentation vaguely mentions about App's directory; Does this mean 
lib/python2.7/site-packages/mezzanine/core ?  I don't want to put anything 
inside lib/python2.7 because it is a system directory.

I am using default installation of Mezzanine with no other apps in my 
project.  So, where exactly do I put defaults.py so that it is read 
automatically? 

-- 
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/d/optout.

Reply via email to