Merge "Wikitext paste: Fail if result has no visible content"

This commit is contained in:
jenkins-bot 2015-11-18 03:39:52 +00:00 committed by Gerrit Code Review
commit 2104ee1590

View file

@ -106,6 +106,10 @@ ve.ui.MWWikitextStringTransferHandler.prototype.process = function () {
null // No sanitization, since HTML is from Parsoid
);
if ( !doc.data.hasContent() ) {
return failure();
}
// Attempt to undo outermost p-wrapping if possible
surface = new ve.dm.Surface( doc );
try {