editor.py 422 B

123456789101112
  1. class Editor(object):
  2. """
  3. Misago editor class
  4. """
  5. def __init__(self, field, allow_mentions=True, allow_links=True, allow_images=True, allow_blocks=True):
  6. self.field = field
  7. self.auto_id = 'misago-editor-%s' % field.auto_id
  8. self.allow_mentions = allow_mentions
  9. self.allow_links = allow_links
  10. self.allow_images = allow_images
  11. self.allow_blocks = allow_blocks