Go to file
Catrope 6f8307d5d2 Update LinkAnnotation for Parsoid href changes
Because the Parsoid prefix format changed from /mw:Foo to /mw/Foo , the
href format for internal links has changed from "/Foo" to "Foo". So the
href is now simply the title, except that it may be preceded by one or
more "../" if the title of the page we're on contains a '/'.

So instead of stripping the leading slash from internal link hrefs and
putting it back on the way out, only strip any leading "../"s and dump
the titles directly into the hrefs on the way out.

Also update the link test case for this, and add a test case for the ../
stripping.

Change-Id: I3e0bdde20f22cda34eb45fc351de5e780419b6a2
2012-08-14 11:03:37 -07:00
demos/ve Merge "Add ve.dm.BreakNode to represent <br>" 2012-08-09 21:50:41 +00:00
modules Update LinkAnnotation for Parsoid href changes 2012-08-14 11:03:37 -07:00
.gitignore Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
.gitreview Set defaultrebase=0 2012-06-20 16:27:40 -07:00
.jshintignore JSHint: Added dotfiles and fixed tons of linting warnings. 2012-07-19 10:01:00 -07:00
.jshintrc Refactor ve.js utilities and improve documentation 2012-08-12 20:32:45 +02:00
ApiVisualEditor.php Update API for Parsoid prefix changes 2012-08-13 17:56:30 -07:00
AUTHORS.txt Remove the parser from the VE repo 2012-07-30 13:19:09 -07:00
LICENSE.txt Changed to use MIT license per agreement with the VisualEditor team 2012-07-19 13:25:45 -07:00
README.txt Remove the parser from the VE repo 2012-07-30 13:19:09 -07:00
VisualEditor.hooks.php Register QUnit tests suites in MediaWiki to run from Special:JavaScriptTest 2012-07-27 17:14:23 -07:00
VisualEditor.i18n.php Localisation updates from http://translatewiki.net. 2012-08-13 19:56:45 +00:00
VisualEditor.php Update API for Parsoid prefix changes 2012-08-13 17:56:30 -07:00
VisualEditorMessagesModule.php Added ve.init.platform with MediaWiki and stand-alone implementations 2012-07-27 13:39:19 -07:00

VisualEditor provides a visual editor for wiki pages. It is written in
JavaScript and runs in a web browser. 

It uses the Parsoid parser to convert wikitext documents to annotated HTML
which the VisualEditor is able to load, modify and emit back to Parsoid at
which point it is converted back into wikitext.

For more information about these projects, check out the wiki:

	* http://www.mediawiki.org/wiki/VisualEditor
	* http://www.mediawiki.org/wiki/Parsoid