Go to file
Catrope ce1f4dac55 Work around crazy list rendering bug in Firefox
After indenting or outdenting a list item in a numbered list, the
numbering wasn't updated. So if you had:
1. One
2. Two
3. Three

and you indented "Two", you'd get:
1. One
     1. Two
3. Three

Adding or removing items in the list using the keyboard, or even
inspecting the list in Firebug (!), would trigger a renumbering and fix
the list to display "2. Three". But then the same issue would occur in
in reverse when outdenting "Two" (either using undo or using the
outdent button):
1. One
2. Two
2. Three

The workaround is to force a reflow by requesting the height (thank you
Timo). Implemented this in an override of onSplice() in ve.ce.ListNode, so
the list is detached and reattached every time children are spliced into
or out of it.

I haven't managed to come up with a minimal test case for this, not even
by putting a list in a contentEditable div and doing the same DOM
operations that ve.ce does from a setTimeout callback.

Change-Id: I93b2a309034c411a7b4e4b6c6bd4ef9d473999eb
2012-07-20 14:07:53 -07:00
api Merge "Add localhost prefix pointing to http://localhost/w by default" 2012-07-19 04:33:55 +00:00
demos/ve Removed some whitespace 2012-07-19 14:25:16 -07:00
modules Work around crazy list rendering bug in Firefox 2012-07-20 14:07:53 -07:00
tests Fix selectNodes bug where selecting </li><li> returned an empty result 2012-07-19 18:10:57 -07:00
.gitignore Added support for localsettings.js and improved logging of instance status 2012-06-21 15:29:40 -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 JSHint: Added dotfiles and fixed tons of linting warnings. 2012-07-19 10:01:00 -07:00
ApiVisualEditor.php Removed some whitespace 2012-07-19 14:25:16 -07:00
AUTHORS.txt Changed to use MIT license per agreement with the VisualEditor team 2012-07-19 13:25:45 -07:00
LICENSE.txt Changed to use MIT license per agreement with the VisualEditor team 2012-07-19 13:25:45 -07:00
README Updated Readme to have sane content 2012-06-28 03:12:49 -07:00
VisualEditor.hooks.php Removed some whitespace 2012-07-19 14:25:16 -07:00
VisualEditor.i18n.php Merge "Removed Special:VisualEditorSandbox and refactored demo" 2012-07-19 00:58:43 +00:00
VisualEditor.php Removed some whitespace 2012-07-19 14:25:16 -07:00
VisualEditorMessagesModule.php Changed to use MIT license per agreement with the VisualEditor team 2012-07-19 13:25:45 -07:00

VisualEditor and Parsoid work together to provide a visual editor for wiki pages.

Parsoid is used 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.

Both projects are written in JavaScript. Parsoid runs on Node.js while VisualEditor runs in a web
browser.

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

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