Can anyone give advice on the new external editor features, maybe mediawiki could see my project as an external editor? I've found some pages about this, but not any real documentation of the interface on the http/soap/whatever level.
Btw, you can see my project at http://81.5.150.113/wysi for now. There have been some long delays but I'm starting to have a bit more time now. I've said this several times, but I really should be able to work on it seriously again now.
Jim
Jim Higson wrote:
Can anyone give advice on the new external editor features, maybe mediawiki could see my project as an external editor? I've found some pages about this, but not any real documentation of the interface on the http/soap/whatever level.
[[m:Help:External editors/Tech]] talks about the data format.
Basically, when a user clicks on an edit link (or a request with &externaledit=true is made), it will send this file (with the mentioned MIME type) as the body of the response. The idea is to associate this type with an app that can understand it.
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now has 2GB.
Jamie Bliss wrote:
Jim Higson wrote:
Can anyone give advice on the new external editor features, maybe mediawiki could see my project as an external editor? I've found some pages about this, but not any real documentation of the interface on the http/soap/whatever level.
[[m:Help:External editors/Tech]] talks about the data format.
Basically, when a user clicks on an edit link (or a request with &externaledit=true is made), it will send this file (with the mentioned MIME type) as the body of the response. The idea is to associate this type with an app that can understand it.
Thanks Jamie.
Is that the whole story...? So, is it the role of the external editor to do the uploading etc when the editing is finished? This seems unlikely since very few editors will know how to do this. If so, how are editTokens etc handled?
You probably know what I'm thinking. Although I'll try URL encoding first, if external editors do all this they might be an elegant solution to my problems saving.
Hi
I use mozex to edit text areas in vim:
This all works on the client side so no changes are needed on the server.
It works fine, though it would be better if I found time to make it open gvim with utf-8 encoding and a black background... ;-)
Another option is lynx or w3m -- these are textmode browsers that can be set to use an external editor of your choice.
Chris
On 10/13/05, Jim Higson jh@333.org wrote:
Jamie Bliss wrote:
Jim Higson wrote:
Can anyone give advice on the new external editor features, maybe mediawiki could see my project as an external editor? I've found some pages about this, but not any real documentation of the interface on the http/soap/whatever level.
[[m:Help:External editors/Tech]] talks about the data format.
Basically, when a user clicks on an edit link (or a request with &externaledit=true is made), it will send this file (with the mentioned MIME type) as the body of the response. The idea is to associate this type with an app that can understand it.
Thanks Jamie.
Is that the whole story...? So, is it the role of the external editor to do the uploading etc when the editing is finished? This seems unlikely since very few editors will know how to do this. If so, how are editTokens etc handled?
No, it's not the whole story. See
http://meta.wikimedia.org/wiki/Help:External_editors
It's not an arbitrary editor which needs to be associated with the mime-type, but a helper app which understands the control file which mediawiki serves up for external editing, and invokes the real external editor, and saves the resource when needed. Different external editors can be invoked for different types of resources. For example a text editor for articles, inkscape for svg illustrations, the Gimp for images etc.
There's a reference implementation of the helper app writting in perl, which can be found in the referenced article. A quick skim of the code looks like it forks the particular editor to edit a temp file, and puts up a separate save window which the user uses to initiate saving. The helper app talks to the mediawiki server by emulating an http client (it tells the server that the agent is firefox 1.0).
It doesn't seem to monitor the editor process, so the user has to do a save in the editor, then push the 'save' or 'save and continue' buttons in the helper app's gui. Seems a little clumsy, but I guess you could do differently should you decide to write your own helper app implementation.
Keep in mind that all of this requires a fair bit of configuration on the client. -- Rick DeNatale
Visit the Project Mercury Wiki Site http://www.mercuryspacecraft.com/
Rick DeNatale wrote:
On 10/13/05, Jim Higson jh@333.org wrote:
Jamie Bliss wrote:
Jim Higson wrote:
Can anyone give advice on the new external editor features, maybe mediawiki could see my project as an external editor? I've found some pages about this, but not any real documentation of the interface on the http/soap/whatever level.
[[m:Help:External editors/Tech]] talks about the data format.
Basically, when a user clicks on an edit link (or a request with &externaledit=true is made), it will send this file (with the mentioned MIME type) as the body of the response. The idea is to associate this type with an app that can understand it.
Thanks Jamie.
Is that the whole story...? So, is it the role of the external editor to do the uploading etc when the editing is finished? This seems unlikely since very few editors will know how to do this. If so, how are editTokens etc handled?
No, it's not the whole story. See
http://meta.wikimedia.org/wiki/Help:External_editors
It's not an arbitrary editor which needs to be associated with the mime-type, but a helper app which understands the control file which mediawiki serves up for external editing, and invokes the real external editor, and saves the resource when needed. Different external editors can be invoked for different types of resources. For example a text editor for articles, inkscape for svg illustrations, the Gimp for images etc.
There's a reference implementation of the helper app writting in perl, which can be found in the referenced article. A quick skim of the code looks like it forks the particular editor to edit a temp file, and puts up a separate save window which the user uses to initiate saving. The helper app talks to the mediawiki server by emulating an http client (it tells the server that the agent is firefox 1.0).
It doesn't seem to monitor the editor process, so the user has to do a save in the editor, then push the 'save' or 'save and continue' buttons in the helper app's gui. Seems a little clumsy, but I guess you could do differently should you decide to write your own helper app implementation.
Keep in mind that all of this requires a fair bit of configuration on the client.
Thanks for the description.
I'm going to have a go at extending my WYSIWYG editor to act as a web-based 'external' editor. I was having a few problems uploading via form-encoded http POSTS, possibly this will be easier.
-- Jim
Jim Higson wrote:
Thanks Jamie.
Is that the whole story...? So, is it the role of the external editor to do the uploading etc when the editing is finished? This seems unlikely since very few editors will know how to do this. If so, how are editTokens etc handled?
It seems to be.
Check ee.pl. It's the only external editor implementation I know of, and it actually works.
You probably know what I'm thinking. Although I'll try URL encoding first, if external editors do all this they might be an elegant solution to my problems saving.
For the record, that's a reference to a private e-mail between Jim and I when I mentioned pywikipediabot used application/x-www-form-urlencoded (URL encoding of fields) in it's edit POSTs, while Wikiwyg.org used multipart/form-data and is broken.
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now has 2GB.
Jamie Bliss wrote:
Jim Higson wrote:
Thanks Jamie.
Is that the whole story...? So, is it the role of the external editor to do the uploading etc when the editing is finished? This seems unlikely since very few editors will know how to do this. If so, how are editTokens etc handled?
It seems to be.
Check ee.pl. It's the only external editor implementation I know of, and it actually works.
Ok, ta. I'll investigate it soon.
You probably know what I'm thinking. Although I'll try URL encoding first, if external editors do all this they might be an elegant solution to my problems saving.
For the record, that's a reference to a private e-mail between Jim and I when I mentioned pywikipediabot used application/x-www-form-urlencoded (URL encoding of fields) in it's edit POSTs, while Wikiwyg.org used multipart/form-data and is broken.
I've got thinking that I might be able to make a web-based external editor to edit any MediaWiki. Only problem is the XMLHTTP security model only allows requests to the same domain as the page.
Jim
Dear List, i'm new to wiki. just got it installed in my laptop (apache2, php 4.3.9, mysql 5.01). it worked. my question is how to config it so that in addition to english, i can have chinese language or other language to switch back and forth? thanks Elim
I think there is an option in user preferences, but i am not sure if this is what you want...
S.W. ----- Original Message ----- From: "Elim Qiu" elim@elinkage.net To: mediawiki-l@wikimedia.org Sent: Sunday, October 16, 2005 5:13 PM Subject: [Mediawiki-l] select languages
Dear List, i'm new to wiki. just got it installed in my laptop (apache2, php 4.3.9, mysql 5.01). it worked. my question is how to config it so that in addition to english, i can have chinese language or other language to switch back and forth? thanks Elim
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Actually i like to know how to config wiki to show the language links like http://en.wikipedia.org/wiki/Turing_machine (look at the left lower part of the page. under "in other languages")
From: "Simon Wagner" wagner.sim88_mw@web.de To: "MediaWiki announcements and site admin list" mediawiki-l@Wikimedia.org
I think there is an option in user preferences, but i am not sure if this
is what you want...
S.W.
----- Original Message -----
Dear List, i'm new to wiki. just got it installed in my laptop (apache2, php 4.3.9, mysql 5.01). it worked. my question is how to config it so that in addition to english, i can
have
chinese language or other language to switch back and forth? thanks Elim
Those are called interwiki links; they take the visitor to the corresponding page on another instance of MediaWiki, written in (in this case) another language.
Search for "interwiki links" on http://meta.wikimedia.org for information on setting those up.
Rob Church
On 16/10/05, Elim Qiu elim@elinkage.net wrote:
Actually i like to know how to config wiki to show the language links like http://en.wikipedia.org/wiki/Turing_machine (look at the left lower part of the page. under "in other languages")
From: "Simon Wagner" wagner.sim88_mw@web.de To: "MediaWiki announcements and site admin list" mediawiki-l@Wikimedia.org
I think there is an option in user preferences, but i am not sure if this
is what you want...
S.W.
----- Original Message -----
Dear List, i'm new to wiki. just got it installed in my laptop (apache2, php 4.3.9, mysql 5.01). it worked. my question is how to config it so that in addition to english, i can
have
chinese language or other language to switch back and forth? thanks Elim
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org