Ticket #578 (closed task: fixed)
Upgrading from WikiEdit to WikkaEdit
| Reported by: | OlivierBorowski | Owned by: | OlivierBorowski |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1.6.4 |
| Component: | editor | Version: | 1.1.6.3 |
| Severity: | normal | Keywords: | wikiedit wikkaedit editor |
| Cc: | raffa, DotMG |
Description
This ticket summarize the changes to switch from WikiEdit (default editor in Wikka 1.1.6.3) to WikkaEdit (default editor in Wikka 1.1.6.4)
1) Small display problem with external link symbol : #577
2) Textarea is too large : #576
WikkaEdit toolbars are inserted just before and after the textarea. Changing textarea style could break WikkaEdit.
3) Installation
- New files : Every scripts and pictures are in /3rdparty/plugins/wikkaedit (done for 1.1.6.4 in changeset [779] [783] [784])
- Existing files : In /handlers/page/edit.php, replace :
if ($this->config['gui_editor'] == 1)
{
$output .= '<script type="text/javascript" src="3rdparty/plugins/wikiedit/protoedit.js"></script>'."\n".
'<script type="text/javascript" src="3rdparty/plugins/wikiedit/wikiedit2.js"></script>'."\n";
$output .= '<script type="text/javascript">'." wE = new WikiEdit(); wE.init('body','WikiEdit','editornamecss');".'</script>'."\n";
}
with
if ($this->config['gui_editor'] == 1)
{
$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.js"></script>'."\n";
}
To save 15kB, you can disable search&replace by removing the "wikkaedit_search.js" related line.