You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the documentation it seems straight forward to add methods/data to nodes in onParsed and used it in alterData. That approach doesn't seem to work however. Is there a recommendation somewhere for how to do it?
The text was updated successfully, but these errors were encountered:
onParsed returns the root elements of the render tree (a temporary structure later translated to react elements). In the documented example, a "mycustomblock" element is added after the fourth root element. This element could also have a children property. There are no exposed functions to help end-user building this data structure yet. The transient data structure is being currently revised and formalized to account for a good amount of limitations, including whitespace collapsing, see RFC #421. We will provide a more elaborated documentation when these changes are implemented though.
Based on the documentation it seems straight forward to add methods/data to nodes in onParsed and used it in alterData. That approach doesn't seem to work however. Is there a recommendation somewhere for how to do it?
The text was updated successfully, but these errors were encountered: