VisualEditor: Things are sometimes alienated as block when they should be inline
Closed, ResolvedPublic


"phantoms" text is wrapped into a "div class="ve-ce-phantoms" " which adds a linebreak because div is a block element, see

Better to use a span I think.

Version: unspecified
Severity: normal

bzimport set Reference to bz43056.
Raymond created this task.Via LegacyDec 13 2012, 8:11 AM
Catrope added a comment.Via ConduitDec 13 2012, 8:56 AM

Fixing summary. Editable nodes are called "aliens". The "phantom" is the green hatched-out overlay that appears when mousing over an alien. It's an absolutely positioned <div> that exists outside of the main editor DOM. Because of the mouseover effect, you can't actually inspect the aliens themselves easily, but when you do, you'll find that the actual uneditable content is in <div class="ve-ce-alienBlock"> or <span class="ve-ce-alienInline"> as appropriate.

The issue here is that some things (nowikis in Raymond's example, and I've seen some references do it in the wild) are alienated as alienBlock nodes by when they should really be alienInline nodes.

Jdforrester-WMF added a comment.Via ConduitJan 8 2013, 8:58 PM

Merged; code will be deployed as part of the 2013-01-16 release cycle.

Add Comment