Under construction

Post Editor

Introduction

Since v2.6.x, JSPWiki's editor textarea has been enhanced with posteditor. [Note] So far, Post-editor is only applicable to non IE users.

Using post-editor you can use the TAB key to insert spacing and indentation in your pages, without losing your focus. Post-editor will automatically keep indentation as you enter new lines. Use Shift+Enter to exit the text-area and jump to the Change Note field.

Post-Editor also support the use of snippets like in TextMate: enter a short keyword, followed by the TAB key to expand it into a convenient snippet of text.

Auto-Indentation
Subsequent lines are automatically indented with previous line. When you select multiple lines and press TAB, all lines are indented.
Snippets with tab completion (on/off)
Predefined keywords are expanded when pressing TAB. E.g. toc+TAB expands to [{TableOfContents }]. See the table below for a list of available snippets.
Sub-Snippets
Depending on the snippet definitions, subsequent tabs will step you through different parts of the snippet for editing. E.g. link+TAB expands to [link text|pagename] ; pressing the TAB key again will allow you to edit the link text and pagename parts of the snippet.
Dynamic snippets
Also dynamic snippets are supported, eg. for entering the current date & time, your signature etc.
Smart Typing Pairs (with separate on/off checkbox in the editor toolbar))
Certain bracket characters ( ", ', (, {, [, [{ ) are automatically paired with their closing counterparts.

You enable the Post-editor by checking the Tab Completion checkbox in the editor toolbar. A separate checkbox is available to activate the Smart Typing Pairs functionality. By default, these checkboxes are off.

Snippets

Overview of supported snippets and the expanded wiki markup.

Keyword+TAB Expand to...
toc+TAB [{TableOfContents }]
link+TAB [link text|pagename]
code+TAB %%prettify
{{{
  some code block
}}}
/%
pre+TAB {{{
  some preformatted block
}}}
br+TAB \\
bold+TAB __some bold text__
italic+TAB ''some italic text''
h1+TAB !!! Heading 1 title
h2+TAB !! Heading 2 title
h3+TAB ! Heading 3 title
dl+TAB ;term:definition text
mono+TAB {{ some monospaced text }}
hr+TAB ----
sub+TAB %%sub subscript text /%
sup+TAB %%sup superscript text /%
strike+TAB %%strike strikethrough text /%
tab+TAB %%tabbedSection
%%tab-tabTitle1
tab content 1
/%
%%tab-tabTitle2
tab content 2
table+TAB example table
img [{Image src='img.jpg' width='..' height='..' align='left|center|right' style='..' class='..' }]
quote+TAB %%quote
quoted text
/%
%%+TAB %%wikistyle
some text
/%
sign+TAB \\
<UserName>, 25 Sep 07
date+TAB today's timestamp

[#1] The excellent PostEditor, v2 is written by Daniel Mota aka IceBeat

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.
« This page (revision-1) was last changed on 07-Jul-2008 23:00 by 84.197.184.166 [RSS]