Help:External editors/Tech

From lensowiki
< Help:External editors
Revision as of 19:14, 26 October 2005 by Eloquence (talk) (Reverted edits by 85.99.224.55 to last version by Eloquence)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Control files are in Microsoft's .ini format: [Section] Key=Value. This makes them very easy to read.

One very important principle behind the protocol is that control files sent to the helper application are thin. The helper application handles the downloading and uploading. That makes it relatively easy to add support for application/x-external-editor to any wiki engine, since only few changes have to be made.

Control file

[Process] 
Type=[1]
Engine=[2]
Script=[3]
Server=[4]
Path=[5]

[File]
Extension=[6]
URL=[7]
  1. Can be "Edit text", "Edit file" or "Diff text".
  2. Can currently only be MediaWiki. Please let me know if your wiki engine supports the application/x-external-editor protocol.
  3. For MediaWiki, full URL to index.php ($wgServer + $wgScript)
  4. For MediaWiki, server base URL ($wgServer)
  5. For MediaWiki, wiki document root ($wgScriptPath) - this is used to rewrite links from relative URLs to absolute URLs for previews
  6. What should the extension of the file be? For text, MediaWiki uses ".wiki"
  7. Where can the resource be found?