From 1d46d78ceda4b448ef8147583a77e612cb937d5b Mon Sep 17 00:00:00 2001 From: bwang Date: Thu, 28 Apr 2022 14:48:09 -0500 Subject: [PATCH] Disable TOC in edit mode Bug: T307112 Change-Id: Ic7bf195972d3f5bfe781a15fc805d7ef1b56e496 --- skin.json | 3 ++- skinStyles/ext.visualEditor.less | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 skinStyles/ext.visualEditor.less diff --git a/skin.json b/skin.json index 554db2517..e55acb0ac 100644 --- a/skin.json +++ b/skin.json @@ -351,7 +351,8 @@ "mediawiki.special": "skinStyles/mediawiki.special.less", "+ext.relatedArticles.readMore": "skinStyles/ext.relatedArticles.readMore.less", "+ext.uls.compactlinks": "skinStyles/ext.uls.compactlinks.less", - "+ext.uls.interface": "skinStyles/ext.uls.interface.less" + "+ext.uls.interface": "skinStyles/ext.uls.interface.less", + "+ext.visualEditor.base": "skinStyles/ext.visualEditor.less" }, "vector": { "+ext.echo.styles.alert": "skinStyles/ext.echo.styles.alert.less", diff --git a/skinStyles/ext.visualEditor.less b/skinStyles/ext.visualEditor.less new file mode 100644 index 000000000..f12b2813c --- /dev/null +++ b/skinStyles/ext.visualEditor.less @@ -0,0 +1,7 @@ +.ve-activated { + // Temporarily disable TOC in edit mode until TOC works with both visual and source editors + // T294950 + .sidebar-toc { + display: none; + } +}