I am trying to build generic logic to be able to read all the properties from current level of the document starting from root node or nested content/block list item.
It is quite easy to achieve at the main document level, as I can use editorState.current to read all the properties. But the case is more complicated when I am trying to achieve the same goal starting from a block in the block list.
To clarify the case, let's consider following structure:
[Backoffice/Angular] Accessing "sibling" properties
Hello Everybody!
I am trying to build generic logic to be able to read all the properties from current level of the document starting from root node or nested content/block list item.
It is quite easy to achieve at the main document level, as I can use
editorState.current
to read all the properties. But the case is more complicated when I am trying to achieve the same goal starting from a block in the block list.To clarify the case, let's consider following structure:
I would to be able to see in my CustomPropertyReader following values:
Has anybody done something similar before or know how to do it?
In case anyone is looking for an answer in the future: this is possible by traversing up the scopes chain.
is working on a reply...