This is a basic implementation of Sitecore Commerce using the OrderCloud Javascript SDK. You can use it as a starting point to discover, understand, and learn more about the Sitecore Commerce OrderCloud capabilities.
We'd like to use tiptap since that is what is being used by content hub and will allow maximum compatibility if/when we add content hub integration
This editor should integrate with react-hook-form so that we can get some nice validation, particularly for validating string length since OrderCloud has a maximum of 2,000 characters. This 2,000 character limit should be enforced and should handle characters not visible to users as well.
Check out the components in react-hook-form for examples on how to wire up components with react-hook-form, and of course the react-hook-form docs. We are using useController
We'd like to use tiptap since that is what is being used by content hub and will allow maximum compatibility if/when we add content hub integration
This editor should integrate with react-hook-form so that we can get some nice validation, particularly for validating string length since OrderCloud has a maximum of 2,000 characters. This 2,000 character limit should be enforced and should handle characters not visible to users as well.
Check out the components in react-hook-form for examples on how to wire up components with react-hook-form, and of course the react-hook-form docs. We are using useController