File: editdiff.mdwn

package info (click to toggle)
ikiwiki 3.20260201-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,068 kB
  • sloc: perl: 31,488; javascript: 16,668; python: 428; sh: 213; makefile: 124
file content (13 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (12)
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.