wiki:SectionEditPlugin

Edit a single wiki section

Notice: This plugin is unmaintained and available for adoption.

Description

This plugin provides the ability to edit one section in a Trac wiki page, rather the whole wiki page (based on t:#6921, referenced in t:#1024). This is particularly useful for editing wiki pages which are very long.

An edit button appears at the end of a section heading when hovering over it.

Upon clicking the Edit link, only the associated section becomes editable. You can show preview and diffs on the section too.

Bugs/Feature Requests

Existing bugs and feature requests for SectionEditPlugin are here.

If you have any issues, create a new ticket.

defect

14 / 17

enhancement

3 / 5

task

1 / 1

Download

Download the zipped source from here.

Source

You can check out SectionEditPlugin from here using Subversion, or browse the source with Trac.

Installation

This plugin can be installed with easy_install:

easy_install https://trac-hacks.org/svn/sectioneditplugin/<branch>

where <branch> is the branch appropriate for your version of Trac. For Trac 1.0, use the 0.12 branch.

Add the following to your trac.ini:

[components]
tracsectionedit.* = enabled

Alternatively, enable it though the /admin/general/plugin panel.

A restart of the web server or Trac is not required.

Configuration

Configuration options are placed in the [section-edit] section of your trac.ini.

Parameter Default Description
preview_whole_page true Whether to preview the entire page or just the section being edited (true/false)
edit_subsections false Whether to edit all subsections or just the section.

Recent Changes

18164 by Cinc-th on 2021-04-08 10:02:08
SectionEditPlugin: fixed typo in css selector which may have broken the preview for Trac 1.2. Follow up to [18163].
18163 by Cinc-th on 2021-04-08 09:35:38
SectionEditPlugin: fixed problem with Trac 1.5, automatic preview was broken. Version was bumoed to 1.3.0 in last commit. Plugin now works with Trac 1.2/Trac 1.4/Trac 1.5/Trac 1.6 (probably).
18162 by Cinc-th on 2021-04-08 08:16:40
SectionEditPlugin: made it work with Trac 1.4. No longer use ITemplateStream and Genshi Transform and HTML
(more)

Author/Contributors

Author: cbalan
Maintainer: none (needsadoption)
Contributors: rjollos

Last modified 7 years ago Last modified on Feb 3, 2018, 9:07:23 PM

Attachments (1)

Download all attachments as: .zip