Specifications for a MoinMoin wiki editor

Reference and help documents

How should it work

Remarks

To implement first

Element

Start

Markup

HTML

Display

Heading

1

Normal
= Heading 1 =
== Heading 2 ==
=== Heading 3 ===
==== Heading 4 ====
==== Heading 5 ====

<h1>Heading 1</h1>
<h2>Heading 2 </h2>
<h3>Heading 3 </h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>

Normal

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5

Italic

''text''

<i>text</i>

text

Bold

'''text'''

<b>text</b>

text

Bold italics

'''''text'''''

<b><i>text</i></b>

text

Underline

__text__

<u>text</u>

text

Superscript

a^2^

a<sup>2</sup>

a2

Subscript

H,,2,,O

H<sub>2</sub>O

H2O

Larger text

~+larger+~

larger

Smaller text

~-smaller-~

smaller

Inline text (or typewriter)

text { { { inline } } } text or
text `inline` text

text inline text

Line break

1

[[BR]]

<br>

Paragraph

1

"blank line"

<p>

Horizontal Rules

1

---- to ----------
(from 4 to 10 dashes)

<hr> with "size" attribute

Lists and Indenting

2-n

1 to n blanks followed by either * or 1. or i. or a. or A.

<li> with "type" attribute or + <ol>, <ul> &

Indenting

2-n

None
 One
  Two
(1 to n blanks)

<blockquote>...

None
 One
  Two

Simple tables

||row1col1||row1col2||
||row2col1||row2col2||

<table><tr><td> . . .

row1col1

row1col2

row2col1

row2col2

Internal links
(wiki links)

CapSizedText
or
any name with blanks

CapSizedText [BR]] any name with blanks

External links

http://www.arcelor.com
or
http://www.arcelor.com
Arcelor Internet site

<a href=http://www.abc.com> </a>

<a href=http://www.abc.com> ABC</a>

http://www.abc.com
http://www.abc.com
ABC

Insert image

attachment:filename.ext

<img>...

"inserted image"

Insert file

attachment:filename.ext

<http://...>

filename.ext

Other editor features

Basically this should be like Mozilla composer, but use wiki markup instead of html.

All these must use the platform key shortcuts

  • Undo - Control/Command + Z
  • redo - Shift + Control/Command + Z ?
  • Copy - Control/Command + C
  • Cut - Control/Command + X
  • Paste - Control/Command + V
  • Additionally, system-specific commands should be accepted here. This includes e.g. on Windows CTRL + Ins for copying the selection.

This should be toggle or integrated button

  • Page View
  • Code View

Wiki markup

  • Headings - can be a popup menu, or one button for each heading level
  • List
  • Ordered List
  • Code Area - can be a menu with all parsers (python, cplusplus, java etc.)
  • Link - select text and make it a link
  • Text style : Normal, Bold, Italic, Underline, Bigger, Smaller, Preformated - each can be on or off (Normal can be a shortcut to turn all off in one click)
  • Macros menu - with all available macros in the system?

Language support:

  • Maybe a button to setup the language of a section? current markup uses macro call to set the current language.
  • Or just text direction for a section, at least paragraph level

Others:

  • Find - basic
  • Search and replace - basic

Comments:

To be implemented later

Framed text
(block quote)

{ { {
framed text on several lines
} } }

Terms
&
Labels

Term:: Description
Label:: Definition

Insert anchor

[[Anchor(anchorname)]]

Reference to an anchor

[#anchorname] or [#ancharname label text]

Advanced tables

see HelpOnTables

Smileys

see HelpOnSmileys

Insert macro

[[MyMacro( )]]

Change font and text colour

Via specific parser or macro [[color( )]]

Ignored tags (displayed as is)

Hidden text

Suggestion: Highlighted text

Discussion

Other editor features

This should be toggle or integrated button


-- FlorianFesti 2005-03-23 08:43:58

MoinMoin: FeatureRequests/CorporateWiki/GuiEditor/Specifications (last edited 2007-10-29 19:14:00 by localhost)