FIX: ensures we can rewrite links

This selector was too specific and would end up catching a directlyt wich would result in innerHTML being the text of the link and not the full link.
This commit is contained in:
jjaffeux 2020-04-24 11:19:36 +02:00
parent 81bbc2080a
commit 222e50bacb
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import { withPluginApi } from "discourse/lib/plugin-api";
import { later, debounce } from "@ember/runloop";
const VALID_TAGS =
'h1, h2, h3, h4, h5, h6, p > *:not([data-wrap="placeholder"]), code, blockquote, .md-table, li > *:not([data-wrap="placeholder"])';
"h1, h2, h3, h4, h5, h6, p, code, blockquote, .md-table, li p";
const DELIMITER = "=";
function buildInput(key, placeholder) {