Come up with an alternative to having multiple slugs (invitations to add a paragraph) next to each other that preserves editing capabilities
Open, LowestPublic40 Story Points

Description

While editing this article with Visual Editor, I found 4 invitations to add a new paragraph one after the other. As shown below it seems too many of them:

The article starts with several images, and that may be creating some confusion to VE.

Pginer-WMF updated the task description. (Show Details)
Pginer-WMF raised the priority of this task from to Needs Triage.
Pginer-WMF added a project: VisualEditor.
Pginer-WMF added a subscriber: Pginer-WMF.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 3 2015, 9:38 AM

Yup, one for each of the floated-right block items in the context. The alternative is picking which point we 'allow' the user to insert content between images, which is worse.

It is not clear to me why there are just two alternatives. I was thinking on the following options instead:

  • Detect when there are several elements in a row and show the invitation to add a paragraph just once.
  • Avoid images (and similar elements) to trigger the new paragraph invite at all.

Those may require more effort than what is worth it for the value they provide (I'll leave that assessment to you), but I think today's technology seems powerful enough to not declare this problem unsolvable.

Jdforrester-WMF renamed this task from Multiple invitations to add a paragraph next to each other to Come up with an alternative to having multiple slugs (invitations to add a paragraph) next to each other that preserves editing capabilities.
Jdforrester-WMF triaged this task as Lowest priority.
Jdforrester-WMF set Security to None.
Jdforrester-WMF edited a custom field.
Elitre added a subscriber: Elitre.Mar 27 2017, 2:22 PM

Wrapping the list of images in a begin/end pair of templates solves the issue of multiple slugs, see: https://ca.wikipedia.org/w/index.php?title=Usuari:Ad_Huikeshoven/proves&veaction=edit.

The begin template is just <div> and the end template is just </div>. Just a pair of tags that has been split over two templates. Visual editor the matching pair of templates and all in between as a single transclusion, hence no slugs, let alone multiple slugs.

It also prevents you from editing the images visually… please don't do that :) It helps for the specific case nl.wp had a problem with (T161408), but unless the content you wrap is already mostly made up of templates, it will result in worse interface in VE (and it's clutter in the page source).