Index: trunk/parsers/wikidom/lib/hype/es.Surface.css |
— | — | @@ -1,4 +1,8 @@ |
2 | | -.editSurface-input { |
| 2 | +.editSurface { |
| 3 | + overflow: hidden; |
| 4 | +} |
| 5 | + |
| 6 | +.editSurface-surfaceView-input { |
3 | 7 | position: absolute; |
4 | 8 | z-index: -1; |
5 | 9 | opacity: 0; |
— | — | @@ -10,29 +14,34 @@ |
11 | 15 | width: 1px; |
12 | 16 | } |
13 | 17 | |
14 | | -.editSurface-input:focus { |
| 18 | +.editSurface-surfaceView-input:focus { |
15 | 19 | outline: none; |
16 | 20 | } |
17 | 21 | |
18 | | -.editSurface { |
19 | | - overflow: hidden; |
| 22 | +.editSurface-surfaceView-cursor { |
| 23 | + position: absolute; |
| 24 | + background-color: black; |
| 25 | + width: 1px; |
| 26 | + height: 1.5em; |
| 27 | + min-height: 1.5em; |
| 28 | + display: none; |
20 | 29 | } |
21 | 30 | |
22 | | -.editSurface-document { |
| 31 | +.editSurface-documentView { |
23 | 32 | cursor: text; |
24 | 33 | margin-top: 1em; |
25 | 34 | overflow: hidden; |
26 | 35 | -webkit-user-select: none; |
27 | 36 | } |
28 | 37 | |
29 | | -.editSurface-content { |
| 38 | +.editSurface-contentView { |
30 | 39 | position: relative; |
31 | 40 | } |
32 | 41 | |
33 | | -.editSurface-headingBlock, |
34 | | -.editSurface-tableBlock, |
35 | | -.editSurface-listBlock, |
36 | | -.editSurface-paragraphBlock { |
| 42 | +.editSurface-headingView, |
| 43 | +.editSurface-tableView, |
| 44 | +.editSurface-listView, |
| 45 | +.editSurface-paragraphView { |
37 | 46 | margin: 1em; |
38 | 47 | margin-top: 0; |
39 | 48 | position: relative; |
— | — | @@ -40,61 +49,61 @@ |
41 | 50 | font-size: 1em; |
42 | 51 | } |
43 | 52 | |
44 | | -.editSurface-headingBlock-level1, |
45 | | -.editSurface-headingBlock-level2 { |
| 53 | +.editSurface-headingView-level1, |
| 54 | +.editSurface-headingView-level2 { |
46 | 55 | border-bottom: 1px solid #AAA; |
47 | 56 | } |
48 | 57 | |
49 | | -.editSurface-headingBlock-level1 > * { |
| 58 | +.editSurface-headingView-level1 > * { |
50 | 59 | font-size:188%; |
51 | 60 | font-weight: normal; |
52 | 61 | } |
53 | 62 | |
54 | | -.editSurface-headingBlock-level2 > * { |
| 63 | +.editSurface-headingView-level2 > * { |
55 | 64 | font-size:150%; |
56 | 65 | font-weight: normal; |
57 | 66 | } |
58 | 67 | |
59 | | -.editSurface-headingBlock-level3 > * { |
| 68 | +.editSurface-headingView-level3 > * { |
60 | 69 | font-size:132%; |
61 | 70 | font-weight: bold; |
62 | 71 | } |
63 | 72 | |
64 | | -.editSurface-headingBlock-level4 > * { |
| 73 | +.editSurface-headingView-level4 > * { |
65 | 74 | font-size:116%; |
66 | 75 | font-weight: bold; |
67 | 76 | } |
68 | 77 | |
69 | | -.editSurface-headingBlock-level5 > * { |
| 78 | +.editSurface-headingView-level5 > * { |
70 | 79 | font-size:100%; |
71 | 80 | font-weight: bold; |
72 | 81 | } |
73 | 82 | |
74 | | -.editSurface-headingBlock-level6 > * { |
| 83 | +.editSurface-headingView-level6 > * { |
75 | 84 | font-size:80%; |
76 | 85 | font-weight: bold; |
77 | 86 | } |
78 | 87 | |
79 | | -.editSurface-listItem { |
| 88 | +.editSurface-listItemView { |
80 | 89 | position: relative; |
81 | 90 | padding: 0 0 0 1em; |
82 | 91 | background-position: left 0.6em; |
83 | 92 | background-repeat: no-repeat; |
84 | 93 | } |
85 | 94 | |
86 | | -.editSurface-listItem-bullet { |
| 95 | +.editSurface-listItemView-bullet { |
87 | 96 | background-image: url(images/bullet.png); |
88 | 97 | } |
89 | 98 | |
90 | | -.editSurface-listItem-number { |
| 99 | +.editSurface-listItemView-number { |
91 | 100 | /* */ |
92 | 101 | } |
93 | 102 | |
94 | | -.editSurface-listItem-bullet .editSurface-listItem-icon { |
| 103 | +.editSurface-listItemView-bullet .editSurface-listItemView-icon { |
95 | 104 | display: none; |
96 | 105 | } |
97 | 106 | |
98 | | -.editSurface-listItem-number .editSurface-listItem-icon { |
| 107 | +.editSurface-listItemView-number .editSurface-listItemView-icon { |
99 | 108 | position: absolute; |
100 | 109 | right: 100%; |
101 | 110 | margin-right: -0.5em; |
— | — | @@ -102,43 +111,43 @@ |
103 | 112 | line-height: 1.5em; |
104 | 113 | } |
105 | 114 | |
106 | | -.editSurface-listItem-level0 { |
| 115 | +.editSurface-listItemView-level0 { |
107 | 116 | margin-left: 0.5em; |
108 | 117 | } |
109 | 118 | |
110 | | -.editSurface-listItem-level1 { |
| 119 | +.editSurface-listItemView-level1 { |
111 | 120 | margin-left: 2.5em; |
112 | 121 | } |
113 | 122 | |
114 | | -.editSurface-listItem-level2 { |
| 123 | +.editSurface-listItemView-level2 { |
115 | 124 | margin-left: 4.5em; |
116 | 125 | } |
117 | 126 | |
118 | | -.editSurface-listItem-level3 { |
| 127 | +.editSurface-listItemView-level3 { |
119 | 128 | margin-left: 6.5em; |
120 | 129 | } |
121 | 130 | |
122 | | -.editSurface-listItem-level4 { |
| 131 | +.editSurface-listItemView-level4 { |
123 | 132 | margin-left: 8.5em; |
124 | 133 | } |
125 | 134 | |
126 | | -.editSurface-listItem-level5 { |
| 135 | +.editSurface-listItemView-level5 { |
127 | 136 | margin-left: 10.5em; |
128 | 137 | } |
129 | 138 | |
130 | | -.editSurface-listItem-level6 { |
| 139 | +.editSurface-listItemView-level6 { |
131 | 140 | margin-left: 12.5em; |
132 | 141 | } |
133 | 142 | |
134 | | -.editSurface-line, |
135 | | -.editSurface-ruler { |
| 143 | +.editSurface-contentView-line, |
| 144 | +.editSurface-contentView-ruler { |
136 | 145 | line-height: 1.5em; |
137 | 146 | cursor: text; |
138 | 147 | white-space: nowrap; |
139 | 148 | color: #000000; |
140 | 149 | } |
141 | 150 | |
142 | | -.editSurface-ruler { |
| 151 | +.editSurface-contentView-ruler { |
143 | 152 | position: absolute; |
144 | 153 | top: 0; |
145 | 154 | left: 0; |
— | — | @@ -146,16 +155,16 @@ |
147 | 156 | z-index: -1000; |
148 | 157 | } |
149 | 158 | |
150 | | -.editSurface-line.empty { |
| 159 | +.editSurface-contentView-line.empty { |
151 | 160 | display: block; |
152 | 161 | width: 0px; |
153 | 162 | } |
154 | 163 | |
155 | | -.editSurface-whitespace { |
| 164 | +.editSurface-contentView-whitespace { |
156 | 165 | color: #ffffff; |
157 | 166 | } |
158 | 167 | |
159 | | -.editSurface-range { |
| 168 | +.editSurface-contentView-range { |
160 | 169 | display: none; |
161 | 170 | position: absolute; |
162 | 171 | background-color: #bbffcc; |
— | — | @@ -163,16 +172,7 @@ |
164 | 173 | z-index: -1; |
165 | 174 | } |
166 | 175 | |
167 | | -.editSurface-cursor { |
168 | | - position: absolute; |
169 | | - background-color: black; |
170 | | - width: 1px; |
171 | | - height: 1.5em; |
172 | | - min-height: 1.5em; |
173 | | - display: none; |
174 | | -} |
175 | | - |
176 | | -.editSurface-format-object { |
| 176 | +.editSurface-contentView-format-object { |
177 | 177 | background-color: rgba(0,0,0,0.05); |
178 | 178 | border-radius: 0.25em; |
179 | 179 | margin: 1px 0 1px 1px; |
— | — | @@ -180,43 +180,43 @@ |
181 | 181 | cursor: default; |
182 | 182 | } |
183 | 183 | |
184 | | -.editSurface-format-object * { |
| 184 | +.editSurface-contentView-format-object * { |
185 | 185 | cursor: default !important; |
186 | 186 | } |
187 | 187 | |
188 | | -.editSurface-format-object a:link, |
189 | | -.editSurface-format-object a:visited, |
190 | | -.editSurface-format-object a:active { |
| 188 | +.editSurface-contentView-format-object a:link, |
| 189 | +.editSurface-contentView-format-object a:visited, |
| 190 | +.editSurface-contentView-format-object a:active { |
191 | 191 | color: blue; |
192 | 192 | } |
193 | 193 | |
194 | | -.editSurface-format-italic { |
| 194 | +.editSurface-contentView-format-italic { |
195 | 195 | font-style: italic; |
196 | 196 | } |
197 | 197 | |
198 | | -.editSurface-format-bold { |
| 198 | +.editSurface-contentView-format-bold { |
199 | 199 | font-weight: bold; |
200 | 200 | } |
201 | 201 | |
202 | | -.editSurface-format-link { |
| 202 | +.editSurface-contentView-format-link { |
203 | 203 | color: blue; |
204 | 204 | text-decoration: underline; |
205 | 205 | } |
206 | 206 | |
207 | | -.editSurface-format-big { |
| 207 | +.editSurface-contentView-format-big { |
208 | 208 | font-size: 1.2em; |
209 | 209 | } |
210 | 210 | |
211 | | -.editSurface-format-small, |
212 | | -.editSurface-format-sub, |
213 | | -.editSurface-format-super { |
| 211 | +.editSurface-contentView-format-small, |
| 212 | +.editSurface-contentView-format-sub, |
| 213 | +.editSurface-contentView-format-super { |
214 | 214 | font-size: .8em; |
215 | 215 | } |
216 | 216 | |
217 | | -.editSurface-format-sub { |
| 217 | +.editSurface-contentView-format-sub { |
218 | 218 | vertical-align: sub; |
219 | 219 | } |
220 | 220 | |
221 | | -.editSurface-format-super { |
| 221 | +.editSurface-contentView-format-super { |
222 | 222 | vertical-align: super; |
223 | 223 | } |
Index: trunk/parsers/wikidom/lib/hype/views/es.ParagraphView.js |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | es.DocumentViewLeafNode.call( this, model ); |
13 | 13 | |
14 | 14 | // DOM Changes |
15 | | - this.$.addClass( 'editSurface-paragraphBlock' ); |
| 15 | + this.$.addClass( 'editSurface-paragraphView' ); |
16 | 16 | }; |
17 | 17 | |
18 | 18 | /* Inheritance */ |
Index: trunk/parsers/wikidom/lib/hype/views/es.TableCellView.js |
— | — | @@ -11,7 +11,9 @@ |
12 | 12 | es.DocumentViewBranchNode.call( this, model, $( '<td>' ) ); |
13 | 13 | |
14 | 14 | // DOM Changes |
15 | | - this.$.attr( 'style', model.getElementAttribute( 'html/style' ) ); |
| 15 | + this.$ |
| 16 | + .attr( 'style', model.getElementAttribute( 'html/style' ) ) |
| 17 | + .addClass( 'editSurface-tableCellView' ); |
16 | 18 | }; |
17 | 19 | |
18 | 20 | /* Inheritance */ |
Index: trunk/parsers/wikidom/lib/hype/views/es.TableView.js |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | // DOM Changes |
15 | 15 | this.$ |
16 | 16 | .attr( 'style', model.getElementAttribute( 'html/style' ) ) |
17 | | - .addClass( 'editSurface-tableBlock' ); |
| 17 | + .addClass( 'editSurface-tableView' ); |
18 | 18 | }; |
19 | 19 | |
20 | 20 | /* Inheritance */ |
Index: trunk/parsers/wikidom/lib/hype/views/es.SurfaceView.js |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | this.$.append( this.documentView.$ ); |
18 | 18 | |
19 | 19 | this.cursor = { |
20 | | - $: $( '<div class="editSurface-cursor"></div>' ).appendTo( this.$ ), |
| 20 | + $: $( '<div class="editSurface-surfaceView-cursor"></div>' ).appendTo( this.$ ), |
21 | 21 | interval: null, |
22 | 22 | offset: null, |
23 | 23 | initialLeft: null |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | } ); |
48 | 48 | |
49 | 49 | // Hidden input |
50 | | - this.$input = $( '<input class="editSurface-input" />' ) |
| 50 | + this.$input = $( '<input class="editSurface-surfaceView-input" />' ) |
51 | 51 | .prependTo( this.$ ) |
52 | 52 | .on( { |
53 | 53 | 'focus' : function() { |
— | — | @@ -147,9 +147,13 @@ |
148 | 148 | |
149 | 149 | es.SurfaceView.prototype.moveCursor = function( instruction ) { |
150 | 150 | if ( instruction === 'left') { |
151 | | - this.showCursor( this.documentView.getModel().getRelativeContentOffset( this.cursor.offset, -1 ) ); |
| 151 | + this.showCursor( |
| 152 | + this.documentView.getModel().getRelativeContentOffset( this.cursor.offset, -1 ) |
| 153 | + ); |
152 | 154 | } else if ( instruction === 'right' ) { |
153 | | - this.showCursor( this.documentView.getModel().getRelativeContentOffset( this.cursor.offset, 1 ) ); |
| 155 | + this.showCursor( |
| 156 | + this.documentView.getModel().getRelativeContentOffset( this.cursor.offset, 1 ) |
| 157 | + ); |
154 | 158 | } else if ( instruction === 'up' || instruction === 'down' ) { |
155 | 159 | // ... |
156 | 160 | } else if ( instruction === 'home' ) { |
Index: trunk/parsers/wikidom/lib/hype/views/es.ContentView.js |
— | — | @@ -45,11 +45,12 @@ |
46 | 46 | } ); |
47 | 47 | |
48 | 48 | // DOM Changes |
49 | | - this.$ranges = $( '<div class="editSurface-ranges"></div>' ).prependTo( this.$ ); |
50 | | - this.$rangeStart = $( '<div class="editSurface-range"></div>' ).appendTo( this.$ranges ); |
51 | | - this.$rangeFill = $( '<div class="editSurface-range"></div>' ).appendTo( this.$ranges ); |
52 | | - this.$rangeEnd = $( '<div class="editSurface-range"></div>' ).appendTo( this.$ranges ); |
53 | | - |
| 49 | + this.$ranges = $( '<div class="editSurface-contentView-ranges"></div>' ); |
| 50 | + this.$rangeStart = $( '<div class="editSurface-contentView-range"></div>' ); |
| 51 | + this.$rangeFill = $( '<div class="editSurface-contentView-range"></div>' ); |
| 52 | + this.$rangeEnd = $( '<div class="editSurface-contentView-range"></div>' ); |
| 53 | + this.$.prepend( this.$ranges.append( this.$rangeStart, this.$rangeFill, this.$rangeEnd ) ); |
| 54 | + |
54 | 55 | // Initialization |
55 | 56 | this.scanBoundaries(); |
56 | 57 | } |
— | — | @@ -69,7 +70,7 @@ |
70 | 71 | es.ContentView.annotationRenderers = { |
71 | 72 | 'template': { |
72 | 73 | 'open': function( data ) { |
73 | | - return '<span class="editSurface-format-object">' + data.html; |
| 74 | + return '<span class="editSurface-contentView-format-object">' + data.html; |
74 | 75 | }, |
75 | 76 | 'close': '</span>', |
76 | 77 | 'float': function( data ) { |
— | — | @@ -78,39 +79,41 @@ |
79 | 80 | } |
80 | 81 | }, |
81 | 82 | 'bold': { |
82 | | - 'open': '<span class="editSurface-format-bold">', |
| 83 | + 'open': '<span class="editSurface-contentView-format-bold">', |
83 | 84 | 'close': '</span>', |
84 | 85 | 'float': false |
85 | 86 | }, |
86 | 87 | 'italic': { |
87 | | - 'open': '<span class="editSurface-format-italic">', |
| 88 | + 'open': '<span class="editSurface-contentView-format-italic">', |
88 | 89 | 'close': '</span>', |
89 | 90 | 'float': false |
90 | 91 | }, |
91 | 92 | 'size': { |
92 | 93 | 'open': function( data ) { |
93 | | - return '<span class="editSurface-format-' + data.type + '">'; |
| 94 | + return '<span class="editSurface-contentView-format-' + data.type + '">'; |
94 | 95 | }, |
95 | 96 | 'close': '</span>', |
96 | 97 | 'float': false |
97 | 98 | }, |
98 | 99 | 'script': { |
99 | 100 | 'open': function( data ) { |
100 | | - return '<span class="editSurface-format-' + data.type + '">'; |
| 101 | + return '<span class="editSurface-contentView-format-' + data.type + '">'; |
101 | 102 | }, |
102 | 103 | 'close': '</span>', |
103 | 104 | 'float': false |
104 | 105 | }, |
105 | 106 | 'xlink': { |
106 | 107 | 'open': function( data ) { |
107 | | - return '<span class="editSurface-format-link" data-href="' + data.href + '">'; |
| 108 | + return '<span class="editSurface-contentView-format-link" data-href="' + data.href + |
| 109 | + '">'; |
108 | 110 | }, |
109 | 111 | 'close': '</span>', |
110 | 112 | 'float': false |
111 | 113 | }, |
112 | 114 | 'ilink': { |
113 | 115 | 'open': function( data ) { |
114 | | - return '<span class="editSurface-format-link" data-title="' + data.title + '">'; |
| 116 | + return '<span class="editSurface-contentView-format-link" data-title="' + data.title + |
| 117 | + '">'; |
115 | 118 | }, |
116 | 119 | 'close': '</span>', |
117 | 120 | 'float': false |
— | — | @@ -129,8 +132,8 @@ |
130 | 133 | '>': '>', |
131 | 134 | '\'': ''', |
132 | 135 | '"': '"', |
133 | | - '\n': '<span class="editSurface-whitespace">¶</span>', |
134 | | - '\t': '<span class="editSurface-whitespace">⇾</span>', |
| 136 | + '\n': '<span class="editSurface-contentView-whitespace">¶</span>', |
| 137 | + '\t': '<span class="editSurface-contentView-whitespace">⇾</span>', |
135 | 138 | ' ': ' ' |
136 | 139 | }; |
137 | 140 | |
— | — | @@ -363,7 +366,7 @@ |
364 | 367 | * TODO: The offset needs to be chosen based on nearest offset to the cursor, not offset before |
365 | 368 | * the cursor. |
366 | 369 | */ |
367 | | - var $ruler = $( '<div class="editSurface-ruler"></div>' ).appendTo( this.$ ), |
| 370 | + var $ruler = $( '<div class="editSurface-contentView-ruler"></div>' ).appendTo( this.$ ), |
368 | 371 | ruler = $ruler[0], |
369 | 372 | fit = this.fitCharacters( line.range, ruler, position.left ), |
370 | 373 | center; |
— | — | @@ -448,7 +451,7 @@ |
449 | 452 | * measuring for those cases. |
450 | 453 | */ |
451 | 454 | if ( line.range.start < offset ) { |
452 | | - var $ruler = $( '<div class="editSurface-ruler"></div>' ).appendTo( this.$ ), |
| 455 | + var $ruler = $( '<div class="editSurface-contentView-ruler"></div>' ).appendTo( this.$ ), |
453 | 456 | ruler = $ruler[0]; |
454 | 457 | ruler.innerHTML = this.getHtml( new es.Range( line.range.start, offset ) ); |
455 | 458 | position.left = ruler.clientWidth; |
— | — | @@ -561,7 +564,7 @@ |
562 | 565 | // Cleanup |
563 | 566 | rs.$ruler.remove(); |
564 | 567 | this.lines = rs.lines; |
565 | | - this.$.find( '.editSurface-line[line-index=' + ( this.lines.length - 1 ) + ']' ) |
| 568 | + this.$.find( '.editSurface-contentView-line[line-index=' + ( this.lines.length - 1 ) + ']' ) |
566 | 569 | .nextAll() |
567 | 570 | .remove(); |
568 | 571 | rs.timeout = undefined; |
— | — | @@ -603,7 +606,7 @@ |
604 | 607 | // In case of empty content model we still want to display empty with non-breaking space inside |
605 | 608 | // This is very important for lists |
606 | 609 | if(this.model.getContentLength() === 0) { |
607 | | - var $line = $( '<div class="editSurface-line" line-index="0"> </div>' ); |
| 610 | + var $line = $( '<div class="editSurface-contentView-line" line-index="0"> </div>' ); |
608 | 611 | this.$.empty().append( $line ); |
609 | 612 | this.lines = [{ |
610 | 613 | 'text': ' ', |
— | — | @@ -625,7 +628,7 @@ |
626 | 629 | */ |
627 | 630 | rs.$ruler = $( '<div> </div>' ).appendTo( this.$ ); |
628 | 631 | rs.width = rs.$ruler.innerWidth(); |
629 | | - rs.ruler = rs.$ruler.addClass('editSurface-ruler')[0]; |
| 632 | + rs.ruler = rs.$ruler.addClass('editSurface-contentView-ruler')[0]; |
630 | 633 | // Ignore offset optimization if the width has changed or the text has never been flowed before |
631 | 634 | if (this.width !== rs.width) { |
632 | 635 | offset = undefined; |
— | — | @@ -670,7 +673,9 @@ |
671 | 674 | lineCount = rs.lines.length, |
672 | 675 | $line = this.$.children( '[line-index=' + lineCount + ']' ); |
673 | 676 | if ( !$line.length ) { |
674 | | - $line = $( '<div class="editSurface-line" line-index="' + lineCount + '"></div>' ); |
| 677 | + $line = $( |
| 678 | + '<div class="editSurface-contentView-line" line-index="' + lineCount + '"></div>' |
| 679 | + ); |
675 | 680 | this.$.append( $line ); |
676 | 681 | } |
677 | 682 | $line[0].innerHTML = this.getHtml( range ); |
— | — | @@ -684,7 +689,7 @@ |
685 | 690 | 'fractional': fractional |
686 | 691 | }); |
687 | 692 | // Disable links within rendered content |
688 | | - $line.find( '.editSurface-format-object a' ) |
| 693 | + $line.find( '.editSurface-contentView-format-object a' ) |
689 | 694 | .mousedown( function( e ) { |
690 | 695 | e.preventDefault(); |
691 | 696 | } ) |
Index: trunk/parsers/wikidom/lib/hype/views/es.ListItemView.js |
— | — | @@ -11,10 +11,10 @@ |
12 | 12 | es.DocumentViewLeafNode.call( this, model ); |
13 | 13 | |
14 | 14 | // Properties |
15 | | - this.$icon = $( '<div class="editSurface-listItem-icon"></div>' ).prependTo( this.$ ); |
| 15 | + this.$icon = $( '<div class="editSurface-listItemView-icon"></div>' ).prependTo( this.$ ); |
16 | 16 | |
17 | 17 | // DOM Changes |
18 | | - this.$.addClass( 'editSurface-listItem' ); |
| 18 | + this.$.addClass( 'editSurface-listItemView' ); |
19 | 19 | |
20 | 20 | // Events |
21 | 21 | this.on( 'update', this.setClasses ); |
— | — | @@ -31,13 +31,13 @@ |
32 | 32 | .attr( |
33 | 33 | 'class', |
34 | 34 | classes |
35 | | - .replace( /editSurface-listItem-level[0-9]+/, '' ) |
36 | | - .replace( /editSurface-listItem-(bullet|number)/, '' ) |
| 35 | + .replace( /editSurface-listItemView-level[0-9]+/, '' ) |
| 36 | + .replace( /editSurface-listItemView-(bullet|number)/, '' ) |
37 | 37 | ) |
38 | 38 | // Set the list style class from the style on top of the stack |
39 | | - .addClass( 'editSurface-listItem-' + styles[styles.length - 1] ) |
| 39 | + .addClass( 'editSurface-listItemView-' + styles[styles.length - 1] ) |
40 | 40 | // Set the list level class from the length of the stack |
41 | | - .addClass( 'editSurface-listItem-level' + ( styles.length - 1 ) ); |
| 41 | + .addClass( 'editSurface-listItemView-level' + ( styles.length - 1 ) ); |
42 | 42 | }; |
43 | 43 | |
44 | 44 | es.ListItemView.prototype.setNumber = function( number ) { |
Index: trunk/parsers/wikidom/lib/hype/views/es.ListView.js |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | es.DocumentViewBranchNode.call( this, model ); |
13 | 13 | |
14 | 14 | // DOM Changes |
15 | | - this.$.addClass( 'editSurface-listBlock' ); |
| 15 | + this.$.addClass( 'editSurface-listView' ); |
16 | 16 | |
17 | 17 | // Events |
18 | 18 | this.on( 'update', this.enumerate ); |
Index: trunk/parsers/wikidom/lib/hype/views/es.DocumentView.js |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | this.surfaceView = surfaceView; |
17 | 17 | |
18 | 18 | // DOM Changes |
19 | | - this.$.addClass( 'editSurface-document' ); |
| 19 | + this.$.addClass( 'editSurface-documentView' ); |
20 | 20 | }; |
21 | 21 | |
22 | 22 | /** |
Index: trunk/parsers/wikidom/lib/hype/views/es.HeadingView.js |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | es.DocumentViewLeafNode.call( this, model, $( '<h' + model.getElementAttribute( 'level' ) + '>') ); |
13 | 13 | |
14 | 14 | // DOM Changes |
15 | | - this.$.addClass( 'editSurface-headingBlock' ); |
| 15 | + this.$.addClass( 'editSurface-headingView' ); |
16 | 16 | |
17 | 17 | // Events |
18 | 18 | this.on( 'update', this.setClasses ); |
— | — | @@ -27,9 +27,9 @@ |
28 | 28 | level = this.model.getElementAttribute( 'level' ); |
29 | 29 | this.$ |
30 | 30 | // Remove any existing level classes |
31 | | - .attr( 'class', classes.replace( /editSurface-headingBlock-level[1-6]/, '' ) ) |
| 31 | + .attr( 'class', classes.replace( /editSurface-headingView-level[1-6]/, '' ) ) |
32 | 32 | // Add a new level class |
33 | | - .addClass( 'editSurface-headingBlock-level' + level ); |
| 33 | + .addClass( 'editSurface-headingView-level' + level ); |
34 | 34 | }; |
35 | 35 | |
36 | 36 | /* Inheritance */ |
Index: trunk/parsers/wikidom/lib/hype/views/es.TableRowView.js |
— | — | @@ -11,7 +11,9 @@ |
12 | 12 | es.DocumentViewBranchNode.call( this, model, $( '<tr>' ), true ); |
13 | 13 | |
14 | 14 | // DOM Changes |
15 | | - this.$.attr( 'style', model.getElementAttribute( 'html/style' ) ); |
| 15 | + this.$ |
| 16 | + .attr( 'style', model.getElementAttribute( 'html/style' ) ) |
| 17 | + .addClass( 'editSurface-tableRowView' ); |
16 | 18 | }; |
17 | 19 | |
18 | 20 | /* Inheritance */ |