The default height for the input area on the "body" of a Post in Rails Admin is pretty small. I'm trying to figure out how to increase the height. Any suggestions?
config.model Post do
label 'Blog'
weight 0
edit do
field :user
field :title
field :body_format
field :body do
(something here?)
end
configure :description do
html_attributes rows: 20, cols: 50
end
Another way of increasing the length of the text field in Rails Admin is:
field :description, :text do
html_attributes do
{:maxlength => 600}
end
end
in case of text field, you will do like this
field :permalink do
{ max_length: 1000 }
end
and in case of text area
field :description do
html_attributes rows: 5, cols: 100
end
As I have done for my own website i.e. https://www.wiki11.com Hopefully, this will help you. Just remember, since text fields can contain 255 characters only, so it cant go upto text area's width. In order to reach up to text area width, you will need to change its character's length or make it text area.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With