Revision [17089]
This is an old revision of WikkaEdit made by OlivierBorowski on 2007-06-30 11:52:03.
What is WikkaEdit ?
WikkaEdit plan to replace WikiEdit (official website)Indeed, WikiEdit is not actively maintained (latest improvements are from 2004)
Demo server
- stripped version (may be in WikkaWiki 1.1.7.0)
- with partial actions support
Changes for the user
- support for actions- editor height follow window height
- additionnal buttons
- new search & replace window
- indent / un-ident now use Tab key instead of ctrl+I / ctrl+U => bad idea?
- shortcuts for heading (ctrl+1...5) have not been integrated => useful?
- shortcuts for bulleted/numbered item have not been integrated => useful?
- shortcuts for links item have not been integrated => useful?
Shortcuts
- ctrl + B : bold- ctrl + I : italic
- ctrl + U : underline
- ctrl + shift + S : strike
- ctrl + F : open search & replace dialog
- tab : indent
- shift + tab : un-indent
- escape : leave focus
Known bugs
Common :- undo (ctrl+Z) sometimes select the whole textarea instead of the changed characters (already here in WikiEdit)
Gecko browsers :
no specific bug
Konqueror :
- shortcuts don't work (except "tab" key)
Opera :
- the textarea is not scrolled automatically to follow selection
- shortcuts can't block default browser behaviour, so Ctrl+F display the browser "Find" window
Safari :
- Ctrl+F display the browser "Find" window
Installation
- grab the source code
With SVN :
svn checkout https://wush.net/svn/wikkacase/wikkaedit/trunk wikkaedit_trunk
- in handlers/edit.php (1.1.6.x) or handlers/edit/edit.php (trunk)
$output .= '<script type="text/javascript" src="'.$this->StaticHref('3rdparty/plugins/wikiedit/protoedit.js').'"></script>'."\n".
'<script type="text/javascript" src="'.$this->StaticHref('3rdparty/plugins/wikiedit/wikiedit2.js').'"></script>'."\n";
$output .= '<script type="text/javascript">'." wE = new WikiEdit(); wE.init('body','WikiEdit','editornamecss');".'</script>'."\n";
'<script type="text/javascript" src="'.$this->StaticHref('3rdparty/plugins/wikiedit/wikiedit2.js').'"></script>'."\n";
$output .= '<script type="text/javascript">'." wE = new WikiEdit(); wE.init('body','WikiEdit','editornamecss');".'</script>'."\n";
with
$output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit_data.js"></script>'."\n";
$output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit_search.js"></script>'."\n";
$output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit_actions.js"></script>'."\n";
$output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit.js"></script>'."\n";
$output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit_search.js"></script>'."\n";
$output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit_actions.js"></script>'."\n";
$output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit.js"></script>'."\n";
Note : wikkaedit_search.js (search&replace) and wikkaedit_actions.js (additionnal toolbar and contextual help) are optionnal. Just remove or comment the related line to disable it.
TODO
- better table support?Suggestions
- drop down menu for different kinds of ordered lists (instead of 3 buttons)- define actions where the users should select some text before clicking a button. For example: for the color action, the users may first select a word, and when s/he clicks the colored text button: the selected word will be inserted inside the text="" parameter. Such actions may have a slightly different background-color: so the user knows that they act on selected text.
Changelog
check SVN for detailed changelog2007-06-30 :
- better log console (fixed position and reverse log order)
- new search & replace (redeveloped from scratch)
- new variables for modules (search&replace, actions) and browser detection
- the find button only appears when the search&replace module is enabled
- add shortcut_summary and formatting_guide buttons and related code
- fix shortcuts for indent / unindent
- add escape shortcut to leave textarea (useful for keyboard navigation)
- previously addToSelection() was selected the whole modified text, now it select a bit lesser
- the small delay required by khtml for setSelectionRange was enable for every browser
- add some comments
2007-05-23 :
- fix lots of bugs on konqueror introduced by the additional setTimeout() in setSelectionRange()
- move contectual help related code to wikkaedit_actions.js
- add some comments
- better autoindent behaviour
- actions (indent, text style...) should not move scrollbar to top anymore
2007-03-22 : fix a bug with opera
2007-03-21 : added tooltips for help
2007-03-14 : added actions and a new contextual help
2007-02-21 : added "center", "comment", "image", "raw html", "sourcecode" buttons
and a submenu containing "monospace", "left float", "right float" and "key"
2007-02-14 : DotMG released a patch to add autoindent, just commited
2007-02-12 : initial revision