Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/212774
Change subject: Publish preprocessing: Remove the empty br tags inserted by Firefox ...................................................................... Publish preprocessing: Remove the empty br tags inserted by Firefox Bug: T99851 Change-Id: Ia91f2f2fbe42a2a329df0874357147653859fe7c --- M modules/publish/ext.cx.publish.js 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/74/212774/1 diff --git a/modules/publish/ext.cx.publish.js b/modules/publish/ext.cx.publish.js index c4bc447..cf2e5f4 100644 --- a/modules/publish/ext.cx.publish.js +++ b/modules/publish/ext.cx.publish.js @@ -302,7 +302,12 @@ return $( this ).html(); } ); $content.find( 'link, title' ).remove(); - + // Firefox inserts <br type="_moz"> in Content ediables while clearing the content + // to keep the height and caret. https://bugzilla.mozilla.org/show_bug.cgi?id=414223 + // Remove them. + if ( navigator.userAgent.toLowerCase().indexOf( 'firefox' ) > -1 ) { + $content.find( 'br[type="_moz"]' ).remove(); + } // Remove placeholder sections $content.find( '.placeholder' ).remove(); // Remove empty sections. -- To view, visit https://gerrit.wikimedia.org/r/212774 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia91f2f2fbe42a2a329df0874357147653859fe7c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits