Description
There is a bug in teh FCKEditor Format Menu. Heading 5 is missing and Heading 1 produces h2 (== text ==) in stead of h1 (= text =)
Steps to reproduce
Just edit with the GUI editor and then switch to text editor and you will see that the headings are wrong.
Example
Screenshot of the bug
Component selection
- applets/moinFCKplugins/moinformat
Details
This Wiki. Occurs in 1.8.0.
Workaround
Use text or external editor or patch the file.
Discussion
This patch fixes the problem :
1 diff -r fb0f0e80ba26 -r 02670ba14b08 wiki/htdocs/applets/moinFCKplugins/moinformat/fckplugin.js
2 --- a/wiki/htdocs/applets/moinFCKplugins/moinformat/fckplugin.js Fri Nov 07 08:19:28 2008 +0100
3 +++ b/wiki/htdocs/applets/moinFCKplugins/moinformat/fckplugin.js Sat Nov 08 11:43:04 2008 +0100
4 @@ -36,13 +36,14 @@
5 // Get the format names from the language file.
6 var aNames = FCKLang['FontFormats'].split(';');
7 var oNames = {
8 - p : aNames[0],
9 - pre : aNames[1],
10 - h2 : aNames[3], // h2 as Title 1
11 - h3 : aNames[4], // and so on
12 - h4 : aNames[5],
13 - h5 : aNames[6],
14 - h6 : aNames[7]
15 + p : aNames[0],
16 + pre : aNames[1],
17 + h1 : aNames[3], // h1 as Title 1, aNames[2] is adress
18 + h2 : aNames[4], // and so on
19 + h3 : aNames[5],
20 + h4 : aNames[6],
21 + h5 : aNames[7],
22 + h6 : aNames[8]
23 };
24
25 // Get the available formats from the configuration file.
Should be tested of course. Note the hg diff was edited so may not work with hg. May need to patch manually.
Plan
- Priority:
- Assigned to:
Status: patch applied as http://hg.moinmo.in/moin/1.8/rev/5ccf04ad9941 - thanks Preben!