We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6fcb01 commit 624f4b1Copy full SHA for 624f4b1
packages/core/src/extensions/Placeholder/PlaceholderPlugin.ts
@@ -12,6 +12,10 @@ export const PlaceholderPlugin = (
12
key: PLUGIN_KEY,
13
view: () => {
14
const styleEl = document.createElement("style");
15
+ const nonce = editor._tiptapEditor.options.injectNonce;
16
+ if (nonce) {
17
+ styleEl.setAttribute("nonce", nonce);
18
+ }
19
document.head.appendChild(styleEl);
20
const styleSheet = styleEl.sheet!;
21
0 commit comments