Topic on Project:Support desk

Page Editing Error (Collapse/Expand)

2
Richarddteamaccent (talkcontribs)

When editing text through the "Edit" section in MediaWiki 1.29.0, I experience the following:

Source code produces the following output:

Process

Process examples to communicate issues and templates to coders and editors. Test 2

  • Check engine oil level

null Expand

However, when editing text, for example, if I wanted to remove "Test 2" using "Edit" above, the following happens in the source code:

* <span class="mw-customtoggle-EngineOil" style="color:#36c">Check engine oil level</span>

<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-EngineOil">

changes to:

* <span class="mw-customtoggle-EngineOil" style="color:#36c">Check engine oil level</span>

<div class="mw-collapsible mw-collapsed">

To summarize, id="mw-customcollapsible-EngineOil" is removed, which causes [Collapse] or [Expand] to appear in the far right, instead of clicking on the header to expand or collapse.

I can work around this by first editing the text and and then going into the source code to re-enter each ID, but that seems very manually intensive.

Has anyone seen this? Is there a fix? (Please let me know if further clarification is required.)

Thank you.

Ciencia Al Poder (talkcontribs)

It may be a bug with Visual Editor and custom togglers.

If you can reproduce it on a WMF wiki (it can be on a sandbox page), report it as a bug