Re: Rethinking our layout



Hi folks, came across this scary little project on Havoc's blog. :)

Jonathan Blandford wrote:
The other change we're going to make is to have section editing embed a
live comment into the page.  This will allow us to collaboratively edit
a section at a time.  Colin is going to look into adding this.

Marco, if you want something to work on, we'd love to have a way to
regenerate a mediawiki section on the fly without reloading the whole
page.  This will let us update the section when the live comment is
closed.

You might want to take a look at the 'live preview' code in the current
EditPage.php (this is off by default as it was experimental and had some
problems with compatibility). It provides a primitive
XmlHttpRequest-able wikitext rendering so previews can be done without
leaving the page.

Making that stuff work inline to replace individual sections would be
really cool, but difficulties might include:
* There's currently no marker for when a section ends (you can look for
the next section's edit link...)
* Wiki page sections do not enforce an HTML hierarchy; pathological
cases may have section boundaries in different table cells or other such
uglies that would be hard to pluck out in DOM.
* Some sections may be in templates, which could change behavior in
"interesting" ways
* If another section header is added within the section during editing,
the numbering of all subsequent section edit links would change.

But common simple cases would probably work reasonably well. These are
mere challenges. :D

-- brion vibber (brion @ pobox.com)

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]