Hello
I followed the discussion in http://meta.wikimedia.org/wiki/Help:External_editors about how to use an external editor, since the perl solution worked once and then refused to work, that is clicking to the editing button did not bring up the editor, I thought of using the bookmarklet solution, as described in the same page.
However the information is not very detailed. What shall I do with this small script save it as a file or what?
Any help would be strongly appreciated.
Thanks
Uwe Brauer
Uwe Brauer:
I followed the discussion in http://meta.wikimedia.org/wiki/Help:External_editors about how to use an external editor, since the perl solution worked once and then refused to work, that is clicking to the editing button did not bring up the editor,
Try visiting a URL like http://en.wikipedia.org/w/index.php?title=Talk:Main_Page&action=edit&...
that is, add &externaledit=true after the &action=edit -- this should tell you if ee.pl is at all being called correctly. Make sure you are editing a wiki you have actually set up ee.ini to work with. Each Wikimedia wiki has its own user account database. The URL also needs to match the URL match listing in ee.ini.
Also try starting ee.pl from the command line to test if the GUI is working. More debugging can be done by feeding it the control files the wiki sends to your browser on the command line.
The bookmarklet does nothing more than generating a URL like this from the page you're looking at, and telling your browser to visit it, so if this doesn't work, neither will the bookmarklet.
However the information is not very detailed. What shall I do with this small script save it as a file or what?
Create a new bookmark/favorite in your browser and copy the JavaScript snippet exactly as it is into the field where you would normally write the URL of a webpage you want to visit. Visit the bookmark/favorite whenever you want to use the external editor. But again, make sure ee.pl is set up correctly first, or you will have to debug two things at the same time.
I've tried to expand the instructions on Meta with the above; let me know if it makes sense to you.
Best,
Erik
"Erik" == Erik Moeller erik_moeller@gmx.de writes:
Erik> Uwe Brauer:
Erik> Try visiting a URL like http://en.wikipedia.org/w/
Erik> that is, add &externaledit=true after the &action=edit Erik> this should tell you if ee.pl is at all being called Erik> correctly. Make sure you are editing a wiki you have Erik> actually set up ee.ini to work with. Each Wikimedia wiki Erik> has its own user account database. The URL also needs to Erik> match the URL match listing in ee.ini.
Right, I was not aware of that. I created an account in http://en.wikipedia.org, I set in preference the editor to
Use external editor by default
And I added in my ee.ini the lines
URL match=http://en.wikipedia.org/w/ Username=myuserid Password=mypasswd
Then I thought this would be enough for any wiki site in english, like http://meta.wikipedia.org which is wrong as I understand now.
So my I suggest to emphasise the following point:
- create a account in the relevant wiki, say http://en.wikipedia.org/w/ (could me also http://meta.wikipedia.org)
- set in preference the editor to "Use external editor by default"
- set in ee.ini the following link URL match=http://en.wikipedia.org/w/ Username=myuserid Password=mypasswd if it were http://meta.wikipedia.org, it should be URL match=http://meta.wikipedia.org/w/ Username=myuserid Password=mypasswd
I think this way even newcomers like me should understand it.
Erik> The bookmarklet does nothing more than generating a URL Erik> like this from the page you're looking at, and telling Erik> your browser to visit it, so if this doesn't work, Erik> neither will the bookmarklet.
Erik> Create a new bookmark/favorite in your browser and copy Erik> the JavaScript snippet exactly as it is into the field Erik> where you would normally write the URL of a webpage you Erik> want to visit. Visit the bookmark/favorite whenever you Erik> want to use the external editor. But again, make sure Erik> ee.pl is set up correctly first, or you will have to Erik> debug two things at the same time.
ok Erik> I've tried to expand the instructions on Meta with the above; let me Erik> know if it makes sense to you.
The part about that javascript is now clear, and I think it was especially useful to mention, that the perl script has already to be installed correctly!!!
Thanks and regards
Uwe
Uwe-
URL match=http://en.wikipedia.org/w/ Username=myuserid Password=mypasswd
Then I thought this would be enough for any wiki site in english, like http://meta.wikipedia.org which is wrong as I understand now.
No, but if your user name and password are the same across all Wikipedias, using
URL match=wikipedia.org
should work for all Wikipedias. If you only intend to edit Wikimedia wikis and they all have the same username and password, even
URL match=.org
should do the trick. The help page already states this, but please do edit it if you think it could be made clearer.
Best,
Erik
Hello Erik,
Using the javascript available in http://en.wikipedia.org/wiki/User:Pilaf/Live_Preview I can preview my editing offline, however so far only with the internal wiki editor, is there any possibility to combine it with your perl script?
Thanks
Uwe Brauer
wikitech-l@lists.wikimedia.org