Commit graph

296 commits

Author SHA1 Message Date
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