Htmleditor Property Type Support
INSTALLATION
IMPORTANT WARNING: This software runs only in Internet Explorer 5.0 for PC, and Zope 2.3 and above. Backup and/or rename your existent "properties.dtml" file located at "/lib/python/OFS/dtml" before attemting to unpack the zip file.
- Unpack the zip file at the Zope's install folder in your file system. It will leave the "htmleditor.zexp" file at the "import" folder, an a modified version of "properties.dtml". - Within the root folder of Zope's management screen, import the object "htmleditor.zexp": - Click on the "Import/Export" button. - Write "htmlEditor.zexp" at the "Import file name" field and click the "Import" button. - The folder "htmlEditor" will be created at the root.
SIMPLE USE INSTRUCTIONS
- A new "htmlEditor" property type will appear at the "Properties" interfaces of every object. When added the htmleditor property, an apparently standard text window will be rendered, but a WSYIWYG checkbox will appear. Use it to toggle to WYSIWYG mode. - The folder "htmleditor" at the root has the property "window_height" wich works as a parameter for the height of the htmlEditor window. - There is also an "icons" folder wich contains all the icons appearing at the "Topic Icons" pop-up window, when at WYSIWYG html edit mode. Feel free to experiment and use your own topic icons.
LIMITATIONS
- It hasn't been tested at IE 4.0. No warning message appears when pages are viewed by a different browser/platform configuration. (I just forgot it :) ) - You can create only one htmleditor property per object. Again, no warning message appears when an infrigement occurs. - A full testing on its use with Zclasses is welcomed. - Due to javascript processing, on slow machines there will be a time lag between the render of the Properties page and the use availability of the htmldditor window, wich could be longer through the Internet. As a thumb rule, wait for the WYSIWYG checkbox to become white.
DISCLAIMER
- This software uses code written in JavaScript that has been found at a public
web site, and I share it as a working demonstration of the features intended for
a future Zope product totally written in Python. There's no commercial use or
intentions about this release, and by using it you agree and you're enforced to do
the same.
- The "properties.dtml" file is a core file of the Zope distribution. I had to
modify it to include the necessary javascript. The modifications are evident
within my version. I'm not a programmer so please forgive any redundances or
inconsistencies that could've been avoided. If you succeed at making simplifications,
please let me know.
Ausum March 19th, 2001