GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
22.38k stars 4.06k forks source link

Properties Validate of elements #1425

Closed YashPrince closed 6 years ago

YashPrince commented 6 years ago

@Arif How can we validate the properties for the grapejs element like background color We have given an option for manual background entry as well as color picker . If user did not add valid css then style break and preview page is not working properly. Any help would be appreciated.

error1 error2 error3

artf commented 6 years ago

There is no built-in functionality for such a thing but keep in mind that once you render the style manager, all the elements, even when not visible, are still reachable via DOM, so you can add your validation logic post render

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.