editor-js / table

Table constructor for Editor.js
MIT License
124 stars 137 forks source link

feat: Enable useStrictCSP for cssInjectedByJsPlugin #143

Closed jsip closed 9 months ago

jsip commented 10 months ago

Enables useStrictCSP when injecting styles. See https://github.com/marco-prontera/vite-plugin-css-injected-by-js#usestrictcsp-boolean

Does not throw any errors if meta property is not present

useStrictCSP ? `elementStyle.nonce = document.head.querySelector('meta[property=csp-nonce]')?.content;` : ''

Updated README to reflect the out of the box support

neSpecc commented 10 months ago

Thanks for mention this link. Please, add a line about this option in Readme

jsip commented 10 months ago

@neSpecc Let me know if the readme addition makes sense. I'll also be opening up PRs in header, marker, paragraph and list along with their respective readme updated shortly

neSpecc commented 9 months ago

Thanks @jsip! PRs to other tools are welcomed

jsip commented 9 months ago

@neSpecc Thank you for the quick merge! I've also opened PRs in editor-js/marker, editor-js/paragraph, editor-js/header and editor-js/list

The main repo for editor.js could also use this config