Forum:Rich text editor removing formatting in bulleted and ordered lists

Given for example the following wiki-code
 * 1) * this can be done in any order, and should be under 1
 * 2) * this can be done in any order, and should be under 1
 * 3) * this can be done in any order, and should be under 2
 * 4) * this can be done in any order, and should be under 2
 * 1) * this can be done in any order, and should be under 2
 * 2) * this can be done in any order, and should be under 2

and it should render as:


 * 1) * this can be done in any order, and should be under 1
 * 2) * this can be done in any order, and should be under 1
 * 3) * this can be done in any order, and should be under 2
 * 4) * this can be done in any order, and should be under 2
 * 1) * this can be done in any order, and should be under 2
 * 2) * this can be done in any order, and should be under 2

But that is only until someone edits it using the Rich Text Editor and saves the page. In fact, you only have to switch from the Visual-mode to the Source-mode tab and it removes the lone #'s which preserves the numbering and bulleting the intended way.

A workaround might be to actually write some text after the #, but this would not reflect what the game is saying, and we would have to invent some random text.

I can turn the rich text editor off for myself, and I can inform the few registered editors on the Wiki, but the IP-editors don't know this and it is a tad difficult to inform them before they have already done an edit, probably editing something completely different and unrelated.

The number of pages on the wiki is still relatively small, but if the amount of pages increases, and the visitors get more frequent this can become an annoying problem.

So I guess: Is there any way you can turn off the rich text editor off on an individual Wiki? –Laniala (talk) 07:48, July 31, 2012 (UTC)


 * It may be possible to disable the visual editor wiki-wide. You'd need to send a request to Staff using Special:Contact -- and they will likely want to see some kind of community vote or agreement to change a feature wiki-wide for you.


 * However, this may not be necessary. You could trick the RTE like this:


 * 1) asdf
 * 2) * this can be done in any order, and should be under 1
 * 3) * this can be done in any order, and should be under 1
 * 4) asdf
 * 5) * this can be done in any order, and should be under 2
 * 6) * this can be done in any order, and should be under 2
 * 1) asdf
 * 2) * this can be done in any order, and should be under 1
 * 3) * this can be done in any order, and should be under 1
 * 4) asdf
 * 5) * this can be done in any order, and should be under 2
 * 6) * this can be done in any order, and should be under 2


 * By the way, sorry it slipped my mind, but you can also disable the visual editor on an individual page by using the __NOWYSIWYG__ __NOWYSIWYG__ magic word. That's probably a better solution than trying to trick the RTE :P

  
 * this can be done in any order, and should be under 1
 * this can be done in any order, and should be under 1
 * this can be done in any order, and should be under 2
 * this can be done in any order, and should be under 2
 * You could also use an ol tag instead of the octothorps --


 * Thanks for the quick answer! Using __NOWYSIWYG__ could be a solution. But... I don't suppose it is possible in some way to add this into the template all these pages are using? I tried adding it, and it might just be a caching issue, but it does not seem the RTE looks into what the templates actually do, but just puts a puzzle icon when it sees a template call.  *ponder*
 * And I suppose it could also be an option to change to pure html-code, but it's going to be a bit tedious... so was hoping for an easlier solution :)  –Laniala (talk) 08:34, July 31, 2012 (UTC)


 * Templates have no effect on the editor. They have no effect at all until you publish the page. Think about it: If that where otherwise: How would you be able to edit or create templates? :)

You can't use __NOWYSIWYG__ inside of a template, no. But, there is another trick you could use instead. Passing a template as a parameter to another template kills the RTE as well. For example, say your wiki has templates called "Test" and "Test2". Then if you put  on a page, it will disable the RTE because that code is too complex for the RTE to read. Admittedly, that is not a polite way to disable the RTE. But it works.


 * Wow! That's awesome. I love that :) --