private createInnerEditorView()

in src/plugin/fieldViews/ProseMirrorFieldView.ts [329:347]


  private createInnerEditorView(plugins?: Plugin[]) {
    const view = new EditorView(this.fieldViewElement, {
      state: EditorState.create({
        doc: this.node,
        plugins,
      }),
      // The EditorView defers state management to this class rather than handling changes itself.
      // This lets us propagate changes to the outer EditorView when needed.
      dispatchTransaction: this.dispatchTransaction.bind(this),
      decorations: () => this.decorations,

      ...this.getInnerEditorPropsOverrides(this.outerView),
    });

    view.dom.id = this.getId();
    view.dom.setAttribute("aria-labelledby", `label-${this.getId()}`);

    return view;
  }