File: editdiff.mdwn

package info (click to toggle)
ikiwiki 3.20100815.9
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 11,228 kB
  • ctags: 1,306
  • sloc: perl: 22,404; python: 360; sh: 180; makefile: 89
file content (13 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
[[!template id=plugin name=editdiff author="[[JeremieKoenig]]"]]
[[!tag type/web]]

This plugin adds a "Diff" button when a page is being edited.
When clicked, a diff between the stored page and provided content
is shown in the "Page Preview" area.

## Problems

No special handling is done of concurrent edits: changes introduced
independently will show up in the requested diff, although they will
be merged when the page is saved. I suspect even detecting this case
would require changes in the RCS backends.