Skip to content

Conversation

daveajrussell
Copy link
Contributor

@daveajrussell daveajrussell commented Dec 30, 2024

Prototyping a codemirror extension that adds a resize drag handle to the editor.

It works by;

  • Calculating a delta between a mousedown and mousemove event, so we can set the height of the editor

Copy link

changeset-bot bot commented Dec 30, 2024

⚠️ No Changeset found

Latest commit: 4f9986f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@nnecla
Copy link
Contributor

nnecla commented Jul 15, 2025

This seems like a nice addition. I was wondering if we can do this a bit more easily. I believe we can use pure css, and possibly add resize: vertical;(may be get it as a prop?) and overflow: auto; to the wrapper of .cm-editor? We can also change the look of the handle to something better using css again. This is how it looked when I added the styles via the dev tools:

resizable.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants