Edit a single wiki section

Notice: This plugin is unmaintained and available for adoption.


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.


11 / 15


3 / 5


1 / 1


Download the zipped source from here.


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


This plugin can be installed with easy_install:


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:

tracsectionedit.* = enabled

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

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


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

16097 by rjollos on 2016-12-18 07:49:07
1.2.0dev: Fix syntax error with jQuery 1.11

Fixes #12721.

11208 by rjollos on 2012-01-27 21:44:23
Some code cleanup:

  • Use regex from Trac 0.12 wiki module for matching request.
  • Remove serve_ui_files option, which appeared to be useful only for debugging. Someone please correct me if I'm wrong about this.

11205 by rjollos on 2012-01-27 05:58:16
Fixes #6342: (0.2.6) Added a new trac.ini option edit_subsections. When True, all subsections of a section will be displayed for editing. The default is False, preserving the existing behavior.

The 0.12 and 0.11 branches wil be combined in the near future, at which point this feature will be available for 0.11.



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

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

Attachments (1)

Download all attachments as: .zip