https://bugzilla.wikimedia.org/show_bug.cgi?id=52471

       Web browser: ---
            Bug ID: 52471
           Summary: VisualEditor: Provide a way for interface messages,
                    edit notices, etc to display different content to
                    Visual and Source editors
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: MediaWiki integration
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

en.wp user Andrew Gray notes that on creating a page in VE he is given several
alternatives to writing a new article, one of which is to search for an
existing page to redirect the title to. He asks whether this should be offered
to VE users while it does not support redirects.

However, the message is provided by [[MediaWiki:Newarticletext]] and the text
is served identically in the source and visual editors. There is no current
mechanism to detect in which editor it is being displayed so different content
cannot be provided.

There will be occasions where such messages and also edit notices are only
relevant to either source or visual editor users or are differently relevant.
In other cases the different display formats (e.g. generally horizontal in
source, generally vertical in visual) may lead to different presentation
choices for optimum impact.

As it is not inconceivable that there will in future be other editors
(developed by WMF or others) there should be some way for the editor to
uniquely declare itself to such messages and for them to be able to determine
what they do if they don't recognise the response. Sort of a:
IF editor="VisualEditor" THEN do X ELSE do Y

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to