Go to file
Gabriel Wicke 08b5ed1a43 Use _inNewlineContext method instead of bare onNewline
This makes sure that we escape start-of-line syntax when needed, since
onNewline is often not yet set.

Discussion / background:
[19:18] <subbu> this will fix it, but, i think this is asking for another
minor refactoring of these flags ... because this is a subtle fix which means
it might be possible to make it clearer.  onNewline is one true in on
direction, i.e. if true, we are in a new line state, but if we are in a
newline context, onNewline is not true, which is why this new method is
needed.
[19:19] <subbu> i dont know if it is possible, but it seems like it shoudl be
possible.  but, something for later.
[19:20] <subbu> badly phraed.  "onNewline" ==> in new line context, but if in
new line context, onNewline may be false.
[19:20] <gwicke> we should perhaps update it as early as possible instead
[19:21] <subbu> i cannot today, but possible monday.  i am heading out in
about 15-30 mins.
[19:22] <gwicke> will need to check all conditions depending on it in
_serializeToken
[19:22] <subbu> oh, i misunderstood you :)
[19:22] <gwicke> and if there are cases where the onNewline / onStartOfLine
state could be reverted later
[19:23] <subbu> you were referring to the flag, i thought you meant we should
fix this sooner than later.
[19:23] <gwicke> yes, I wasn't terribly clear
[19:23] <gwicke> you wrote something about following productions swallowing
newlines, but I think we don't actually do that any more
[19:24] <gwicke> I'm quite optimistic that updating those flags much earlier
would work
[19:25] <subbu> yes, it could fix it.
[19:26] <subbu> you might be right reg. swallowing.  it was happening earlier.
but, not right now, after single-line mode and other fixes.

Change-Id: Ic1d8141c04eb54a59977d0ba87bcf06bafd421e0
2012-06-23 19:27:56 +02:00
api Explain reasoning behind number of worker calculation 2012-06-23 17:30:52 +02:00
demos Update JS and CSS references in demo to point to new location - ve instead of ve2 2012-06-19 20:53:55 -07:00
modules Use _inNewlineContext method instead of bare onNewline 2012-06-23 19:27:56 +02:00
tests Fixed output of translateOffset when collapsing a range 2012-06-21 10:45:58 -07:00
.gitignore Added support for localsettings.js and improved logging of instance status 2012-06-21 15:29:40 -07:00
.gitreview Set defaultrebase=0 2012-06-20 16:27:40 -07:00
ApiVisualEditor.php Actually block blocked users in the Parsoid API 2012-06-21 13:55:33 -07:00
README update a couple notes in VE readme 2011-11-02 21:14:04 +00:00
SpecialVisualEditorSandbox.php unnecessary to define messages here, followup r105972 2011-12-13 09:34:05 +00:00
VisualEditor.alias.php Localisation updates from http://translatewiki.net. 2012-06-11 14:31:40 +00:00
VisualEditor.hooks.php Remove userCan hook that had no effect 2012-06-18 17:42:11 -07:00
VisualEditor.i18n.php Localisation updates from http://translatewiki.net. 2012-06-22 18:10:55 +00:00
VisualEditor.php Fix display of edit summary message in save dialog 2012-06-21 13:39:27 -07:00
VisualEditorMessagesModule.php Fix display of edit summary message in save dialog 2012-06-21 13:39:27 -07:00

We're starting to merge bits from Wikidom and ParserPlayground tests here.
Enjoy!

Short-term work highlights:
* convert parser to wikidom format & using the wikidom serializer
* port/update/write more tests
* Special: page to host the editor as a standalone demo
* Opt-in test mode to switch the editor in on EditPage (initially blank)
* Use serializer to save pages from editor
* Use parser to load pages into editor

Long-term work highlights:
* more thorough & bulk testing
* more extension support