Last modified: 2014-05-22 06:51:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54471, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52471 - VisualEditor: Provide a way for interface messages, edit notices, etc to display different content to Visual and Source editors
VisualEditor: Provide a way for interface messages, edit notices, etc to disp...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks: 53746
  Show dependency treegraph
 
Reported: 2013-08-02 18:48 UTC by Chris McKenna
Modified: 2014-05-22 06:51 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Chris McKenna 2013-08-02 18:48:35 UTC
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
Comment 1 Jesús Martínez Novo (Ciencia Al Poder) 2013-08-02 19:02:38 UTC
One possible way to do this is using a different interface message for VE in such cases. MediaWiki:Newarticletext-VE for example.

This looks apparently more simple to do than creating yet another programming language to control such logic on the message itself ;)
Comment 2 Chris McKenna 2013-08-02 19:47:56 UTC
Yes, that does sound far simpler to implement! More difficult to keep the two in synch, but I suppose you can't have everything.
Comment 3 Krinkle 2013-09-04 18:41:31 UTC
I don't think there should be a control for separate interface messages.

However either way, meanwhile a workaround is to use a CSS selector (.ve-available or .ve-not-available) to hide or display certain pieces.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links