Trevor Parscal
|
455afe25be
|
Added a "droppable" bit to each model so that prepareRemoval can avoid dropping table cells (for instance) when removing nodes that are completely covered (which it can't do yet)
|
2011-11-15 19:01:47 +00:00 |
|
Roan Kattouw
|
c484afe87a
|
Fix IE-specific test breakages. Two tests were broken because Array.prototype.indexOf() was used, another one because Array.prototype.splice() is broken in IE:
>>[1,2,3].slice(0).length
3
>>[1,2,3].slice(0, undefined).length
0
|
2011-11-15 16:21:45 +00:00 |
|
Trevor Parscal
|
ff07930171
|
Added test for prepareRemoval which fails atm, because strip doesn't drop nodes that are covered completely. Also cleaned up some comments in prepareRemoval
|
2011-11-15 01:15:21 +00:00 |
|
Trevor Parscal
|
2494c40297
|
Moved transaction processing code to new class, es.TransactionProcessor
|
2011-11-14 23:04:36 +00:00 |
|
Trevor Parscal
|
96a8598ec5
|
Added scope function to transaction processing so inserting </p></li><li><p> works
Fixed off-by-one in splicing dom nodes into view branches
|
2011-11-14 21:54:53 +00:00 |
|
Trevor Parscal
|
773d97cb1d
|
Using splice.apply because it's faster and actually works (the loop was incorrect anyways)
|
2011-11-14 19:51:00 +00:00 |
|
Inez Korczynski
|
c03e5fbc49
|
Minor fix
|
2011-11-11 00:28:25 +00:00 |
|
Inez Korczynski
|
662907a5df
|
Make getWordBoundaries returns null if given offset refers to element data. Also if given offset is beginning of the word then search for not beginning of the word offsets around (and other way round).
|
2011-11-10 21:43:28 +00:00 |
|
Roan Kattouw
|
a4f71ace69
|
Rewrite the remove() function in es.DocumentModel.operations such that the tests added in r102564 pass now
|
2011-11-10 15:50:59 +00:00 |
|
Alexandre Emsenhuber
|
fa172d1592
|
svn:eol-style native
|
2011-11-10 11:51:42 +00:00 |
|
Trevor Parscal
|
6c745687fc
|
Fixed prepareRemove to work again after getNodeFromOffset was changed.
|
2011-11-09 23:38:36 +00:00 |
|
Inez Korczynski
|
18b97268fc
|
Fix standard problem when writing backward loops
|
2011-11-08 01:00:31 +00:00 |
|
Inez Korczynski
|
a0acc98bcb
|
Fix for offset being passed within update event. It has to be local - as ContentView operates on local offsets for line ranges.
|
2011-11-08 00:59:55 +00:00 |
|
Inez Korczynski
|
2fb840236c
|
Basic support for "pre" elements (space at the beginning of the new paragraph in wikitext)
|
2011-11-07 23:46:30 +00:00 |
|
Inez Korczynski
|
6f5719e736
|
This is supposed to be a event name, not a variable
|
2011-11-07 21:34:29 +00:00 |
|
Inez Korczynski
|
d01cdd859d
|
ListItem now is a branch instead of being leaf. So it contains children - usually it would be just Paragraph, but in some cases Table as well (as Wikitext allows to have HTML table in list item)
|
2011-11-07 21:30:13 +00:00 |
|
Inez Korczynski
|
88e964263b
|
This is supposed to be a event name, not a variable
|
2011-11-07 19:44:56 +00:00 |
|
Trevor Parscal
|
187eca34eb
|
Added render from offset support
|
2011-11-07 19:42:36 +00:00 |
|
Trevor Parscal
|
add7c23191
|
Added es.Transaction.optimize and added in a test that neilk sent a patch for
|
2011-11-04 20:38:47 +00:00 |
|
Roan Kattouw
|
0801ec93a5
|
Change something that appeared to be a bug in the removal code
|
2011-11-04 20:17:42 +00:00 |
|
Trevor Parscal
|
b13b805f2b
|
Comment cleanup
|
2011-11-04 18:37:07 +00:00 |
|
Trevor Parscal
|
44ea20c406
|
Using getElementType instead of relying on .type property of es.DocumentModeNode objects
|
2011-11-04 18:33:06 +00:00 |
|
Trevor Parscal
|
b636d9a52b
|
Refactored some of the tree sync code to be reusable
|
2011-11-03 23:19:36 +00:00 |
|
Trevor Parscal
|
764f2b0e65
|
Reorganized model nodes into branches and leafs
|
2011-11-03 21:48:40 +00:00 |
|
Trevor Parscal
|
91f0cd2d6b
|
Renamed expandContentData to getExpandedContentData
|
2011-11-03 20:01:39 +00:00 |
|
Trevor Parscal
|
7e825a15fb
|
Fixed lots of bugs in the serializers, Wikitext and HTML look good
|
2011-11-03 19:39:12 +00:00 |
|
Trevor Parscal
|
cf5be16248
|
Cleaned up some unused files, added type to es.DocumentModelNode objects for serialization purposes, and added getPlainObject to es.DocumentModelNode which also uses the newly migrated es.DocumentModel.expandContentData
|
2011-11-03 19:01:55 +00:00 |
|
Trevor Parscal
|
6f53a48e87
|
Using content.range.* instead of content.* for start and end properties of content objects when converting from plain objects into flat data
|
2011-11-03 16:33:10 +00:00 |
|
Trevor Parscal
|
2b499d5990
|
Reorganized modules by javascript namespace
|
2011-11-02 21:31:45 +00:00 |
|