Last modified: 2014-08-04 19:52:14 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).
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.
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.
(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.
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? :)
*** Bug 49986 has been marked as a duplicate of this bug. ***
Adding 'source' to subject line to make this easier to search.
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/
(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
*** Bug 50698 has been marked as a duplicate of this bug. ***
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.
(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
This functionality was requested back in December 2011 in bug 33124.
(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.
(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).
(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.
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
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?
(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.