Edit Sections#

This page describes some BrushedTemplate add-on to the editor/plain.jsp allowing you to zoom in on parts of a page during edit. This is especially useful when editing large pages or when you want to scroll quickly to the desired section of a page in editing mode.

--DF , version 2 included, should work better on ie, improved focus handling. Version of Jul06 moves the section selector to the left part of the screen (in the favorites block) so you get a better page overview.

editsections-all.jpg editsections-usage.jpg

It is also possible to jump directly to the correct edit section while viewing the page. This functionality is inspired on the way things are done at Wikipedia.

Usage #

All page sections, i.e. headers, prefixed by !, !! or !!!.

By selecting one of the sections, the textarea of the edit page will be loaded with only that page section. You can quickly jump from one section to another, or back to the whole page, by making a new selection. The content of the dropdown list will be dynamically updated when adding, removing or changing section titles.


Java Script Error under IE#

This is great, thanks. The only annoying thing I found with doing this way is that you get a Java Script error (under IE anyway) because the original (now hidden) edit box is set the focus, which I think is set in the <body> tag within the JSPWiki code. I guess the only way to fix this is to implement this functionality directly into JSPWiki itself. -- KieronWilkinson

Tnx for the comment. I added some onload stuff to make sure the focus is not lost. --DF

Change History#

Version Oct 2005#

Some refactoring done to encapsulate all javascript into the EditSection object. It also makes the javascript trigger from the pageonload event which resolves some incompatibilities in Safari. --DF

Version Jul 2006#

Back to BrushedTemplate BrushedTemplateSectionQuickLinks

Just in case you would want to make the skins IE7 compatible, the skins do not work properly in IE7.

--Blaxxun, 18-Sep-2006

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
EditSection.jpg 35.5 kB 2 25-Sep-2005 13:42 DirkFrederickx
editsections-all.jpg 52.1 kB 1 26-Jul-2006 21:58 Dirk Frederickx
editsections-usage.jpg 36.4 kB 1 26-Jul-2006 21:58 Dirk Frederickx
« This page (revision-17) was last changed on 26-Aug-2009 11:08 by DirkFrederickx