DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:htmlokalt

This is an old revision of the document!


HTMLOk Plugin

Compatible with DokuWiki

No compatibility info given!

plugin Enables config:htmlok behaviour to use raw HTML

Last updated on
2023-04-05
Provides
CSS/JS-only
Repository
Source

Installation

This is the HTMLOk plugin. Unfortunately as by this time the name “htmlok” has already been squatted for a competing plugin, I'm using the name “htmlokalt” for the Dokuwiki-side identifier instead, but the official name of this plugin is HTMLOk.

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage

Once this plugin is installed and enabled as detailed below, old wikicode using <html> tags should be working correctly.

Syntax

Basic syntax:

<html> some inline level HTML code </html>
<HTML> some block level HTML code </HTML>

Configuration and Settings

:!: To enable the plugin:

Since this plugin allows users to inject raw HTML into the wikicode of pages, it must be extra enabled explicitly. To do so, the admin of the wiki must enable and set to a value of 1 or higher the following two variables for the plugin in wiki config (eg.: in local.php):

$conf['plugin']['htmlok']['use_sure']
$conf['plugin']['htmlok']['use_really_sure']

These variables are, at the moment, intentionally not exposed on the webui configuration.

Change Log

Future Development

The following two features are planned to be added to the plugin at some point in the future:

  • Enable inline level html and block level HTML separately.
  • Allow the admin to invoke an external HTML sanitizer function.

Discussion

Issues can be raised at the issue tracker.

I hate this kind of behaviour, just put the options in the ui. As if everyone is stupid and blindfolded. The stupid will fuck up anyway and everyone else is treated like a child. It is a risk if used as a wiki with more than one user - yes. But it will not launch Nukes…

plugin/htmlokalt.1680767924.txt.gz · Last modified: 2023-04-06 09:58 by 139.6.57.101

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki