Pavel Member |
# Posted: 14 May 2009 12:12 - Edited by: Pavel
Hello! First of all, I would like to thank the author of Wyzz. It is great work, nice and light wysiwyg editor and definetely my choice. :) So I downloaded version 0.65 from this site and refactored it a little bit, fixed some minor bugs etc.
My version (Jwyzz) is 34Kb (Wyzz is 32Kb). I compared performance using JSLitmus and it is the same. My changes are:
1. Jwyzz object in JSON notation. Cleaner code: all functions moved to the Jwyzz scope, no global name conflicts.
2. popup windows contain many links. When clicking on them, page is automatically scrolled up. I've added <a href="#" onClick="return false" to avoid page scrolling.
3. wyzzW & wyzzH are taken from textarea.offsetWidth & offsetHeight
4. named toolbars: std (standard), ext (extention), i.e.
var buttons = {
std: [
"font", "headers", "|",
"bold", "italic", "underline", "strikethrough", "|",
"undo", "redo"],
ext: [
"specialchar", "|",
"forecolor", "backcolor", "|",
"htmlmode", "|",
"help"]
};
5. insertLink, insertImage: if 'Cancel', no further processing
6. Jwyzz_base_path variable for all icons and css added, i.e.
editstyle = Jwyzz_base_path+'styles/editarea.css';
7. document.write <link> tag to upload a wyzz stylesheet conflicted with my ajax call of wyzz.js. When I call wyzz.js, page refreshes. So I commented 'document.write('<link' line out.
_____________________
If you are interested in my version of Wyzz, write your email and I will send it to you.
|