From 885a55c15002fc833474aaac6d01ea65e78a31ff Mon Sep 17 00:00:00 2001 From: montehurd <mhurd@wikimedia.org> Date: Thu, 14 Feb 2019 11:45:36 -0800 Subject: [PATCH] fix edit link button state when nested inside template --- Wikipedia/assets/codemirror/codemirror-index.html | 2 +- www/codemirror/codemirror-index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Wikipedia/assets/codemirror/codemirror-index.html b/Wikipedia/assets/codemirror/codemirror-index.html index 7c42d75c603..8d5c5f87899 100644 --- a/Wikipedia/assets/codemirror/codemirror-index.html +++ b/Wikipedia/assets/codemirror/codemirror-index.html @@ -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')) { diff --git a/www/codemirror/codemirror-index.html b/www/codemirror/codemirror-index.html index 7c42d75c603..8d5c5f87899 100644 --- a/www/codemirror/codemirror-index.html +++ b/www/codemirror/codemirror-index.html @@ -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')) {