-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 input field type for ActionText shipping with Rails 6.x #1638
Comments
I'm not sure if we should include this feature at Simple Form now. @rafaelfranca any thoughts? |
Hi, lads! Any news about this issue? Rails is rc1 |
Is |
So Rails 6 is out in the wild, but no news here. |
In the meantime, this is pretty trivial to implement yourself:
|
Trivial for you, Jared... |
@ThomasConnolly where to put the code is more a Rails topic than SimpleForm, but I have my custom inputs in You could also put custom inputs under See the Rails Guide on autoloading for more information. [Edit: to clarify, I'm not a contributor to this gem and can't speak to this being included - it would make sense to me to include it, I just posted my solution here in case it could help] |
@jaredmoody your input implementation loses the default
|
#1646 was just merged. Might consider remedied? |
I'd love to see this, now July 2020 |
@evanjroberts This was merged in Feb - so it's in there! |
@evanjroberts what @jaredmoody said :), make sure you update to 5.0.2 to get it, and let us know if you bump into issues. |
thanks @carlosantoniodasilva this might be the wrong place as you all seem so professional but should I run it as thanks! (I'm running 5.0.2 now thanks for the info) For simple programmers like me it may be useful to add a simple 'howto' to the Readme file on the gem page |
Regarding docs, you are right. We should document this somewhere. I think it would be nice if we add a section about |
Maybe we can just add the mapping to the table here: https://github.com/heartcombo/simple_form#available-input-types-and-defaults-for-each-column-type, since there's plenty of examples about how to use the different mappings? |
Hello everyone! I am trying to implement the new rich_text_area, but can't seem to make it work at all. I tried both I am running Rails 6 and have installed the simple_form gem as is in the gemfile ( Could someone help me out? |
Hi @IlianaP 👋 Make sure you have installed all dependencies required for rich text area: https://edgeguides.rubyonrails.org/action_text_overview.html#trix-compared-to-other-rich-text-editors There is also this tutorial that might help you: https://gorails.com/episodes/how-to-use-action-text |
Environment
ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]
6.x
simple_form (4.1.0)
Current behavior
Rails 6
is close to shippinghas released. ActionText is one of the most exciting features of Rails 6, and it is implemented to Rails forms as follows:However,
simple_form
doesn't seem ready to acceptrich_text_area
as an argument toas:
.Expected behavior
simple_form
should supportrich_text_area
as an input type and render the ActionText form.The text was updated successfully, but these errors were encountered: