FIX: do not placeholder the placeholder

This commit is contained in:
jjaffeux 2020-04-20 17:06:49 +02:00
parent c1e02d7c2f
commit 1fab87e976
1 changed files with 2 additions and 1 deletions

View File

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