Roan Kattouw
|
37a59016e8
|
Break out pushAction() into separate functions for each action. This will allow me to change the rebuild action to take totally different parameters.
|
2012-03-14 21:02:29 +00:00 |
|
Roan Kattouw
|
bd9a86dd55
|
Remove the offset adjustment feature from DocumentSynchronizer. It gets in the way when I try to use this class in TransactionProcessor.
|
2012-03-14 21:02:27 +00:00 |
|
Roan Kattouw
|
1e17285afb
|
Move computation of missing offset from pushAction() to synchronize(), and only compute offsets for actions that require them. This also fixes an issue where offsets computed by pushAction() would be adjusted incorrectly by pushAction().
|
2012-03-14 21:02:26 +00:00 |
|
Roan Kattouw
|
7dd2b8b725
|
Make DocumentSynchronizer clear the queue after it's done with it
|
2012-03-14 21:02:24 +00:00 |
|
Inez Korczynski
|
f87709d6bb
|
Use <h[1-6]> tags for rendering headings (instead of divs)
|
2012-03-14 00:51:04 +00:00 |
|
Rob Moen
|
d77c0b91dc
|
fix dropdown tool to use selection from ce surfaceView
|
2012-03-14 00:29:41 +00:00 |
|
Inez Korczynski
|
294d474c54
|
Replace CursorObserver and ContentObserver with SurfaceObserver
|
2012-03-14 00:04:24 +00:00 |
|
christian
|
d174809b54
|
replacing showCursorAt calls with correct showCursor method
|
2012-03-13 18:12:57 +00:00 |
|
christian
|
010c97acc8
|
removing min height attribute to fix IE bug
|
2012-03-12 23:31:08 +00:00 |
|
christian
|
ba437744b3
|
preventing native contenteditable resizing tools
|
2012-03-12 23:06:47 +00:00 |
|
Rob Moen
|
350a53fd93
|
rework context icon positioning for CE surface using new getSelectionRect method
|
2012-03-12 22:14:43 +00:00 |
|
Rob Moen
|
22a351e855
|
small fix: getSelectionRange was breaking the surface layer, changed to saved state member
|
2012-03-12 22:04:29 +00:00 |
|
Rob Moen
|
65170e13df
|
port over select event listener, and updateSelection methods for setting and removing context icon, add getSelectionRect method for context icon position
|
2012-03-12 21:50:22 +00:00 |
|
christian
|
56b9068d03
|
switch to getSelectionRange and fixing IME native menu
|
2012-03-12 20:39:08 +00:00 |
|
Alexandre Emsenhuber
|
99a31bacbc
|
svn:eol-style native
|
2012-03-11 18:38:27 +00:00 |
|
Roan Kattouw
|
29f416937e
|
Fix some usages of splice.apply in the data model to use
ve.batchedSplice(). Added FIXME comments for occurrences outside of DM
|
2012-03-10 00:31:28 +00:00 |
|
Inez Korczynski
|
9a8f7059fc
|
Make ContentObserver pass information about content when emiting change event.
|
2012-03-09 23:15:23 +00:00 |
|
Trevor Parscal
|
02592b3ec0
|
More cleanup
|
2012-03-09 22:55:49 +00:00 |
|
Trevor Parscal
|
60c9c484aa
|
More cleanup (jshint complaints)
|
2012-03-09 22:51:00 +00:00 |
|
Trevor Parscal
|
ce824d6299
|
Cleanup
|
2012-03-09 22:45:22 +00:00 |
|
Inez Korczynski
|
4bc7dbbe5e
|
Initial import of CursorObserver and ContentObserver (not being used yet).
|
2012-03-09 22:18:24 +00:00 |
|
Trevor Parscal
|
2f9fcde16e
|
Removed duplicate static methods and members that were copied to ve.dm - lets just leave them in ve.dm.DocumentNode for now.
|
2012-03-09 21:54:00 +00:00 |
|
Roan Kattouw
|
b13d0a849d
|
Add a check for the length of unwrapOuter, and add a test for each
exception
|
2012-03-09 01:44:31 +00:00 |
|
Roan Kattouw
|
bc600b34be
|
Make prepareWrap() use the data from the model rather than the unwrap
parameters. This fixes the case where rolling back a list unwrap would
restore the list items without their attributes
|
2012-03-09 01:14:41 +00:00 |
|
Roan Kattouw
|
04910777d9
|
Fix stupid typos so wrapEach actually works
|
2012-03-09 00:38:34 +00:00 |
|
Roan Kattouw
|
ab26581b2e
|
Fix cursor adjustment in replace()
|
2012-03-08 23:21:28 +00:00 |
|
Roan Kattouw
|
5054ed320e
|
Implement prepareWrap and add tests for it
|
2012-03-08 23:21:26 +00:00 |
|
Roan Kattouw
|
9b66749575
|
Add documentation for to-be-written prepareWrap function
|
2012-03-08 23:21:24 +00:00 |
|
Roan Kattouw
|
d978797fca
|
Add a very simple transaction builder for content replacements
|
2012-03-08 23:21:21 +00:00 |
|
Roan Kattouw
|
cac9971299
|
Implement the replace operation for the linear model
|
2012-03-08 23:21:20 +00:00 |
|
Roan Kattouw
|
46dbb30b7a
|
Factor the batched splice code out from ve.insertIntoArray() into a
separate function
|
2012-03-08 23:21:18 +00:00 |
|
Roan Kattouw
|
93deba7b5c
|
Add replace operation
|
2012-03-08 23:21:17 +00:00 |
|
Trevor Parscal
|
becb1daa39
|
Added more tests for ve.dm.DocumentSynchronizer and fixed some bugs along the way
|
2012-03-08 19:35:51 +00:00 |
|
Alexandre Emsenhuber
|
62e8312535
|
svn:eol-style native
|
2012-03-08 12:27:02 +00:00 |
|
Trevor Parscal
|
459c4fa271
|
Added some basic tests for resize and insert. Fixed some bugs in both of those code paths along the way.
|
2012-03-08 00:52:30 +00:00 |
|
Trevor Parscal
|
de0f83643b
|
Typo in file name
|
2012-03-07 23:48:58 +00:00 |
|
christian
|
df4f017b21
|
preserve range after applying annotation
|
2012-03-07 23:35:38 +00:00 |
|
Inez Korczynski
|
ab496f7bc9
|
Get rid of showCursorAt method. And replace calls to it with calls to showCursor.
|
2012-03-07 23:33:41 +00:00 |
|
Inez Korczynski
|
8e56acbaca
|
Added getDOMNodeAndOffset and showSelection methods to Surface. Ohhh and little wrapper around it - showCursor.
|
2012-03-07 23:32:26 +00:00 |
|
christian
|
76b7127e29
|
removing usage of rangy anchornode for determining rendering scope - using model and autoRender
|
2012-03-07 21:41:53 +00:00 |
|
Inez Korczynski
|
73f53e89c6
|
Small refactoring. Changed method name, from Surface.getSelection to Surface.getSelectionRange.
|
2012-03-07 21:37:39 +00:00 |
|
christian
|
22ce25dc69
|
replacing cursor after annotating works
|
2012-03-07 21:06:07 +00:00 |
|
Trevor Parscal
|
55cf0c8ada
|
Added sketch for ve.dm.DocumentSynchronizer which is a utility object for queueing up actions to be performed on the model tree such as deletion, insertion, rebuilding, resizing and updating of node. Using this approach, we can collect actions across multiple steps, and then normalize them to avoid duplicate work and mutate the model tree in a single step.
|
2012-03-07 20:21:32 +00:00 |
|
Rob Moen
|
0520e64d97
|
port over annotation methods from ES to CE, remove unused renderDomNode method
|
2012-03-07 19:37:17 +00:00 |
|
Rob Moen
|
73fbbe29ab
|
cleanup whitespace
|
2012-03-07 19:33:00 +00:00 |
|
christian
|
816a6717a6
|
adding autoRender property to SurfaceView to enable/disable automatic rendering of view when model is updated
|
2012-03-07 08:13:12 +00:00 |
|
Trevor Parscal
|
a82ddeae51
|
Fixed some jshint complaints and enforced 100char line endings
|
2012-03-06 23:51:31 +00:00 |
|
Inez Korczynski
|
2e9ab44719
|
Update class names, from ve.es to ve.cs, and update code that uses those classes
|
2012-03-06 22:39:43 +00:00 |
|
Inez Korczynski
|
594a0e6d6c
|
Rename bunch of files from ve.es.* to ve.ce.* (and update references)
|
2012-03-06 22:35:42 +00:00 |
|
Inez Korczynski
|
8dcd638249
|
Copy files from ve/es to ve/ce and update references
|
2012-03-06 22:31:44 +00:00 |
|
Rob Moen
|
809df81282
|
enable CE demo toolbar, added annnotation and renderDomNode methods
|
2012-03-05 22:08:35 +00:00 |
|
Rob Moen
|
da5a148f9c
|
prevent insert for stand alone command key.
|
2012-03-05 17:57:54 +00:00 |
|
Rob Moen
|
714f15cef7
|
minor changes: remove whitespace and add semicolons
|
2012-03-03 00:17:15 +00:00 |
|
Inez Korczynski
|
01e84a558c
|
Improvements to changes polling mechanism
|
2012-03-02 02:07:55 +00:00 |
|
Inez Korczynski
|
90cfb62cb6
|
Added basic support for enter key
|
2012-03-02 01:35:34 +00:00 |
|
christian
|
923e9380cd
|
event binding cleanup
|
2012-03-02 01:12:18 +00:00 |
|
christian
|
3a1ee7e5b9
|
adding paste fixes to cut handler
|
2012-03-02 00:37:01 +00:00 |
|
Inez Korczynski
|
b16a1c3899
|
Fix bug in Chrome when moving cursor with left/right arrow in between <table> and textnode
|
2012-03-02 00:34:31 +00:00 |
|
christian
|
5ec5fb77e6
|
better cut-copy-paste support
|
2012-03-02 00:27:04 +00:00 |
|
Inez Korczynski
|
7de9e98583
|
Fix couple of poll interval bugs in Surface and add new parameter called 'byref' to method getAnnotationsFromOffset which makes it return array references instead of copy of arrays.
|
2012-03-02 00:10:08 +00:00 |
|
christian
|
3f1ed0be6d
|
adding cut-copy-paste
|
2012-03-01 22:27:23 +00:00 |
|
Inez Korczynski
|
8120b0b624
|
Cleanup for JSLint
|
2012-03-01 22:14:14 +00:00 |
|
Inez Korczynski
|
45cd5a11d0
|
Explicitly pass parameter global=true to getOffset method
|
2012-03-01 20:52:22 +00:00 |
|
Inez Korczynski
|
5dc284efaf
|
Added getSelection method to Surface
|
2012-03-01 20:49:21 +00:00 |
|
Inez Korczynski
|
3bb7f81714
|
Migreate text input method from playground to ce and ce demo
|
2012-03-01 01:28:39 +00:00 |
|
Sam Reed
|
fc49422e1d
|
More image compression of extensions with WMF interest
|
2012-02-29 22:02:03 +00:00 |
|
christian
|
13fe37193a
|
re-enabling native browser spellcheck
|
2012-02-28 23:43:38 +00:00 |
|
Rob Moen
|
f6f05241c7
|
fixed my typo follow up r112555
|
2012-02-28 01:37:38 +00:00 |
|
Rob Moen
|
78eedb8c74
|
cleanup previous commit. follow up r112552
|
2012-02-28 00:46:23 +00:00 |
|
Rob Moen
|
37ffc61c19
|
prototype RTL text mode cursor handling. Need to complete the unicode regular expression, and make helper methods for RTL boundary
|
2012-02-28 00:35:17 +00:00 |
|
christian
|
7053e0517c
|
prevent dragging and dropping text - can be removed later if operation supported via model
|
2012-02-27 21:56:56 +00:00 |
|
Rob Moen
|
0575db24f7
|
added a left positioning to input to properly position ime context menu
|
2012-02-27 19:44:02 +00:00 |
|
Rob Moen
|
ed35395ba2
|
fix typo which prevented readInterval from stopping onBlur
|
2012-02-24 17:41:22 +00:00 |
|
Rob Moen
|
dab0396b54
|
minor fixes: removed whitespace, added semicolon
|
2012-02-24 00:49:28 +00:00 |
|
Rob Moen
|
8cf2fe9f33
|
follow up to r112276, fixed bug which prevented word selection
|
2012-02-24 00:32:44 +00:00 |
|
Trevor Parscal
|
7baae71363
|
very minor fixes
|
2012-02-24 00:05:29 +00:00 |
|
Rob Moen
|
26ab5f7408
|
Fixed bug when moving cursor with click. Calling showCursor after input regains focus prevents browser from freakishly scrolling
|
2012-02-24 00:04:21 +00:00 |
|
Rob Moen
|
297d41bb63
|
Rework general input to no longer clear during IME. Polling interval for non keyDown text comparison. Chunked text insertion for all normal keys which makes nice transactions and clears input.
|
2012-02-23 23:20:47 +00:00 |
|
Trevor Parscal
|
7366a22046
|
Added support for respecting new lines in pre-formatted blocks - using Shift+Enter will show this in action!
|
2012-02-23 01:18:01 +00:00 |
|
Trevor Parscal
|
696f5cb2a0
|
Replaced "set" and "clear" method for attribute transactions with "replace" method, which allows correct reversion. Also fixed list item tools to correctly use the new function signature.
|
2012-02-22 21:23:28 +00:00 |
|
christian
|
8b3bc2e439
|
turning off native spellcheck for now
|
2012-02-15 23:42:43 +00:00 |
|
Trevor Parscal
|
5f033c9bfe
|
Changed the way widths are calculated when rendering lines of text. Now we let the browser do it's normal layout thing, and use a set of floated divs to figure out the effective line width. Using this technique, we pretty much support floating content from a rendering perspective. Interaction is still a problem however.
|
2012-02-14 20:30:40 +00:00 |
|
Inez Korczynski
|
d5ad9a9ad4
|
New approach to text input and IME (part I)
|
2012-02-13 22:45:18 +00:00 |
|
christian
|
0e6fe86a05
|
Commenting out fake cursor for now, fixing paste binding
|
2012-02-13 19:51:39 +00:00 |
|
christian
|
c532488b40
|
creating showFakeCursorAt method and cleaning up code
|
2012-02-13 19:48:05 +00:00 |
|
Inez Korczynski
|
3ee4da941d
|
Render real <b> and <i> tags insteaf of <span>s
|
2012-02-13 19:38:31 +00:00 |
|
Inez Korczynski
|
0ce3c67872
|
Working prototype of insertion of the text with annotations
|
2012-02-11 01:04:14 +00:00 |
|
Inez Korczynski
|
001a432fa3
|
Get rid of console.logs
|
2012-02-10 22:27:17 +00:00 |
|
Inez Korczynski
|
b3453dc71c
|
Add new method: getDOMText
|
2012-02-10 22:19:12 +00:00 |
|
christian
|
f0e60248fb
|
fake cursor demo
|
2012-02-10 18:18:35 +00:00 |
|
Alexandre Emsenhuber
|
bfa0a28968
|
svn:eol-style native
|
2012-02-10 16:57:02 +00:00 |
|
Inez Korczynski
|
acd819b28b
|
Fix showCursorAt method - missing "break;"
|
2012-02-10 05:39:28 +00:00 |
|
christian
|
ed7dc80db9
|
reorginization of event handlers
|
2012-02-09 22:11:33 +00:00 |
|
Brion Vibber
|
d0abf39168
|
ve.js isn't the edit surface, that's es.js :)
|
2012-02-09 22:04:06 +00:00 |
|
christian
|
ffad7ef3d8
|
removing beforepaste event for now. it was hyper
|
2012-02-09 08:41:36 +00:00 |
|
christian
|
6a23449ecb
|
using transact
|
2012-02-09 07:39:43 +00:00 |
|
Inez Korczynski
|
3f843bb1a6
|
First implementation of IME for content editable
|
2012-02-09 00:51:59 +00:00 |
|
christian
|
f84fc1cbf1
|
paste handler no longer causes fast viewport shift when pasting
|
2012-02-08 23:37:52 +00:00 |
|
christian
|
13921a0468
|
layout tweaks
|
2012-02-08 22:50:34 +00:00 |
|
christian
|
e3e3150399
|
using execcommand to undo cut - model controls mutation
|
2012-02-08 18:06:03 +00:00 |
|