Go to file
Subramanya Sastry d7e83c4e2b Fixed/updated newline handling for <p> tags
- More pieces are now simplified and all(?) newline handling
  is now centralized in the serializeToken function.

- This commit fixes bugs in rt-ing some code snippets
    ----------
    Ex 1: foo<p>bar</p>baz
    ----------

- This commit fixes bugs serializing VE generated html
    ----------
    Ex 2: <p>foo</p><pre>bar</pre> ==> foo\n bar
    ----------

- But, this round of fixes introduces RT failures for certain
  code examples in parserTests.txt.  In all these failing cases,
  inline text/html is embedded within a generated <p> tag during
  parsing.  If these generated <p> tags can have a "gc:1" attribute
  added to them, we can properly serialize them to the original
  form.
    ----------
    Ex 3: foo<pre>bar</pre>
          Parsed HTML: <p>foo</p><pre>bar</pre>
    ----------
  Note how this parsed HTML is identical to what the VE outputs
  in Example 2 above.  So, without the gc:1 attribute, we now
  have conflicting requirements on the example same HTML.
  This increases confidence in the correctness of my commit here.

Change-Id: I86beadec91c445a7f8a6d36a639b406697daa0a2
2012-06-14 14:59:18 -05:00
api Removed unused parser pipeline construction 2012-06-13 15:08:13 -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 Fixed/updated newline handling for <p> tags 2012-06-14 14:59:18 -05: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-07 19:15:00 +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