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:
parent
81bbc2080a
commit
222e50bacb
|
@ -3,7 +3,7 @@ import { withPluginApi } from "discourse/lib/plugin-api";
|
||||||
import { later, debounce } from "@ember/runloop";
|
import { later, debounce } from "@ember/runloop";
|
||||||
|
|
||||||
const VALID_TAGS =
|
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 = "=";
|
const DELIMITER = "=";
|
||||||
|
|
||||||
function buildInput(key, placeholder) {
|
function buildInput(key, placeholder) {
|
||||||
|
|
Loading…
Reference in New Issue