Page MenuHomePhabricator

Using "New Section", when Syntax highlighter is enabled, wiki markup inserted via CharInsert ends up in the "Subject/headline" instead of the body
Closed, ResolvedPublic

Description

Hello,

Following this discussion on the English Wikipedia Village Pump, I'm filing the following bug report.

To replicate the issue on enwiki:

  1. Make sure the syntax highlighter is on, on your edit toolbar.
  2. Open any talkpage (try the Village Pump)
  3. Click start a new section
  4. Click within/or type something in the "Subject/headline"
  5. Click within/or type something in the edit window.
  6. Now, from the dropdown at the bottom, select "Wiki markup" and click on the "<code></code>" or anything else.

You will notice that the added elements end up in the subject line, and not in the edit window. And at this point, there is no way to add those elements to the edit window.

This doesn't happen if the syntax highlighter is disabled, or if No.4 is not followed (i.e. that field is not activated). The bug is also not active on Meta or Commons as well.

Hope this helps.

Rehman

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Hi @Rehman, thanks for taking the time to report this and for the clear and good steps! Confirming.

Aklapper renamed this task from Issue with syntax highlighter to Using "New Section", when Syntax highlighter is enabled, wiki markup inserted via CharInsert ends up in the "Subject/headline" instead of the body.May 10 2020, 3:47 PM
MusikAnimal claimed this task.
MusikAnimal subscribed.

Not an issue with CodeMirror, rather English Wikipedia's Charinsert gadget didn't have compatibility with CodeMirror. This has since been fixed. Why we're duplicating code already found (and with CodeMirror support) in the CharInsert extension, I'm not sure.