mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Merge "Section editing: strip links from heading text used for edit summary"
This commit is contained in:
commit
21ec4e87a9
|
@ -2028,7 +2028,9 @@ ve.init.mw.ArticleTarget.prototype.restoreEditSection = function () {
|
|||
headingNode = $section.data( 'view' );
|
||||
|
||||
if ( $section.length && new mw.Uri().query.summary === undefined ) {
|
||||
headingText = $section.text();
|
||||
// Due to interactions with Translate, strip out mw-
|
||||
// editsection from the heading.
|
||||
headingText = $section.clone().find( 'span.mw-editsection' ).remove().end().text();
|
||||
}
|
||||
|
||||
if ( headingNode ) {
|
||||
|
|
Loading…
Reference in a new issue