r1 - 16 Aug 2006 - 11:45:30 - GaelCrova?You are here: Proyecto META >  TWiki Web  >  SmartEditAddOn > SmartEditAddOnHelp

Features and user manual


Supported styles : Bold, Bold Italic, Italic, Formatted, Verbatim, Blockquote, Heading 1 to 6.

How does it work ?

When you click on the bold button (for example), Smart Editor get your selection and insert the bold tags at the right place. This editor doesn't have a context engine so if you click 2 times on the bold button, you will have 2 bold tags.

SmartEditAddOn aumatically detect blanks and line break to insert tags at the right place.


List types : Normal (bullet) and numered.

How does it work ?

Basically, it works like styles but a minimal context was developped to help you.

  • A click on the list button add a list item a the beginning of the current line. You do not need to put the cursor at this place or to select the while line.

  • You just type * and 1 space, then you type your text and when you type on the "return" key, the list item is automatically created.
  • If you are editing a list item and you hit the return key, a new list item will be created with the same indentation in the next line.
  • To indent or outdent a list item, you can just hit the "TAB" key of "SHIFT TAB" like in others editors
  • SHIFT+RETURN creates a br tag on the next line


  • External links
    • Smart Editor provides you a simple and intuitive interface to insert a link. You can also watch a preview of the given link.

  • Internal links
    • A dynamic interface help you to select and insert a TWiki link. You just have to select one web in a list, then choose a topic by its name with auto completion assistance.


Configuration ( TWiki Administrator only ): You just have to edit the TWiki variable SMARTEDITICONS in your TWiki preferences. If this variable doesn't exist, you just have to add it and to set your icons.

Use : Just open the icon chooser with icon button and click on your image to insert it into the text.


Basic insertion : Smart Editor provides you some basic tags to insert that are <nop>, <br /> and <hr />. But it is possible to configure personal strings to insert by editing a simple TWiki variable.

Configuration :

  • if you are a TWiki administrator, you can edit the "SMARTEDITSTRINGSITE" TWiki variable into TWiki preferences or "SMARTEDITSTRINGWEB" into a specific web.
  • If you just want to add some personal strings, you just have to add the SMARTEDITSTRINGUSERS variable on your personal page and to specify your string like it follows :

Example :

Set SMARTEDITSTRINGUSERS = <tselement><tsname>Your menu name </tsname><tsstring>you string to insert </tsstring></tselement>

To add more than one element, you just have to copy from <tselement> to </tselement> and to complete each one.


Smart Editor also provides you a search toolbar. You just have to type your text and you know automatically if the typed text is found into the textarea.

Info : When you are entering text into the search text box, a click on the "*return*" key automatically selects the first occurence of your text. Textarea size

Smart Editor gives you the ability to increase or decrease the textarea height with these buttons: . You can also set the textarea size to the exact number of lines in your text by clicking on the "Auto fit" button.

Keyboard shortcuts

  • TAB - Indent the current line (no selection needed)
  • SHIFT+TAB - Outdent the current line (no selection needed)
    • If there is a list item into the current line, automatically go to the next line and add a new list item with the same indentation
    • If there is a list item into the current line and no text, automatically go to the next line, deleting last empty list item
    • If your the text in the current line is indented, go to the next line with the same indentation
    • Go to the next line, add a br tag with the same indentation

Configure "icon" and "insert string" menus

These manipulations automatically set the content of menus into the SmartEditAddOn toolbar. If the syntax is not respected, the content of the variable will not be loaded.

The insert Menu

From TWikiPreferences (TWiki administrator), add or edit this variable like it follows:

   * Set SMARTEDITSTRINGSITE = <tselement><tsname>Table of content</tsname><tsstring>%<nop>TOC%</tsstring></tselement><tselement><tsname>your menu name</tsname><tsstring>your string</tsstring></tselement>...

From Web Preferences (TWiki administrator), add or edit this variable like it follows:

   * Set SMARTEDITSTRINGWEB  =   <tselement><tsname>Current web</tsname><tsstring>%<nop>WEB%</tsstring></tselement></tselement><tselement><tsname>your menu name</tsname><tsstring>your string</tsstring></tselement>...

From user preferences, every one can add or edit this variable in his personnal page Main.FirstnameLastname:

      * Set SMARTEDITSTRINGUSERS =  <tselement><tsname>My email</tsname><tsstring>toto@toto.com</tsstring></tselement></tselement><tselement><tsname>your menu name</tsname><tsstring>your string</tsstring></tselement>...

Icons (TWiki administrator)

From TWikiPreferences, add or edit this variable like it follows: (not category in this first release)

   * Set SMARTEDITICONS = %ICON{bubble}% %ICON{days}% %ICON{download}%...
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
Powered by Proyecto META
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Proyecto META? Send feedback