Description
In current 1.6/1.7 dev inserting a macro from the gui uses the old [[ ]] instead of << >>
The Macro sign should be changed to the new syntax too
Steps to reproduce
- edit a page with the gui editor
- click on insert/edit macro
- select BR for example
The BR is inserted as [[BR]]
Example
Component selection
javascript code of gui
- general
Details
MoinMoin Version |
1.6 dev / 1.7 dev |
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
apply the following patch:
Toggle line numbers
1 --- moin-1.6-260907-unpatched/share/moin/htdocs/applets/moinFCKplugins/macro/fckplugin.js 2007-09-28 18:26:12.000000000 +0200
2 +++ htdocs/applets/moinFCKplugins/macro/fckplugin.js 2007-09-28 18:26:49.000000000 +0200
3 @@ -26,6 +26,6 @@
4 // Add a new macro at the actual selection.
5 FCKMacros.Add = function(name)
6 {
7 - var oSpan = FCK.InsertHtml('<span style="background-color:#ffff11">[['
8 - + name + ']]</span>');
9 + var oSpan = FCK.InsertHtml('<span style="background-color:#ffff11"><<'
10 + + name + '>></span>');
11 }
and change the icon to reflect the new syntax
Discussion
Plan
- Priority:
- Assigned to:
- Status: fixed in 1.6 by changeset 2225:ba3bb2af870a, TODO: port to 1.7