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

Rich text area not auto-expanding vertically #540

Open
markburns opened this issue Jul 25, 2019 · 2 comments
Open

Rich text area not auto-expanding vertically #540

markburns opened this issue Jul 25, 2019 · 2 comments
Labels

Comments

@markburns
Copy link

markburns commented Jul 25, 2019

A picture is worth a thousand words.


image

= form.rich_text_area :summary
= form.submit "Save", class: 'btn-primary'

I haven't dug into the CSS yet to understand what's happening, but I'm not sure this is working out of the box as you might expect it to.

@markburns
Copy link
Author

markburns commented Jul 25, 2019

seems to be some clash with the .form-control class.

Workaround: <- This isn't actually persisting

= form.label :summary
= form.hidden_field :summary
trix-editor id="foo" input="foo_summary_trix_input_foo" role="textbox"
  == form.object.summary

image

@lcreid
Copy link
Contributor

lcreid commented Aug 4, 2019

Thanks for the report. I will try to take a look at this in the near future, but I'm pretty busy at work these days. If you want to submit a pull request, I'd be happy to look at it. If you decide to work on a PR, assign the bug to yourself (look for the link in the upper-right area of this page.

@lcreid lcreid added the bug? label Aug 4, 2019
This was referenced Sep 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants