Christian Williams
b78875e8fd
oops
...
Change-Id: I485e6f51c4184c557187f1ef104adc11c3ba3950
2012-05-17 14:12:09 -07:00
Christian Williams
e3cfaca6ea
New demo for cursor placement
...
Change-Id: I7740e6e0dfc7ddda8b7062bfcac3900811e8653b
2012-05-17 13:59:45 -07:00
Trevor Parscal
08765feab3
Merged ve.dm.DocumentFragment and ve.dm.Document
...
* Also fixed lots of whitespace issues and some global variable introductions
Change-Id: Ia6c82ef0c3b5c4938cf72afa86da6d79e4cb385a
2012-05-17 11:23:56 -07:00
Christian Williams
5d06b26a6e
Compositionstart added into the mix to catch IME and Alt+0135 style key combinations
...
Change-Id: I5e4c3c69d139f3d4d86cb2429b8a6e4ebf98010c
2012-05-16 13:26:24 -07:00
Christian Williams
9379c5e5c7
Switching from parentElement to parentNode for IE support
...
Change-Id: I46dbac1201450af6ba24eab55d3134683ac04036
2012-05-15 22:51:14 -07:00
Christian Williams
2c471c4491
New playground demo for testing hijackability of keypresses when there is a selection
...
Change-Id: I63e067ca921491286f18b15c593c3e265946dfa8
2012-05-15 17:09:16 -07:00
Christian Williams
82cbb4a8ba
New playground test for inspectors in iframes
...
Change-Id: I5f0aeb01da789030117028ff4cb014f4c07fab8d
2012-05-14 17:43:34 -07:00
Christian Williams
c79b911469
Adding a little test that reports range info with alien nodes
...
Change-Id: I89be397431767100cc6749c284edeef1a80a4e8e
2012-05-11 15:54:31 -07:00
Inez Korczynski
156e15c66b
Added missing reference to ve.Document.js
...
Change-Id: I893442dcb1518c4c05e29fe29aece82ac04fe5c8
2012-05-09 22:51:46 -07:00
Christian Williams
28eb0c82e5
Adding HTML DOM -> Linear Model converter
...
Change-Id: Iae109d75e64321a7fe4ee8492d79ef5481716246
2012-05-04 15:47:41 -07:00
Rob Moen
d42e738636
- Optimize surface model and write unit tests
...
Change-Id: I8de24c840c5aa2d4232e6e2cc5f72cbd30be96b4
2012-05-04 15:29:47 -07:00
Trevor Parscal
9887dbd96f
Split Broke DefinitionListNode out of ListNode and DefinitionListItemNode out of ListItemNode
...
* Makes it simpler in the linear model because we don't have to use style: "item" for regular list items and style: "definition" for definition lists
* Enforces correct nesting through existing node rules systems
* Updates tests accordingly
Change-Id: I64d80af938e325f1961226505bdc386bb35ccdda
2012-05-04 11:56:32 -07:00
Rob Moen
014084fc65
- fix demo styling for docs list
...
Change-Id: I5e5d16fe9a002e3cafd01138ad9b92ff987178d6
2012-05-03 16:27:28 -07:00
Trevor Parscal
23e32af302
Added some styles to the demo to add spacing around stuff in the header
...
Change-Id: Id2e205e9a02dd9b040a40fa4f5ca14891e21d838
2012-05-03 15:21:03 -07:00
Trevor Parscal
4e8a9d75ea
Added charset meta tag to demo
...
Change-Id: I544bdc446262f03bd15790a9cf6d7f9c2f9dcd55
2012-05-03 15:11:10 -07:00
Rob Moen
56dff6dacb
Added new node types
...
Change-Id: I6b5f2e5a7dbdb7c59b4799d44f7924c5594c0e34
2012-05-03 14:22:09 -07:00
Inez Korczynski
6224c60075
Rendering works in very basic version
...
Change-Id: I8789860fe82f2e7db1e503889e20ce51de57bfa2
2012-05-03 14:02:35 -07:00
Christian Williams
07ca8787bb
Including ve.NodeFactory.js
...
Change-Id: Iac47ea5486c5c631084d2f0d184ab8c84dfd6696
2012-05-03 13:40:16 -07:00
Christian Williams
4f487bf243
Updates to script includes in demo index.
...
Change-Id: I7c8859461c06ebce0d79633d52108d5a2714118a
2012-05-03 13:35:16 -07:00
Rob Moen
94479bd79d
Build out ve.Surface constructor to support multiple editor instances
...
Now setting up multiple toolbars per config
Tools & Modes are now configurable per toolbar per instance
Base elements are created on demand and no longer id specific
Note: There are some bugs with multiple instances.
Change-Id: Id0bbbca2d1b76fd2db3f3b0f9abd90194930b610
2012-04-26 11:56:47 -07:00
Trevor Parscal
50f43c89d5
Add links in sandbox and demo to ve.dm.DocumentSychronizer.js
...
This was caused by added this dependency in the code without adding the links to the sandbox and demo
Change-Id: I7b2f0129a28dfd8655dfbce8688cfb3920c690fd
2012-04-02 13:28:09 -07:00
Trevor Parscal
19f3d5c107
Added ve.Surface, a wrapper around an editor instance
...
* This high level surface object is responsible for creating & managing editor instances
* Revised Sandbox demo to invoke in this way.
Change-Id: I4043779af9a2ab964deaf26079a992e82ebeef27
2012-03-29 15:55:33 -07:00
Trevor Parscal
c44ef066b9
Replaced es with ce for Sandbox and main demo
...
* Configured VisualEditorSandbox to use es
* Reconfigured the ce demo to share the sandbox module
* Removed es demo
* Renamed ce demo to ve (es is broken anyways)
Patchset 2: squashed in https://gerrit.wikimedia.org/r/3953
Change-Id: If8d13bf7011616d222be78899b23186859d5ed70
2012-03-29 15:43:59 -07:00
christian
ff4d456e96
fixes to ie ce test demo
2012-03-16 01:44:58 +00:00
christian
4b22add6f3
3d flip demo and nested contenteditable tests for IE
2012-03-16 00:40:42 +00:00
christian
5250a7f733
adding test files for IE table resize handling
2012-03-14 21:05:05 +00:00
Inez Korczynski
294d474c54
Replace CursorObserver and ContentObserver with SurfaceObserver
2012-03-14 00:04:24 +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
4bc7dbbe5e
Initial import of CursorObserver and ContentObserver (not being used yet).
2012-03-09 22:18:24 +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
christian
13c6b46821
adding bidirectional text for testing
2012-02-28 23:40:29 +00:00
Alexandre Emsenhuber
a22a861c92
svn:eol-style native
2012-02-28 17:44:35 +00:00
Inez Korczynski
951c95b10b
Improved support for spellchecker
2012-02-28 01:17:55 +00:00
Inez Korczynski
fe7a223746
Input implementation that seems to work in IE, FF and Chrome (all tested on Windows only)
2012-02-28 00:21:54 +00:00
Inez Korczynski
aa2e0615b7
Input implementation that seems to work in IE, FF and Chrome (all tested on Windows only)
2012-02-28 00:19:23 +00:00
Inez Korczynski
df20e27712
Detecting if change to text is coming from keyboard or spellcheck
2012-02-27 22:43:12 +00:00
Inez Korczynski
9ba2492fa0
New approach for handling input in ContentEditable - compare not only plain text but also hash of DOM structure of the particular leafnode (it let's detect spellcheck weird behaviour and react to it)
2012-02-24 22:37:17 +00:00
Inez Korczynski
2d500705ad
Testing new approach figure out where the change is coming from based on the cursor offset, not based on key events
2012-02-24 01:43:33 +00:00
Inez Korczynski
97aebbe226
Recogonize if input came from spellcheck or from keyboard (Chrome)
2012-02-23 23:20:35 +00:00
Inez Korczynski
25c2372a50
Fix relative paths to js files
2012-02-23 20:11:53 +00:00
Inez Korczynski
daf57e6f98
Move playground to demos subdirectory
2012-02-23 20:11:04 +00:00
Inez Korczynski
6429a4ea49
Move playground to demos subdirectory
2012-02-23 20:10:40 +00:00
Inez Korczynski
b63cac18e2
Move playground to demos subdirectory
2012-02-23 20:06:14 +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
Inez Korczynski
63224918c7
Use more interesting wikidom as example article in Content Editable demo
2012-02-10 01:07:12 +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
Inez Korczynski
b9e92ea035
Display "wikitext" pane by default in content editable demo
2012-02-08 05:56:33 +00:00
christian
75bec9fba1
cut support
2012-02-08 02:12:21 +00:00
christian
2d058f7a4d
copy and paste support
2012-02-08 00:47:51 +00:00
Inez Korczynski
2d531ed213
Get getSelection in contenteditable working
2012-02-08 00:02:08 +00:00
Inez Korczynski
a046c0d2cf
Cleanup Surface.js - only functionality that is needed for content editable
2012-02-07 22:59:30 +00:00
Inez Korczynski
db0aea6965
Make paragraphs in content editable use real <p> tags
2012-02-07 22:22:49 +00:00
Inez Korczynski
e0c10cdfff
Cleanup ve.es.Content.js for ContentEditable and setup toolbar as empty (as there is no working functionality for now)
2012-02-07 22:02:11 +00:00
Alexandre Emsenhuber
f162145298
svn:eol-style native
2012-02-07 19:13:19 +00:00
Trevor Parscal
250434aee0
Reorganized demo and demo-ce into demos/es and demos/ce
2012-02-07 18:15:28 +00:00