Fixed editor height

I am trying to get PM with menu to have a fixed height

I tried:

.ProseMirror {
  width:700px;
  height: 250px;
}

which doesn’t work

It seems I have to do:

.ProseMirror-menubar-wrapper {
  width:700px;
  height: 250px;
}

which works but is weird can the menubar wrapper copy the width/height of the editor ?

The other problem I have is that clicking in the editor in a place which is not currently a line with content does nothing (no cursor). What I want to achieve is that clicking in the editor div but outside any line with content will show the cursor in some meaningful place (ie the last position in the document). How can I do that ?

thx!

1 Like

How does it not work? If I add an overflow: auto, it seems to work quite well.