Go to file
Catrope 1a4c60ed17 Make translateRange() translate across wrapping transactions correctly
Previously, we would translate to the right of an insertion, but for
wrapping transactions that means we end up with something like
<ul><li>|<p>...</p></li></ul>|, which doesn't make any sense. This
change changes this to <ul><li>|<p>...</p>|</li></ul>.

* Add parameter to translateOffset() that toggles the behavior for
  the offset before an insertion
* In translateRange(), translate start and end differently
** In some cases this can map them across each other, fix that

Change-Id: Ia2197b08d9f6763be3f2db5a59546ddc3f74a281
2013-02-22 17:33:31 -08:00
.docs Implement inline documentation examples. 2013-02-08 17:47:10 -08:00
demos Introduction of ve.ce.RangyRange class. 2013-02-22 17:02:42 -08:00
maintenance Implement inline documentation examples. 2013-02-08 17:47:10 -08:00
modules Make translateRange() translate across wrapping transactions correctly 2013-02-22 17:33:31 -08:00
.gitignore Ignore Eclipse files 2013-01-11 10:58:47 -08:00
.gitreview Set defaultrebase=0 2012-06-20 16:27:40 -07:00
.jshintignore Make JSHint ignore the docs/ directory 2013-02-01 10:19:33 -08:00
.jshintrc inheritClass: Implement inherited 'static' property for classes. 2012-10-09 18:29:41 +00:00
ApiVisualEditor.php Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
AUTHORS.txt Add Ed 2013-02-12 16:06:21 -08:00
CODING.md Implement inline documentation examples. 2013-02-08 17:47:10 -08: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 Create tests for ve.FormatAction.convert 2013-02-22 11:52:12 -08:00
VisualEditor.i18n.php Localisation updates from http://translatewiki.net. 2013-02-18 21:01:53 +00:00
VisualEditor.php Introduction of ve.ce.RangyRange class. 2013-02-22 17:02:42 -08:00
VisualEditorMessagesModule.php Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08: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