mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Add <ref> tags to wikitext detection regex
Bug: 56755 Change-Id: Ib7279401601147420441e77e4796b94fe91ac956
This commit is contained in:
parent
d2da45ec36
commit
6f650d9a61
|
@ -729,7 +729,7 @@ ve.init.mw.ViewPageTarget.prototype.checkForWikitextWarning = function () {
|
|||
}
|
||||
text = ve.ce.getDomText( node.$element[0] );
|
||||
|
||||
if ( text.match( /\[\[|\{\{|''|<nowiki|~~~|^==|^\*|^\#/ ) ) {
|
||||
if ( text.match( /\[\[|\{\{|''|<nowiki|<ref|~~~|^==|^\*|^\#/ ) ) {
|
||||
mw.notify(
|
||||
$( $.parseHTML( ve.init.platform.getParsedMessage( 'visualeditor-wikitext-warning' ) ) )
|
||||
.filter( 'a' ).attr( 'target', '_blank' ).end(),
|
||||
|
|
Loading…
Reference in a new issue