webstudio-is / webstudio

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
https://webstudio.is
GNU Affero General Public License v3.0
5.34k stars 652 forks source link

When are you planning to add support for JS in WS? #2094

Open yogeshvachhani opened 1 year ago

yogeshvachhani commented 1 year ago

I am playing with WS and I find it easy to learn and use. I feel it is very flexible also.

For me what is lacking is support for client/browser side scripting.

I am interested in knowing when are you planning to integrate support for JavaScript on client side?

I also have a suggestion that if possible integrate Blocky it will be faster to add support for client side scripting!!

Here is its URL: https://developers.google.com/blockly/

TrySound commented 1 year ago

Hi. You can use HTML Embed component to add scripts. Though be careful such scripts may affect performance of your site.

kof commented 1 year ago

Blocky is interesting! I guess you didn't notice but HTML Embed already allows you to have a script tag where you can write js. This is our basic workaround for this need.

The real solution will come once we add ability for you to write a React Component that is native to the system. Will have access to server rendering as well as client and all the lifecycle hooks.