Skip to content

Commit

Permalink
fix edit link button state when nested inside template
Browse files Browse the repository at this point in the history
  • Loading branch information
montehurd authored and joewalsh committed Feb 15, 2019
1 parent c727ba6 commit 885a55c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Wikipedia/assets/codemirror/codemirror-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
if (typesArray.includes('em')) {
result.push(buttonPayload('italic'))
}
if (typesArray.includes('mw-link-ground')) {
if (typesArray.includes('mw-link-ground') || typesArray.includes('mw-template-link-ground')) {
result.push(buttonPayload('link'))
}
if (typesArray.includes('mw-template-ground')) {
Expand Down
2 changes: 1 addition & 1 deletion www/codemirror/codemirror-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
if (typesArray.includes('em')) {
result.push(buttonPayload('italic'))
}
if (typesArray.includes('mw-link-ground')) {
if (typesArray.includes('mw-link-ground') || typesArray.includes('mw-template-link-ground')) {
result.push(buttonPayload('link'))
}
if (typesArray.includes('mw-template-ground')) {
Expand Down

0 comments on commit 885a55c

Please sign in to comment.