protected getPos:()

in src/plugin/fieldViews/ProseMirrorFieldView.ts [56:78]


    protected getPos: () => number,
    // The offset of this node relative to its parent FieldView.
    public offset: number,
    // The initial decorations for the FieldView.
    decorations: DecorationSource,
    // Plugins that the editor should use
    plugins?: Plugin[],
    // The field placeholder option
    placeholder?: PlaceholderOption,
    // Is this text field resizeable?
    isResizeable = false
  ) {
    super();

    this.applyDecorationsFromOuterEditor(decorations, node);
    this.setupFocusHandler();
    this.parser = DOMParser.fromSchema(node.type.schema);

    this.innerEditorView = this.createInnerEditorView(plugins);
    if (isResizeable) {
      this.makeInputElementResizeable();
    }
  }