Ok, I solved the problem. First I have put form.media where it should be,
in the header. But that did not change the behavior I described in the
previous post. Then I have replaced form.as_p with fields_for form,
removing csrf_token because fields_for creates the token automatically. So,
in this way, it has worked:
{% extends "base.html" %}
{% load mezzanine_tags i18n %}
{% block extra_head %}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block main %}
{% block my_form %}
<form method="post">
{% fields_for form %}
<button type="submit" class="btn btn-primary">{% trans "Submit"
%}</button>
</form>
{% endblock %}
{% endblock %}
Il giorno mercoledì 20 giugno 2012 19:27:09 UTC+2, Daniel França ha scritto:
>
> Olá, pessoa.
> Estou tentando utilizar o campo RichTextField em um formulário que estou
> criando para o meu site, porém quando entro com um usuário que não é
> superuser o campo aparece como textarea simples, tem alguma configuração
> que preciso mexer ou algo que posso fazer para que mesmo os usuários
> simples tenham acesso ao RichTextField?
>
> Abs,
> Daniel França
>
--
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.