On Mon, 20 Feb 2017 at 10:42 John P. New <[email protected]> wrote:
> I've set up MW 1.28 with VE/parsoid and everything is working well > > However, when I edit in (any) wikitext editor and try to switch to VE, I > am presented with a dialog with only 2 choices: "Cancel" or "Discard my > changes and switch". Diving into the code I found I could change > ve.init.MWVESwitchConfirmDialog.js (line 58) from > modes: [ 'restbase' ] > to > modes: [ 'restbase', 'simple' ] > > that adds "Switch" to the dialog box, but when this option is chosen, any > changes made in the wikitext editor are lost. > > Is this a mis-configuration on my part or is switching from edited > wikitext to VE not supported? Do I need a RESTbase server to implement this > functionality? > RESTbase provides the switching-with-changes ability, yes. There's a reason VE doesn't offer switching-with-changes without it. :-) In general, fiddling with the code inside an extension is always going to break. J. -- James D. Forrester Lead Product Manager, Editing Wikimedia Foundation, Inc. jforrester at wikimedia.org <https://lists.wikimedia.org/mailman/listinfo/wikimedia-l> | @jdforrester _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
