christian
e174082b35
table cell styling
2012-02-02 21:29:02 +00:00
christian
60e1f366a0
experimentation with table editing
2012-02-02 21:28:43 +00:00
christian
92670e1aa3
adding ce-leafNode class to leaf nodes
2012-02-02 02:34:39 +00:00
Inez Korczynski
142609481e
Fix showCursorAt method for bug of ">=" vs ">"
2012-02-02 02:27:45 +00:00
christian
71515f7bfc
changes to margins
2012-02-02 01:17:02 +00:00
christian
328c6a5fd9
floating table
2012-02-02 00:50:45 +00:00
Inez Korczynski
d6ae65af27
Get rid of "position: relative" - it breaks selection in contentEditable
2012-02-02 00:43:43 +00:00
christian
6a1b77f864
switching back to fully contenteditable for tables, disabling handles in firefox, changing title tag
2012-02-02 00:20:26 +00:00
Inez Korczynski
24ae5f7823
Don't replace spaces with in content editable
2012-02-01 23:48:44 +00:00
christian
9340ed6e72
contenteditable false for tables - true for table cells
2012-02-01 23:26:30 +00:00
christian
29270facde
removing outline from contenteditable elements
2012-02-01 23:26:08 +00:00
christian
c255dd966e
tweaking margins
2012-02-01 23:10:28 +00:00
Inez Korczynski
c9ff18175f
Render paragraphs as a <p> tags (indtead of <div>)
2012-02-01 22:56:15 +00:00
Inez Korczynski
d2ecda1361
Port contentEditable demo to EditingSurface layout
2012-02-01 22:38:57 +00:00
christian
e6f0de626c
adding resources for table rendering
2012-02-01 22:28:39 +00:00
Inez Korczynski
8bfb9c9440
Port contentEditable demo to EditingSurface layout
2012-02-01 22:27:28 +00:00
christian
91c6c83483
adding table to hybrid demo
2012-02-01 22:22:16 +00:00
Raimond Spekking
e5de3c2207
Localisation updates for core and extension messages from translatewiki.net
2012-02-01 20:58:11 +00:00
Gabriel Wicke
8c75aa1a7a
Remove type attribute for tag tokens.
2012-02-01 18:37:48 +00:00
Gabriel Wicke
689f697a93
Push token format conversion a bit further along, and add defines that were
...
missing in last commit.
2012-02-01 17:03:08 +00:00
Gabriel Wicke
a5b7ea7bcd
Add --debug and --trace options to parserTests as well.
2012-02-01 17:02:37 +00:00
Gabriel Wicke
a5cc10a06b
Change token format to plain strings for text tokens, and specific objects for
...
other tokens. This is only the first half of the conversion. The next step is
to drop the type attribute on most tokens and match on the constructor in the
token transform machinery.
2012-02-01 16:30:43 +00:00
Gabriel Wicke
dd3707ded5
Remove some modules normally bundled with node.js from dependencies, and
...
remove some older ones that are only used in currently-dead code.
2012-02-01 10:32:33 +00:00
Gabriel Wicke
e65c6502c0
Add source for #time implementation in comment
2012-02-01 10:14:01 +00:00
christian
5863c887b8
testing commit access
2012-02-01 02:52:00 +00:00
christian
4d2debd63b
adding range pixel position detection
2012-02-01 02:46:43 +00:00
Roan Kattouw
935cae67c6
As promised, reorganize insert() so the order of cases makes more sense (from simple to complex)
2012-01-31 17:14:16 +00:00
Gabriel Wicke
14a8a13678
A few more debug helpers including a --trace mode for light debugging. Some
...
improvements to parser functions on the way to support the cite extensions.
Preparation for generic template and template arg in attribute support. 222
parser tests now passing.
2012-01-31 16:50:16 +00:00
Roan Kattouw
6832be68ed
Fix test #30 : was failing because getScope() was broken and insert() didn't account for the case of inserting something like </list><list> at a structural offset. All tests are now passing, yay!
...
* Fix getScope()
** Drop the -1 which caused the result to be off by one level
** Prevent JS errors from occurring if bad input causes the loop to try to traverse up above the root node
* insert()
** Detect the case where the input data tries to close the containing element; in that case, we'll get scope != node
** Move the getNodeFromOffset() and getScope() calls up and out of the conditionals
** Remove unnecessary parent==model conditional, no longer needed now that getScope() can safely handle things that try to traverse too far up
** Add some comments to explain what's going on. I'll restructure this function a bit more shortly
2012-01-31 16:43:21 +00:00
Neil Kandalgaonkar
2688f823ef
added dependencies to README
2012-01-31 00:56:07 +00:00
Neil Kandalgaonkar
4d4f3ecdc5
should be in contents
2012-01-31 00:10:03 +00:00
Neil Kandalgaonkar
fbd14a7a75
if error, do not tell remote users what the actual command was
2012-01-31 00:07:07 +00:00
Neil Kandalgaonkar
f0b934ef2e
first pass at an API method that returns wikidom. Shells out to node. Some issues with XML API result formatting but works fine in JSON
2012-01-31 00:02:48 +00:00
Raimond Spekking
6d0cbce109
Localisation updates for core and extension messages from translatewiki.net
2012-01-28 20:37:44 +00:00
Gabriel Wicke
7cd94df47d
A few minor tweaks to reduce memory usage
2012-01-27 13:32:44 +00:00
Alexandre Emsenhuber
6767c63973
svn:eol-style native
2012-01-26 18:41:42 +00:00
Inez Korczynski
f16048dc51
Proof of concept for cursor repositioning - showCursorAt method
2012-01-26 07:14:03 +00:00
Inez Korczynski
ffc304ef6c
Small refactoring to getOffset method in SurfaceView
2012-01-26 06:55:46 +00:00
Inez Korczynski
b2db4c43eb
Basic support for backspace button
2012-01-26 01:47:37 +00:00
Inez Korczynski
bc26561ada
Basic support for "enter" key
2012-01-26 01:37:12 +00:00
Inez Korczynski
7af509311a
Modify color of browser native selection
2012-01-25 20:35:43 +00:00
Inez Korczynski
b8ca6d47f4
Fix offsets in example wikidom document
2012-01-25 19:13:06 +00:00
Inez Korczynski
2bfa69c7cf
Hybrid of ContentEditable and Wikidom - initial import
2012-01-25 18:54:12 +00:00
Inez Korczynski
d3ef9cdf54
Test commit
2012-01-25 18:52:48 +00:00
Trevor Parscal
94f7d79eb7
Skip traversal of leaf nodes if there aren't any children
2012-01-23 18:46:31 +00:00
Gabriel Wicke
4e6a54560a
* Emit token chunks for top-level block elements by patching the source of the
...
tokenizer
* Fix a bug uncovered by this
* Increase the number of outstanding listeners on a single download to 10000
2012-01-22 23:21:53 +00:00
Gabriel Wicke
7ea4d7d3db
A few parser function fixes and maximum template expansion in environment
...
config.
2012-01-22 19:32:28 +00:00
Gabriel Wicke
561cf3c237
Bug fixes and a first stab at a #time parser function. You can expand the main
...
page like this:
cd extensions/VisualEditor/modules/parser
echo '{{:Main Page}}' | node parse.js
echo '{{:Main Page}}' | node parse.js --html
echo '{{:Main Page}}' | node parse.js --debug
Even the date-based includes work somewhat, although they don't yet accept
passed-in dates.
2012-01-22 07:07:16 +00:00
Gabriel Wicke
60e45bb739
A bit of template expansion bug fixing and parser function documentation
2012-01-22 01:27:22 +00:00
Gabriel Wicke
e8a7034acf
Add some commandline switches to parse.js. Supports switching on/off debug
...
mode and a selection of html/WikiDom serialization.
2012-01-21 22:42:54 +00:00