Go to file
Catrope 662880605c (bug 42119) Handle alienation in wrapping mode properly
When alienating in wrapping mode, we need to look at the type of tag to
decide whether to create a wrapped alienInline, or to interrupt the
paragraph for an alienBlock.

This was being done just fine for the general alienation case
(unrecognized tag), but not for the special cases (mw:unrecognized,
about groups).

* Centralize the logic for ending a wrapper in stopWrapping()
* Move the wrapping-contingent block/inline detection logic into
  createAlien()
* Simplify the terrible if statement to decide whether a future decision
  requires us to stop wrapping. Instead, detect the cases in each code
  path separately and call stopWrapping() as appropriate
* Add tests

Change-Id: I4054584ae05e7d5daa71edead3e6a6588cf5d3bb
2012-11-21 13:42:13 -08:00
demos Add moar demo pages 2012-11-21 13:24:38 -08:00
maintenance Fix path issues with missing files, inconsistent subset in demo, test & mediawiki. 2012-10-16 10:03:26 -04:00
modules (bug 42119) Handle alienation in wrapping mode properly 2012-11-21 13:42:13 -08:00
.gitignore Removed Parsoid-related files from .gitignore 2012-08-26 12:20:06 +03:00
.gitreview
.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 Also increase the server-side timeout to 100s 2012-11-14 17:16:13 -08:00
AUTHORS.txt Remove the parser from the VE repo 2012-07-30 13:19:09 -07:00
CODING.md ve.ui.CommandFactory: Initial implementation 2012-10-24 17:48:16 +00: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 Ignore hidden-ness of visualeditor-enable preference 2012-11-14 15:44:15 -08:00
VisualEditor.i18n.php Fix message key, probably c&p error in I1cc00844 2012-11-20 22:09:41 +01:00
VisualEditor.php (bug 42218) Add MWEntityNode 2012-11-20 16:19:55 -08:00
VisualEditorMessagesModule.php Design changes for save dialog 2012-08-17 13:48:16 -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