From dacdd1cc4eab7fcc2c98c843d64c9da01be036a9 Mon Sep 17 00:00:00 2001 From: Keegan George Date: Thu, 11 Aug 2022 11:12:01 -0700 Subject: [PATCH] FIX: Edit Table button appearing in all `` elements (#12) --- javascripts/discourse/api-initializers/table-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascripts/discourse/api-initializers/table-editor.js b/javascripts/discourse/api-initializers/table-editor.js index 1cf36c0..6ee272b 100644 --- a/javascripts/discourse/api-initializers/table-editor.js +++ b/javascripts/discourse/api-initializers/table-editor.js @@ -90,7 +90,7 @@ export default apiInitializer("0.11.1", (api) => { } schedule("afterRender", () => { - const tables = post.querySelectorAll("table"); + const tables = post.querySelectorAll(".md-table table"); generatePopups(tables, helper.widget.attrs); }); },