Go to file
Trevor Parscal 6f8b0965f2 Remove range.normalize (not needed), use range.isCollapsed more often
The normalize method doesn't need to be explicitly called anymore because there's not any code that changes the properties of a range directly anymore.

A good way to prove it's not needed anymore is to move the normalization logic to the constructor and then add "console.log(this.from <= this.to );" to the normalize method - you will find that it's never actually doing anything at all because the range was normalized by the constructor.

ve.Range
* Moved normalization logic to constructor
* Removed calls to normalize method
* Removed normalize method
* Simplified documentation for flip method
* Whitespace fixes

ve.Document, ve.dm.Transaction, ve.dm.Surface, ve.dm.Document, ve.ce.Surface
* Removed calls to range.normalize
* Switched to using range.isCollapsed instead of comparing properties directly

Change-Id: I80bfd06f88579c34dce2083c2b70d63ab92f1275
2013-01-16 15:38:07 -08:00
.docs JSDuck: Fix warnings 2013-01-15 21:15:17 +01:00
demos (bug 43841) Major ve.ui rewrite, especially ve.ui.LinkInspector 2013-01-15 15:05:11 -08:00
maintenance Removed code for and links to unused libraries 2013-01-10 13:25:33 -08:00
modules Remove range.normalize (not needed), use range.isCollapsed more often 2013-01-16 15:38:07 -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 JSHint: Added dotfiles and fixed tons of linting warnings. 2012-07-19 10:01:00 -07:00
.jshintrc inheritClass: Implement inherited 'static' property for classes. 2012-10-09 18:29:41 +00:00
ApiVisualEditor.php Make {{PAGENAME}} in edit notices work by setting $wgTitle 2012-12-11 17:50:11 -08:00
AUTHORS.txt Remove the parser from the VE repo 2012-07-30 13:19:09 -07:00
CODING.md JSDuck: Generated code documentation! 2013-01-05 01:16:32 +01: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 Disabled VisualEditor section edit link overrides by default 2012-12-12 15:35:33 -08:00
VisualEditor.i18n.php Localisation updates from http://translatewiki.net. 2013-01-16 20:38:15 +00:00
VisualEditor.php (bug 43841) Major ve.ui rewrite, especially ve.ui.LinkInspector 2013-01-15 15:05:11 -08:00
VisualEditorMessagesModule.php Save dialog: Implement new "Review and Save" model. 2012-12-11 17:52:48 -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