Index: trunk/parsers/wikidom/lib/es/es.Surface.css |
— | — | @@ -30,6 +30,7 @@ |
31 | 31 | position: relative; |
32 | 32 | } |
33 | 33 | |
| 34 | +/* |
34 | 35 | .editSurface-list { |
35 | 36 | padding-left: 1em; |
36 | 37 | } |
— | — | @@ -40,6 +41,7 @@ |
41 | 42 | background-position: left 0.5em; |
42 | 43 | background-repeat: no-repeat; |
43 | 44 | } |
| 45 | +*/ |
44 | 46 | |
45 | 47 | .editSurface-line, |
46 | 48 | .editSurface-ruler { |
Index: trunk/parsers/wikidom/lib/es/es.ListBlockItem.js |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | */ |
17 | 17 | es.ListBlockItem = function( content, lists ) { |
18 | 18 | es.EventEmitter.call( this ); |
19 | | - es.Container.call( this, 'item', 'lists', lists ); |
| 19 | + es.Container.call( this, 'item', 'lists', lists, 'li' ); |
20 | 20 | this.content = content || new es.Content(); |
21 | 21 | this.$line = $( '<div class="editSurface-list-line"></div>' ); |
22 | 22 | this.$content = $( '<div class="editSurface-list-content"></div>' ); |
— | — | @@ -122,7 +122,6 @@ |
123 | 123 | if ( position.top < itemOffset.top + this.$line.height() ) { |
124 | 124 | position.top -= itemOffset.top; |
125 | 125 | position.left -= itemOffset.left; |
126 | | - position.left += this.$.parent().offset().left - itemOffset.left; |
127 | 126 | return globalOffset + this.flow.getOffset( position ); |
128 | 127 | } |
129 | 128 | |
Index: trunk/parsers/wikidom/lib/es/es.Container.js |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | * @emits "update" when items argument causes items to be appended |
12 | 12 | * @property $ {jQuery} Container element |
13 | 13 | */ |
14 | | -es.Container = function( typeName, listName, items ) { |
| 14 | +es.Container = function( typeName, listName, items, tagName ) { |
15 | 15 | es.EventEmitter.call( this ); |
16 | 16 | if ( typeof typeName !== 'string' ) { |
17 | 17 | typeName = 'container'; |
— | — | @@ -18,10 +18,13 @@ |
19 | 19 | if ( typeof listName !== 'string' ) { |
20 | 20 | listName = 'items'; |
21 | 21 | } |
| 22 | + if ( typeof tagName !== 'string' ) { |
| 23 | + tagName = 'div'; |
| 24 | + } |
22 | 25 | this._typeName = typeName; |
23 | 26 | this._listName = listName; |
24 | 27 | this._list = this[listName] = []; |
25 | | - this.$ = $( '<div></div>' ) |
| 28 | + this.$ = $( '<' + tagName + '/>' ) |
26 | 29 | .addClass( 'editSurface-' + typeName ) |
27 | 30 | .data( typeName, this ); |
28 | 31 | // Auto-append |
Index: trunk/parsers/wikidom/lib/es/es.ListBlockList.js |
— | — | @@ -12,8 +12,8 @@ |
13 | 13 | */ |
14 | 14 | es.ListBlockList = function( style, items ) { |
15 | 15 | es.EventEmitter.call( this ); |
16 | | - es.Container.call( this, 'list', 'items', items ); |
17 | 16 | this.style = style || 'bullet'; |
| 17 | + es.Container.call( this, 'list', 'items', items, this.style == 'bullet' ? 'ul' : 'ol' ); |
18 | 18 | }; |
19 | 19 | |
20 | 20 | /* Static Methods */ |