VisualEditor: Hatnote templates not displaying properly
Closed, ResolvedPublic

Description

How the hatnote appears in the VE when it is added

This takes some effort to replicate, so bear with me; if you insert a hatnote at the beginning of a line, it renders improperly in the VisualEditor - despite rendering properly in the article text, /and/ in subsequent loads of the VE. Screenshots of each attached.

As User:PamD adeptly summarises, "if VE doesn't display the result of a change, or displays it looking wrong, editors are going to assume that their edit didn't work and struggle to "fix" it"


Version: unspecified
Severity: normal

Attached:

bzimport added a project: VisualEditor-DataModel.Via ConduitNov 22 2014, 1:46 AM
bzimport set Reference to bz50363.
Ironholds created this task.Via LegacyJun 28 2013, 10:55 AM
Ironholds added a comment.Via ConduitJun 28 2013, 10:55 AM

How the hatnote appears in "read" mode

Attached:

Ironholds added a comment.Via ConduitJun 28 2013, 10:55 AM

How the hatnote appears in subsequent VE loads.

Attached:

Jdforrester-WMF added a comment.Via ConduitJul 26 2013, 10:41 PM

So, I've read this a number of times and I'm not quite sure I know what you're getting at.

Steps:

  1. Go into a page
  2. Click into a blank line; insert template "Hatnote", parameter 1 = "Foo".
  3. Template appears on its own line, as expected.
  4. Template saves on its own line, as expected.
  5. Page rendered with template in the right place, as expected
  6. Edit article.
  7. Template is still there in VisualEditor, as expected.

Try two:

  1. Go into a page
  2. Click into the start of a non-blank line; insert template "Hatnote", parameter 1 = "Foo".
  3. Template appears at the start of the line, a little oddly as it's a <div>, because of bug 49784.
  4. Template saves at the start of the line, as expected.
  5. Page rendered with template on its own line, as expected.
  6. Edit article.
  7. Template is still there in VisualEditor at the start of the line, as before.

I assume you mean that this is an issue because it doesn't show up on its own line? If so, this is just a plain duplicate of bug 49784.

Ironholds added a comment.Via ConduitJul 29 2013, 5:14 PM

Fair play; marking as duplicate.

*** This bug has been marked as a duplicate of bug 49784 ***

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.