Last modified: 2014-08-04 19:52:14 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 T49779, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47779 - VisualEditor: Provide a way for the user to switch between VisualEditor and wikitext source editor modes without saving
VisualEditor: Provide a way for the user to switch between VisualEditor and w...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
: 49986 50698 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-27 18:28 UTC by James Forrester
Modified: 2014-08-04 19:52 UTC (History)
18 users (show)

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


Attachments

Description James Forrester 2013-04-27 18:28:30 UTC
Provide a way for the user to switch between VisualEditor and wikitext editor modes without saving (whilst preserving their changes) - this is likely to also require bring the wikitext editor inside the VisualEditor interface (or some alternative that also replaces the "Edit source" -> action=edit link with one that POSTs the contents).
Comment 1 tm112 2013-05-20 11:15:22 UTC
To me that doesn't seem to be compliacted to acheive. The way could be to add a button which opens regular Preview (with wikitext editing).
We already can see the diff, so adding regular preview should not be difficult.

And this can be a big convenience because it's easier to edit in VE but we still can't edit/insert some elements like templates.
Comment 2 This, that and the other (TTO) 2013-06-18 02:04:05 UTC
Just pointing out that this is very frequently requested by enwiki users at [[Wikipedia:VisualEditor/Feedback]]. 

I know bug priority is technically up to the developers, but just letting you know that a lot of people want this.
Comment 3 James Forrester 2013-06-18 02:16:47 UTC
(In reply to comment #2)
> Just pointing out that this is very frequently requested by enwiki users at
> [[Wikipedia:VisualEditor/Feedback]]. 
> 
> I know bug priority is technically up to the developers, but just letting you
> know that a lot of people want this.

We understand, and I really want to be able to provide this, but in the choice between this and being able to add references (say) we have to prioritise. However, I'm going to see if we can try to get it done in the next few weeks. Sorry for not being able to make a firm commitment.
Comment 4 tm112 2013-06-18 11:57:46 UTC
I'm asking again if this is very difficult to achieve this by adding (even temporarily!) a regular Preview button, which will allow us to see the source code of already changed content? As I said before we can already see diffs so seeing a preview should be quite easy IMO.

As far as refs are concerned – I agree that's very important. But let me notice that introducing such Preview button would allow to add references in that later step (editing the source code). That would be a great instant (but somewhat temporary) solution for both problems. Then one may work on pretty way of adding refs.

Doesn't it sound good? :)
Comment 5 James Forrester 2013-06-21 23:04:28 UTC
*** Bug 49986 has been marked as a duplicate of this bug. ***
Comment 6 Brion Vibber 2013-07-02 17:47:06 UTC
Adding 'source' to subject line to make this easier to search.
Comment 8 Timeshifter 2013-07-05 00:15:48 UTC
(In reply to comment #7)
> See also:
> * [[Thread:VisualEditor/Feedback/ Side-by-side view (no more?)]]

Helder. I corrected the link (I hope):
* [[mw:Thread:VisualEditor/Feedback/ Side-by-side view (no more?)]]

See: [[WP:Bugzilla]] and the section currently titled "Links from within Bugzilla".

Hey Helder. Maybe you can develop a preview mode for Bugzilla? :) Bugzilla needs a "preview" mode:
*https://bugzilla.mozilla.org/show_bug.cgi?id=40896
Comment 9 James Forrester 2013-07-15 02:29:00 UTC
*** Bug 50698 has been marked as a duplicate of this bug. ***
Comment 10 John Mark Vandenberg 2013-07-20 05:09:55 UTC
I have built a script which switches from VE to SE.
https://en.wikipedia.org/wiki/User:John_Vandenberg/switch_editor

I havent looked at whether the API and VE codebase can support switching from SE back to VE, but it seems like JS could obtain rendered HTML (action=parse?) and load it into VE.

Im not immediately inclined to work on SE->VE, as that could facilitate people playing games with the wikitext in order to put dodgy entries into the 'VisualEditor' tagged edit list, which would be impossible to debug.
Comment 11 Chris McKenna 2013-07-30 19:08:46 UTC
(In reply to comment #10)
> Im not immediately inclined to work on SE->VE, as that could facilitate
> people
> playing games with the wikitext in order to put dodgy entries into the
> 'VisualEditor' tagged edit list, which would be impossible to debug.

That could be mitigated with an editfilter or some other indication that an editor had used both modes. Whether such would be possible or desirable is another matter
Comment 12 John Mark Vandenberg 2013-10-09 06:57:21 UTC
This functionality was requested back in December 2011 in bug 33124.
Comment 13 James Forrester 2013-10-09 14:45:23 UTC
(In reply to comment #12)
> This functionality was requested back in December 2011 in bug 33124.

No? The diff view of the wikitext is not even a read-only view of the entire document's wikitext, let alone an editable one? Also, quickly editing the diff in a pop-over window is fundamentally different paradigm from having a proper wikitext editor available to all users at all times, and being able to switch back and forth, which is what this bug requests.
Comment 14 Helder 2013-10-09 15:51:20 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > This functionality was requested back in December 2011 in bug 33124.
> 
> No? The diff view of the wikitext is not even a read-only view of the entire
> document's wikitext, let alone an editable one? Also, quickly editing the
> diff
> in a pop-over window is fundamentally different paradigm from having a proper
> wikitext editor available to all users at all times, and being able to switch
> back and forth, which is what this bug requests.

From what I remember about the feature which existed in the prototype which motivated the request made on bug 33124, it actually displayed the entire document's wikitext (not just the diff).
Comment 15 James Forrester 2013-10-09 15:56:45 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > (In reply to comment #12)
> > > This functionality was requested back in December 2011 in bug 33124.
> > 
> > No? The diff view of the wikitext is not even a read-only view of the entire
> > document's wikitext, let alone an editable one? Also, quickly editing the
> > diff
> > in a pop-over window is fundamentally different paradigm from having a proper
> > wikitext editor available to all users at all times, and being able to switch
> > back and forth, which is what this bug requests.
> 
> From what I remember about the feature which existed in the prototype which
> motivated the request made on bug 33124, it actually displayed the entire
> document's wikitext (not just the diff).

Oh, yes, you are right. My apologies.

This means that that bug is even further from "this functionality", however.
Comment 16 Anna Koval 2013-10-14 22:16:43 UTC
Sweedish Wikipedians including User:Jan Ainali and User:FrankieF are discussing/requesting an enhancement to VisualEditor here [1] and translate the thread as follows:

"What we are missing is way to easily switch between wikitext and VE without saving or loosing stuff. Just like you can in Wordpress between the WYSIWYG and HTML editor." 

[1]
https://sv.wikipedia.org/wiki/Wikipedia:VisualEditor/%C3%85terkoppling#Saknade_funktioner_i_Redig.l.C3.A4get
Comment 17 Alex Monk 2014-08-03 02:17:41 UTC
So with the resolution of bug 50687, this is effectively "Provide a way for the user to switch from the wikitext source editor to VisualEditor, keeping changes but not saving", right? Or have I misunderstood?
Comment 18 Matthew Flaschen 2014-08-04 19:52:14 UTC
(In reply to Alex Monk from comment #17)
> So with the resolution of bug 50687, this is effectively "Provide a way for
> the user to switch from the wikitext source editor to VisualEditor, keeping
> changes but not saving", right?

Yes, as I understand it.  Adding that direction would then allow bidirectional switching.

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


Navigation
Links