Page MenuHomePhabricator

TemplateStyles not loaded in NWE preview
Open, Needs TriagePublic

Description

Whenever I edit pages with templates that use TemplateSyles in the New Wikitext Editor, during the page preview the styles are apparently not loaded at all, leading to a very different result in the preview and after saving. This causes confusion for users not aware of TemplateStyles and makes it impossible to get to see a realistic preview of pages in the NWE. I hope there is an easy fix to the problem!

Event Timeline

Restricted Application added a project: VisualEditor. · View Herald TranscriptDec 16 2018, 1:23 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
JTannerWMF moved this task from To Triage to FY 19-20 on the VisualEditor board.Dec 19 2018, 6:40 PM
JTannerWMF added a subscriber: JTannerWMF.

Our plan is to look into the level of effort of fixing this

Cirdan added a subscriber: Cirdan.Dec 20 2018, 4:05 PM
Jc86035 added a comment.EditedDec 18 2019, 3:22 AM

This appears to be more or less the same issue as in T188143: VisualEditor does not like TemplateStyles; the <style>...</style> tags are gone and only <span about="#mwt1"> </span> tags are left.

Anomie moved this task from Up next to External on the TemplateStyles board.Dec 18 2019, 3:49 PM

Anything happening here? Lately I find myself always switching editors whenever I have to work with templates. That slows down the workflow quite a bit.