megamahi avatar 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:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.