1*e1e734d3Sedwardlab### Bureaucracy Toolbar Plugin for DokuWiki 2*e1e734d3Sedwardlab 3*e1e734d3SedwardlabThe Bureaucracy Toolbar plugin enhances DokuWiki's [Bureaucracy plugin](https://www.dokuwiki.org/plugin:bureaucracy) by adding a simple toolbar above forms, allowing users to easily insert common Dokuwiki syntax (e.g., bold, italic, links) into textarea fields. This is particularly useful for forms with rich text inputs, such as those for creating pages, emails, or structured content. 4*e1e734d3Sedwardlab 5*e1e734d3Sedwardlab#### Features 6*e1e734d3Sedwardlab- **Buttons for Common Syntax**: Includes buttons for: 7*e1e734d3Sedwardlab - **Bold** (`**text**`) 8*e1e734d3Sedwardlab - *Italic* (`//text//`) 9*e1e734d3Sedwardlab - __Underline__ (`__text__`) 10*e1e734d3Sedwardlab - `Code` (`<code>text</code>`) 11*e1e734d3Sedwardlab - List Item (` * text`) 12*e1e734d3Sedwardlab - Link (`[[text]]`) 13*e1e734d3Sedwardlab- **Smart Textarea Targeting**: When a button is clicked, the syntax is inserted into the currently focused textarea (or the last focused one) in the bureaucracy form. This supports forms with multiple textareas without always defaulting to the first. 14*e1e734d3Sedwardlab- **Selection Handling**: If text is selected in the textarea, the syntax wraps around it. The cursor is then repositioned inside the inserted markup for easy editing. 15*e1e734d3Sedwardlab- **Styling**: The toolbar has basic CSS for a clean, modern look (light gray background, rounded corners). 16*e1e734d3Sedwardlab 17*e1e734d3Sedwardlab#### Installation 18*e1e734d3Sedwardlab1. Download the plugin files (`syntax.php` and `script.js`). 19*e1e734d3Sedwardlab2. Place them in your DokuWiki's plugin directory: `lib/plugins/bureaucracytoolbar/`. 20*e1e734d3Sedwardlab3. Ensure the Bureaucracy plugin is already installed and enabled, as this toolbar depends on it. 21*e1e734d3Sedwardlab4. Refresh your DokuWiki plugin manager to activate it. 22*e1e734d3Sedwardlab 23*e1e734d3Sedwardlab#### Usage 24*e1e734d3SedwardlabTo add the toolbar to a page with a bureaucracy form: 25*e1e734d3Sedwardlab- Insert the syntax `<bureaucracytoolbar>` anywhere on the page (typically above the form definition for better placement). 26