VisualEditor: Provide a way for the user to switch between VisualEditor and wikitext source editor modes without saving
OpenPublic

Description

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).


Version: unspecified
Severity: enhancement
See Also:
T51666: VisualEditor: Display a link to both VE and wikitext editor on every section header
T51665: VisualEditor: Provide a get-me-into-the-wikitext-editor link on every header inside the VisualEditor
T52687: VisualEditor: Provide a way for the user to one-way switch from VisualEditor into wikitext source editor mode without saving
T51686: VisualEditor: automagically convert wikitext (e.g. [[link]]) to VE-compatible elements
T90763: S6. Flow: Switching from VE to wikitext and back without losing content

bzimport added a project: VisualEditor-MediaWiki.Via ConduitNov 22 2014, 1:16 AM
bzimport set Reference to bz47779.
Jdforrester-WMF created this task.Via LegacyApr 27 2013, 6:28 PM
bzimport added a comment.Via ConduitMay 20 2013, 11:15 AM

winne2i wrote:

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.

TTO added a comment.Via ConduitJun 18 2013, 2:04 AM

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.

Jdforrester-WMF added a comment.Via ConduitJun 18 2013, 2:16 AM

(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.

bzimport added a comment.Via ConduitJun 18 2013, 11:57 AM

winne2i wrote:

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? :)

Jdforrester-WMF added a comment.Via ConduitJun 21 2013, 11:04 PM
  • Bug 49986 has been marked as a duplicate of this bug. ***
brion added a comment.Via ConduitJul 2 2013, 5:47 PM

Adding 'source' to subject line to make this easier to search.

He7d3r added a comment.Via ConduitJul 3 2013, 7:07 PM

See also:

  • [[Thread:VisualEditor/Feedback/ Side-by-side view (no more?)]]
  • Old demo with side-by-side view:

http://blog.wikimedia.org/2011/12/13/help-test-the-first-visual-editor-developer-prototype/visual-editor-demo-2/

bzimport added a comment.Via ConduitJul 5 2013, 12:15 AM

zedlightman wrote:

(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

Jdforrester-WMF added a comment.Via ConduitJul 15 2013, 2:29 AM
  • Bug 50698 has been marked as a duplicate of this bug. ***
jayvdb added a comment.Via ConduitJul 20 2013, 5:09 AM

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.

Thryduulf added a comment.Via ConduitJul 30 2013, 7:08 PM

(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

jayvdb added a comment.Via ConduitOct 9 2013, 6:57 AM

This functionality was requested back in December 2011 in bug 33124.

Jdforrester-WMF added a comment.Via ConduitOct 9 2013, 2:45 PM

(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.

He7d3r added a comment.Via ConduitOct 9 2013, 3:51 PM

(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).

Jdforrester-WMF added a comment.Via ConduitOct 9 2013, 3:56 PM

(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.

AKoval_WMF added a comment.Via ConduitOct 14 2013, 10:16 PM

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

Krenair added a comment.Via ConduitAug 3 2014, 2:17 AM

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?

Mattflaschen added a comment.Via ConduitAug 4 2014, 7:52 PM

(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.

Jdforrester-WMF moved this task to Backlog on the VisualEditor workboard.Via WebNov 24 2014, 4:23 PM
gpaumier added a project: user-notice.Via WebMar 10 2015, 3:02 PM
gpaumier set Security to None.
gpaumier moved this task to Not ready to announce on the user-notice workboard.
Jdforrester-WMF moved this task to Next up: Features and UX on the VisualEditor workboard.Via WebMar 30 2015, 9:36 PM
Jdforrester-WMF set Story Points to 8.Via WebApr 1 2015, 7:06 PM
Krenair added a comment.Via WebApr 1 2015, 11:42 PM

We should talk to Parsoid to work out what dependencies this has from them, if any

Jdforrester-WMF added a comment.Via WebApr 1 2015, 11:44 PM

We should talk to Parsoid to work out what dependencies this has from them, if any

It's mostly a RESTbase dependency, at this point.

Mattflaschen edited the task description. (Show Details)Via WebApr 2 2015, 1:53 AM
GWicke added a project: RESTBase.Via WebApr 6 2015, 10:10 PM
Jdforrester-WMF changed Story Points from 8 to 40.
awight added a subscriber: awight.Via WebFri, May 8, 3:27 AM

This would be a great enhancement!

Mattflaschen removed a subscriber: Mattflaschen.Via WebFri, May 8, 10:32 PM

Add Comment