I will thank you to not shame me for having trouble understanding your
question.

Best regards,
ken

On Mon, Aug 21, 2017 at 5:59 PM, Malik Rumi <[email protected]> wrote:

> Ryne:
>
> 1. Ok, done.
> 2. I already have those in place.
> 3. You are now referencing the *actual* project settings, not Kenneth's
> "proper place". These are *not* existing settings, these are settings I
> am to *add* to what is already there, right?
> Note that in /bleach/sanitizer.py, I had already tried :
>
> ALLOWED_STYLES = ['*']
>
> ALLOWED_STYLES = ['background', 'background-color', 'color']
>
>
> Neither of which worked. Also note that sanitizer expects a list, but you
> are using a tuple, if that matters.
> So I made the changes you suggested, and I am more than happy to report
> that yes, indeed, we finally have a winner!
>
> Thank you so much, Ryne, for hanging in there with me and finding the path
> to the right solution. It is deeply appreciated. I didn't 'get' that these
> changes were to be made in, or added to, the project settings, and not in
> the various files in the library which I, rightly or wrongly, thought the
> docs were directing me to. If I had seen them in the default settings with
> blanks or the instruction to 'add or insert here', which is the way Django
> does their models, admin, and views.py, I would not have made this error.
> So you might suggest that to whoever is on the docs team. Just my 2 cents.
> Again, thank you. Now I can start using and enjoying Mezzanine, instead of
> being frustrated by it.
>
> On Monday, August 21, 2017 at 9:26:05 AM UTC-7, Ryne Everett wrote:
>>
>> I just created a fresh project and got the forecolor and background
>> buttons working:
>>
>> 1. `cp mezzanine/mezzanine/core/static/mezzanine/js/tinymce_setup.js
>> example_project/static/`
>> 2. Edit tinymce_setup.js, adding "textcolor" to `plugins` and "forecolor
>> backcolor" to `toolbar`.
>> 3. Edit settings:
>>
>>     TINYMCE_SETUP_JS = 'tinymce_setup.js'
>>     RICHTEXT_ALLOWED_STYLES = ("border", "display", "float",
>> "list-style-type",
>>                                "margin", "margin-bottom", "margin-left",
>>                                "margin-right", "margin-top",
>> "padding-left",
>>                                "text-align", "text-decoration",
>> "vertical-align",
>>                                "color", "background-color")
>>
> --
> 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.
>

-- 
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