Mercurial > libervia-backend
comparison frontends/src/tools/composition.py @ 835:c00d90bce252
tools: composition RICH_FORMATS constant has been renamed to RICH_SYNTAXES
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 12 Feb 2014 15:19:48 +0100 |
parents | 1fe00f0c9a91 |
children | 58b4568ed4f2 |
comparison
equal
deleted
inserted
replaced
834:2d901b7fa861 | 835:c00d90bce252 |
---|---|
36 "list": {"tip": "List", "icon": "media/icons/dokuwiki/toolbar/16/ul.png"}, | 36 "list": {"tip": "List", "icon": "media/icons/dokuwiki/toolbar/16/ul.png"}, |
37 "link": {"tip": "Link", "icon": "media/icons/dokuwiki/toolbar/16/linkextern.png"}, | 37 "link": {"tip": "Link", "icon": "media/icons/dokuwiki/toolbar/16/linkextern.png"}, |
38 "horizontalrule": {"tip": "Horizontal rule", "icon": "media/icons/dokuwiki/toolbar/16/hr.png"} | 38 "horizontalrule": {"tip": "Horizontal rule", "icon": "media/icons/dokuwiki/toolbar/16/hr.png"} |
39 } | 39 } |
40 | 40 |
41 # Define here your rich text formats, the key must match the ones used in button. | 41 # Define here your rich text syntaxes, the key must match the ones used in button. |
42 # Tupples values must have 3 elements : prefix to the selection or cursor | 42 # Tupples values must have 3 elements : prefix to the selection or cursor |
43 # position, sample text to write if the marker is not applied on a selection, | 43 # position, sample text to write if the marker is not applied on a selection, |
44 # suffix to the selection or cursor position. | 44 # suffix to the selection or cursor position. |
45 # FIXME: must not be hard-coded like this | 45 # FIXME: must not be hard-coded like this |
46 RICH_FORMATS = {"markdown": {"bold": ("**", "bold", "**"), | 46 RICH_SYNTAXES = {"markdown": {"bold": ("**", "bold", "**"), |
47 "italic": ("*", "italic", "*"), | 47 "italic": ("*", "italic", "*"), |
48 "code": ("`", "code", "`"), | 48 "code": ("`", "code", "`"), |
49 "heading": ("\n# ", "Heading 1", "\n## Heading 2\n"), | 49 "heading": ("\n# ", "Heading 1", "\n## Heading 2\n"), |
50 "list": ("\n* ", "item", "\n + subitem\n"), | 50 "list": ("\n* ", "item", "\n + subitem\n"), |
51 "link": ("[desc](", "link", ")"), | 51 "link": ("[desc](", "link", ")"), |