UserGuide: AjaxEditing plugin

This revision is from 2009/03/27 23:30. You can Restore it.

Intro(Edit)

AJAX is a buzzword of another buzzword, web 2.0. Who isn't "AJAX powered" simply can't be cool. But don't worry, LionWiki is still pure non-AJAX application so if you delete or deactivate this plugin, it will work as in good old times.

What can it do(Edit)

As of now (LionWiki 2.3), this plugin can't edit whole pages, just paragraphs. This is good for compatibility reasons, even if AJAX editing doesn't work, there's still the conventional way to do it.

Configuration(Edit)

wkp_AjaxEditing.php(Edit)

  • $rows_min, $rows_max - Number of rows of edit textarea reflects number of lines of edited paragraphs. Too big or too small edit textarea wouldn't be good, so we have some upper and lower limits.

AjaxEditing/ajax.js(Edit)

We need something to trigger edit operation. This trigger can essantially be any JavaScript event.

  • trigger_edit_click - click on the (edit) link in the heading triggers AJAX editing
  • trigger_heading_doubleclick - doubleclick on heading triggers AJAX editing

Send me your ideas for some other cool triggers!

AjaxEditing/template.html(Edit)

Here you can customize the edit template