Commits

megamahi committed 509ec57

Name refactoring TinyMCE to TinyMCEWidget

Comments (0)

Files changed (3)

tw2/tinymce/__init__.py

-from widgets import TinyMCE
+from widgets import *
 from base import MarkupConverter

tw2/tinymce/samples.py

 
 import widgets
 
-class DemoTinymce(widgets.TinyMCE):
+class DemoTinymce(widgets.TinyMCEWidget):
     # Provide default parameters, value, etc... here
     # default = <some-default-value>
     pass

tw2/tinymce/widgets.py

 from tw2.forms import TextArea
 import re
 
-class TinyMCE(TextArea):
+class TinyMCEWidget(TextArea):
     # declare static resources here
     # you can remove either or both of these, if not needed
     resources = [base.tinymce_js, base.tinymce_dir]
     include_dynamic_js_calls = True
 
     def prepare(self):
-        super(TinyMCE, self).prepare()
+        super(TinyMCEWidget, self).prepare()
         options = self.default_options.copy()
         options.update(self.mce_options)
         if self.locale in self.langs: