Go to file
Gabriel Wicke e117f09362 Wikitext escaping and quite complete source range tracking
* Started to add more complete tag source range (tsr) annotations to most
  start / empty tags. These replace the old sourcePos and sourceTagPos
  annotations, and look more promising for general round-tripping than block
  source ranges (bsr). See
  http://www.mediawiki.org/wiki/User:GWicke/Parsoid_source_ranges for some
  notes on this.
* Added an escapeWikitext method in the serializer that tokenizes supposedly
  text-only content from the DOM with the tokenizer and wraps runs of returned
  non-text tokens into nowiki tags. The source corresponding to non-text
  tokens is retrieved using the tsr annotations.
* Removed old (unused) table productions to avoid confusion.
* 276 round-trip tests are passing, vs. 283 without escaping.

Known issues:
* harmless for now, can be improved later: urllinks in external link captions
  are wrapped in nowiki. Example HTML:

<a rel='mw:extLink' href="http://example.com">http://example2.com</a>

* some start-of-line syntax in wiki-syntax preformatted blocks might be
  wrapped into nowiki when that would not really be needed. Example HTML DOM:

<pre>
* foo
* bar
</pre>

Change-Id: I01c34aedd5c566614d36924add47a6a960e91987
2012-06-19 23:36:44 +02:00
api Fixed newline stripping in rtve mode. 2012-06-19 12:34:42 -05:00
contentEditable First implementation of IME for content editable 2012-02-09 00:51:59 +00:00
demos Build out ve.Surface constructor to support multiple editor instances 2012-04-26 11:56:47 -07:00
modules Wikitext escaping and quite complete source range tracking 2012-06-19 23:36:44 +02:00
tests Remove a few entries we now care about from the whitelist 2012-06-07 10:04:20 +02:00
.gitignore Added node_modules and node error log file to git ignore 2012-06-10 23:56:50 -07:00
.gitreview Add .gitreview file 2012-03-22 13:54:55 -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.i18n.php Localisation updates from http://translatewiki.net. 2012-06-14 20:08:18 +00:00
VisualEditor.php Add links in sandbox and demo to ve.dm.DocumentSychronizer.js 2012-04-02 13:28:09 -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