Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo page - make code editor resizable #61

Closed
milahu opened this issue Aug 16, 2020 · 0 comments
Closed

demo page - make code editor resizable #61

milahu opened this issue Aug 16, 2020 · 0 comments

Comments

@milahu
Copy link
Contributor

milahu commented Aug 16, 2020

this should do it ....

<AceEditor
  onLoad={editorInstance => {
    editorInstance.container.style.resize = "both";
    // mouseup = css resize end
    document.addEventListener("mouseup", e => (
      editorInstance.resize()
    ));
  }}
/>

here is a demo fiddle

This was referenced Aug 16, 2020
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

No branches or pull requests

2 participants