[Checkins] SVN: zope.html/trunk/src/zope/html/widget.py - be more
flexible for the editorHeight and editorWidth insertion into
Fred L. Drake, Jr.
fdrake at gmail.com
Wed Oct 18 13:02:02 EDT 2006
Log message for revision 70788:
- be more flexible for the editorHeight and editorWidth insertion into
the JavaScript for the widget
- remove a comment that is too sensitive to bug fixes in browsers
(hence, likely wrong by now)
Changed:
U zope.html/trunk/src/zope/html/widget.py
-=-
Modified: zope.html/trunk/src/zope/html/widget.py
===================================================================
--- zope.html/trunk/src/zope/html/widget.py 2006-10-18 16:52:48 UTC (rev 70787)
+++ zope.html/trunk/src/zope/html/widget.py 2006-10-18 17:02:01 UTC (rev 70788)
@@ -35,16 +35,10 @@
textarea = super(FckeditorWidget, self).__call__()
return textarea + (self.javascriptTemplate % d)
-
- # This uses a hard-coded width instead of a percentage, because
- # the percentage doesn't seem to work in Firefox/Mozilla/Epiphany.
- # Hopefully this will be fixed or there's some better workaround
- # for it.
-
javascriptTemplate = '''
<script type="text/javascript" language="JavaScript">
var oFCKeditor_%(shortname)s = new FCKeditor(
- "%(name)s", %(width)d, %(height)d, "%(toolbars)s");
+ "%(name)s", %(width)s, %(height)s, "%(toolbars)s");
oFCKeditor_%(shortname)s.BasePath = "/@@/fckeditor/";
oFCKeditor_%(shortname)s.Config["CustomConfigurationsPath"] = "%(config)s";
oFCKeditor_%(shortname)s.ReplaceTextarea();
More information about the Checkins
mailing list