Example #1
0
 class Media:
     js = editors.getEditorClass().AdminMedia.js
     css = editors.getEditorClass().AdminMedia.css
Example #2
0
 def __init__(self, *args, **kwargs):
     super(ArticleRevisionForm, self).__init__(*args, **kwargs)
     # TODO: This pattern is too weird
     EditorClass = editors.getEditorClass()
     editor = editors.getEditor()
     self.fields['content'].widget = editor.get_admin_widget()
Example #3
0
 def __init__(self, *args, **kwargs):
     super(ArticleRevisionForm, self).__init__(*args, **kwargs)
     # TODO: This pattern is too weird
     EditorClass = editors.getEditorClass()
     editor = editors.getEditor()
     self.fields['content'].widget = editor.get_admin_widget()