File: editdiff.mdwn

package info (click to toggle)
ikiwiki 3.20190228-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,904 kB
  • sloc: perl: 31,100; python: 428; sh: 185; makefile: 120
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.