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.
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.
Discussion#
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. --DFVersion Jul 2006#
- Some refactoring to better cooperate with BrushedTemplateToolbar, BrushedTemplateMetadataEditor and BrushedTemplateFindAndReplace.
- Moved the dropdown to the Favorites bar, so you always have the structure of your doc at a glance.
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
List of attachments
Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
---|---|---|---|---|---|---|
jpg |
EditSection.jpg | 35.5 kB | 2 | 25-Sep-2005 13:42 | DirkFrederickx | |
jpg |
editsections-all.jpg | 52.1 kB | 1 | 26-Jul-2006 21:58 | Dirk Frederickx | |
jpg |
editsections-usage.jpg | 36.4 kB | 1 | 26-Jul-2006 21:58 | Dirk Frederickx |