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