Returns whether the current view is a block embed embedded in another view.
This is done by checking if the immediate parent has the class editor-is-embedded-block which the editor component adds when it receives the isEmbeddedBlockInjectionKey injection key.
We cannot do this via state since a document can be both embedded and not embedded at the same time.
Returns whether the current view is a block embed embedded in another view.
This is done by checking if the immediate parent has the class
editor-is-embedded-blockwhich the editor component adds when it receives the isEmbeddedBlockInjectionKey injection key.We cannot do this via state since a document can be both embedded and not embedded at the same time.