componentDidMount()

in app/ItemView/CodeMirrorContainer.tsx [136:155]


  componentDidMount() {
    console.log("textAreaRef is ", this.textAreaRef?.current);
    if (this.textAreaRef.current) {
      this.cm = CodeMirror(this.textAreaRef.current, {
        lineNumbers: true,
        mode: "xml",
        readOnly: true,
        nocursor: true,
      });
      this.cm.setValue(this.props.value);
    }

    if (this.dragHandleRef.current) {
      console.log("installing startDraggingHandler");
      this.dragHandleRef.current.addEventListener(
        "mousedown",
        this.startDraggingHandler
      );
    }
  }