DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:autoindentcontrol

Auto-Indent Control Plugin

Compatible with DokuWiki

Lemming, Anteater, Rincewind, Angua

plugin Provides a toggle switch to control auto-indent function in edit window

Last updated on
2012-08-09
Provides
Action
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with editing, javascript, keyboard

Download and Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Changelog:

Overview

Toggle Switch Image

An auto-indent feature which helps you to type wikitexts such as lists and preformatted text has been introduced to DokuWiki 2009-12-25 “Lemming”. However there are some cases where you might want to disable the feature because of several reasons (browser issues, one's way of typing1), etc.).

This plugin provides a toggle switch to turn ON/OFF the auto-indent feature in the edit window.

Configuration

The following options can be configured through the Configuration Manager.

default_behavior

This option sets the default behavior of the auto-indent feature in the edit window (“Enable” or “Disable”). This setting is used when users first enter the edit window or if administrators have set the show_toggle_switch option to off.

  • Type: Boolean
  • Default: 0 (Labeled: “Disable”)

show_toggle_switch

Enabling this option shows a toggle switch to turn ON/OFF the auto indent feature in the right bottom of the edit window. When a user presses the switch, the current selected value is saved in a cookie and maintained between visits. If this option is disabled, the default_behavior value is used regardless of the cookie.

  • Type: Boolean
  • Default: 1 (Checked)

Feedback

Any feedback is welcome. Please use the Issue Tracker to send your feedback.

plugin/autoindentcontrol.txt · Last modified: 2023-10-30 23:45 by Klap-in

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