Index: trunk/parsers/wikidom/lib/es/es.Surface.css |
— | — | @@ -68,6 +68,12 @@ |
69 | 69 | display: none; |
70 | 70 | } |
71 | 71 | |
| 72 | +.editSurface-format-template { |
| 73 | + background-color: rgba(0,0,0,0.125); |
| 74 | + border-radius: 0.25em; |
| 75 | + padding: 0.25em 0; |
| 76 | +} |
| 77 | + |
72 | 78 | .editSurface-format-italic { |
73 | 79 | font-style: italic; |
74 | 80 | } |
— | — | @@ -76,7 +82,7 @@ |
77 | 83 | font-weight: bold; |
78 | 84 | } |
79 | 85 | |
80 | | -.editSurface-format-xlink { |
| 86 | +.editSurface-format-link { |
81 | 87 | color: blue; |
82 | 88 | text-decoration: underline; |
83 | 89 | } |
Index: trunk/parsers/wikidom/lib/es/es.Content.js |
— | — | @@ -114,6 +114,12 @@ |
115 | 115 | };
|
116 | 116 |
|
117 | 117 | Content.annotationRenderers = {
|
| 118 | + 'template': {
|
| 119 | + 'open': function( data ) {
|
| 120 | + return '<span class="editSurface-format-template">' + data.html;
|
| 121 | + },
|
| 122 | + 'close': '</span>',
|
| 123 | + },
|
118 | 124 | 'bold': {
|
119 | 125 | 'open': '<span class="editSurface-format-bold">',
|
120 | 126 | 'close': '</span>',
|
— | — | @@ -134,9 +140,9 @@ |
135 | 141 | },
|
136 | 142 | 'close': '</span>',
|
137 | 143 | },
|
138 | | - 'xlink': {
|
| 144 | + 'link': {
|
139 | 145 | 'open': function( data ) {
|
140 | | - return '<span class="editSurface-format-xlink" data-href="' + data.href + '">';
|
| 146 | + return '<span class="editSurface-format-link" data-href="' + data.href + '">';
|
141 | 147 | },
|
142 | 148 | 'close': '</span>'
|
143 | 149 | }
|
Index: trunk/parsers/wikidom/demos/es/index.html |
— | — | @@ -74,7 +74,7 @@ |
75 | 75 | { 'type': 'italic', 'range': { 'start': 17, 'end': 26 } }, |
76 | 76 | // "wrap is" should be a link to "#" |
77 | 77 | { |
78 | | - 'type': 'xlink', |
| 78 | + 'type': 'link', |
79 | 79 | 'data': { 'href': './' }, |
80 | 80 | 'range': { 'start': 22, 'end': 29 } |
81 | 81 | }, |
— | — | @@ -82,19 +82,15 @@ |
83 | 83 | }, |
84 | 84 | { 'text': "Word wrap is the additional feature of most text editors, word processors, and web browsers, of breaking lines between and not within words, except when a single word is longer than a line." }, |
85 | 85 | { |
86 | | - 'text': "It is usually done on the fly when viewing or printing a document, so no line break code is manually entered, or stored.[citation needed] If the user changes the margins, the editor will either automatically reposition the line breaks to ensure that all the text will \"flow\" within the margins and remain visible, or provide the typist some convenient way to reposition the line breaks.", |
| 86 | + 'text': "It is usually done on the fly when viewing or printing a document, so no line break code is manually entered, or stored. If the user changes the margins, the editor will either automatically reposition the line breaks to ensure that all the text will \"flow\" within the margins and remain visible, or provide the typist some convenient way to reposition the line breaks.", |
87 | 87 | 'annotations': [ |
88 | 88 | // "[citation needed]" should be super |
89 | 89 | { |
90 | | - 'type': 'script', |
91 | | - 'data': { 'type': 'super' }, |
92 | | - 'range': { 'start': 120, 'end': 137 } |
93 | | - }, |
94 | | - // "[citation needed]" should be a linke to "#" |
95 | | - { |
96 | | - 'type': 'xlink', |
97 | | - 'data': { 'href': './' }, |
98 | | - 'range': { 'start': 120, 'end': 137 } |
| 90 | + 'type': 'template', |
| 91 | + 'data': { |
| 92 | + 'html': '<span class="editSurface-format-link editSurface-format-super">[citation needed]</span>' |
| 93 | + }, |
| 94 | + 'range': { 'start': 120, 'end': 121 } |
99 | 95 | } |
100 | 96 | ] |
101 | 97 | }, |