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.

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.

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.

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

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

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?

Add Comment

Text is available under the Creative Commons Attribution-ShareAlike 3.0 License; code is available under the GNU General Public License or other appropriate open source licenses. By using this site, you agree to the Terms of Use and Privacy Policy. · Wikimedia Foundation · Privacy Policy · Terms of Use · Disclaimer

Column Prototype

This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.