Index: trunk/parsers/wikidom/lib/es/es.ParagraphBlock.js |
— | — | @@ -16,6 +16,10 @@ |
17 | 17 | } ); |
18 | 18 | } |
19 | 19 | |
| 20 | +es.ParagraphBlock.newFromWikidom = function( wikidomBlock ) { |
| 21 | + return new es.ParagraphBlock( wikidomBlock.lines ); |
| 22 | +}; |
| 23 | + |
20 | 24 | es.ParagraphBlock.prototype.getLength = function() { |
21 | 25 | return this.content.getLength(); |
22 | 26 | }; |
— | — | @@ -109,4 +113,6 @@ |
110 | 114 | return new es.Range( 0, this.content.getLength() ); |
111 | 115 | }; |
112 | 116 | |
113 | | -es.extend( es.ParagraphBlock, es.Block ); |
| 117 | +es.Block.models['paragraph'] = es.ParagraphBlock; |
| 118 | + |
| 119 | +es.extend( es.ParagraphBlock, es.Block ); |
\ No newline at end of file |
Index: trunk/parsers/wikidom/lib/es/es.ListBlock.js |
— | — | @@ -20,4 +20,6 @@ |
21 | 21 | // var list = new es.List( style, items );
|
22 | 22 | }
|
23 | 23 |
|
| 24 | +es.Block.models['list'] = es.ListBlock;
|
| 25 | +
|
24 | 26 | es.extend( es.ListBlock, es.Block );
|