@witchcraft/editor
    Preparing search index...
    • 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.

      Parameters

      • view: EditorView

      Returns boolean