megamahi avatar megamahi committed 509ec57

Name refactoring TinyMCE to TinyMCEWidget

Comments (0)

Files changed (3)


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


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


 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()
         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
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.