Merge pull request #155 from maestrofjp/master

DOCO: Added information about usage of HTMLField
This commit is contained in:
Iacopo Spalletti 2014-07-30 22:40:05 +02:00
commit 97ea29deab
1 changed files with 8 additions and 0 deletions

View File

@ -202,6 +202,14 @@ And use it in your models, just like a ``TextField``::
class MyModel(models.Model):
myfield = HTMLField(blank=True)
This field does not allow you to embed any other CMS plugins within the text editor. Plugins can only be embedded
within ``Placeholder`` fields.
If you need to allow additional plugins to be embedded in a HTML field, convert the ``HTMLField`` to a ``Placeholderfield``
and configure the placeholder to only accept TextPlugin. For more information on using placeholders outside of the CMS see:
http://django-cms.readthedocs.org/en/latest/extending_cms/placeholders.html
Extending the plugin
--------------------