New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom editor components cannot contain multiple pattern matches when using non-inline html tags #3490
Comments
I realized that my actual issue was more that I was unsure on how to match more than one field in the block, mostly because I wasn't sure what the entire block looked like. Since the matches only showed a portion of the block, I was flying blind and could only match the first field of a component. I still don't know how to see the entire block but when digging around the existing issues in the repo I did come across a way to match each field in a component block and I modified that to my needs. However this approach does trigger a
|
Custom editor components are an awesome feature however the documentation for
CMS.registerEditorComponent
is very brief so I need to ask the question here. Please correct me if I am wrong but actually implementing anything more complex than the example...Such as needing to make multiple matches in some nested non-inline html tags
makes you run up against #1806 which is a basically a showstopper.
In my case I have a React component that conditionally renders html in a general pattern like this
I can match the first section but not more than that. Is there anyway for me to look the entire string I am trying to run my multi matching regex against? I feel like I am flying blind here so I will shelf my efforts on this front until I can figure out how to at least look at the 'block/chunk/body' or whatever it is that the regexp pattern is trying to match. Is there a way to output that?
Perhaps what I am trying to do is just not possible, if so perhaps the documentation could be updated to reflect the limitations of working with
CMS.registerEditorComponent
or updated to include more information about the blocks and pattern matching?Thanks.
The text was updated successfully, but these errors were encountered: