I have learned a lot from this video. Nice!
Similarities Between Spanish and Cebuano
Aside from watching Spanish-FIlipino videos, I’m currently exploring the power of ckeditor. https://ckeditor.com I am just amazed of what this WYSIWYG text editor can do. I even created an issue in their github repo to support pasting from PDF. Hehe
This is why I’m using CDN to integrate ckeditor in rails 6.
To do that, just simply add
in the application.html.erb file.
In your text area, just simply include 'ckeditor form-control'.
<%= f.text_area :description, class: 'ckeditor form-control' %>
The following distributions are available:
basic - the Basic preset
standard - the Standard preset
standard-all - the Standard preset together with all other plugins created by CKSource*
full - the Full preset
full-all - the Full preset together with all other plugins created by CKSource*
- Need to use raw to unescape html. Ex. <%= raw(@post.description) %>
- Rails is loading js inconsistently due to turbolinks. My temporary fix is I commented turbolinks in the application.js file. This is the only solution I know for now.
Now you can play around with your ckeditor integrated in rails 6. :)
You can check my example at: http://simple-rails-crud.herokuapp.com/posts/2