Hey,
Is there a way to resize the editor dynamically similarly to textarea?
Hey,
Is there a way to resize the editor dynamically similarly to textarea?
With a drag handle in the corner? I think just setting overflow: hidden; resize: both on .cm-editor should work (assuming the editor is already set up to scroll with some height on .cm-editor and overflow: auto on .cm-scroller).
That worked really well. My setup also has max-height, so I ended up with something like this:
.cm-editor {
resize: both;
height: auto;
max-height: 200px;
}
.cm-editor[style*="height"] {
max-height: unset;
}