Embedding p5.js web editor in external site

If the page you’re embedding using the iframe is on the same domain as the page hosting the iframe, or has permissions granted to the hosting domain using CORS policy, then you can inject CSS, see: html - How to apply CSS to iframe? - Stack Overflow

However if you are trying to embed editor.p5js.org on your own site then that is not going to work.

1 Like