Wiki

More Wiki Weirdness

 
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.
Picture of Les Bell
More Wiki Weirdness
 

As I work on my recently-upgraded server, I'm seeing more weirdness with the 2.9 wiki module.

For example, after editing a page and creating three headings, formatted as "Heading (large)" which I presumed would be a Level 1 heading, I get a Table of Contents like this:

To me, that looks as though those are level 3 headings (which I'd thought would be "Heading (small)".

Sure enough, editing the raw HTML shows that "Heading (large)" is actually <h3>, not <h1>, and editing it to correct the levels in the raw HTML gives me much bigger headings, with "[Edit]" buttons to the right, and a much more useful table of contents at the top:

I'm using the Atto HTML editor. Is there any way to get it to behave better, or should I switch to TinyMCE? Or am I missing something?

--- Les


 
Average of ratings: -
Picture of Les Bell
Re: More Wiki Weirdness
 

I've now found the other threads about this, at https://moodle.org/mod/forum/discuss.php?d=310805 and https://moodle.org/mod/forum/discuss.php?d=270112, and can confirm that Bruno Manzoni's patch in the latter thread basically fixes the problem. It doesn't put in "[edit]" links against the <h3> - <h5> headings in the ToC or the wiki page, but that's something I can live without.

This gets the Atto editor working "correctly" with the wiki; TinyMCE users just have to remember that a Level 3 heading is the top level in a wiki page (a convention I'd adopted previously anyway - <h1> and <h2> are used in the main course page.

If I get time I'll investigate this further, but it's been years since I looked at the PHP internals of Moodle. sad

 
Average of ratings: -