User Tools

Site Tools


projects:dokuwiki_redact_plugin

Dokuwiki Redact Plugin

Summary:

Create a plugin that allows you to easily place `<redact></redact>` around sensitive information. This will replace all characters with breaking and non breaking spaces and a style applied to make them appear to be black boxes like they were sharpied over in a sensitive document

Goals:

Create plugin

  1. Identify plugins with similar functionality
  2. Identify and document changes required in source code
  3. Fork plugin and make changes

Post plugin

  1. Send to Dokuwiki to be included in plugins directory

Notes:

Information on ACL - page/asset control system used by dokuwiki.

No Display Plugin - Perfect functionality for what I need.

  • Change Regex to `<redact>` instead of `<nodisp>`
  • Change default behavior to be acl level 2, not send as text with hidden styling
  • Replace word characters with a non breaking space, and all white space with breaking spaces
    • This allows for the HTML/CSS engine to break in the same locations that the original words would
  • Add inline style or find how to add through plugin at top level
projects/dokuwiki_redact_plugin.txt · Last modified: 2021/06/14 15:05 by chrisbolas