Ask A Question

Notifications

You’re not receiving notifications from this thread.

Anyone with experience using Quilljs?

Stéphane Paquet asked in Javascript

Hi,

I'm lloking forward using http://quilljs.com in a project and wonder if anyone can share his/her experience with such text editor.

Related gems are looking pretty outdated (I'm using Rails 5) and connecting Quilljs to a form (I'm using Simple Form) looks akward.

Thanks

Reply

I have used Quill, it wasn't too bad to implement if i am honest. I didnt use any Gem, i simply included the require JS script and the div. It really was that simple.

Reply

I'm using Quill for few month now. It seem like a pretty decent UI component. More lightweight and flexible than CKEditor that I was using before.

You don't need a gem to integrate it with Rails. It is possible to use Rails Assets: https://rails-assets.org/#/components/quill Or just use Yarn after upgrading to Rails 5.1. It is more straightforward way to install Quill.

Reply

Thank you @alan and @alex.

Reply

Hi how did you set up quill to save to rails/post on form submit?

Reply

Azeem: Just pick text editor contents using Quill API, and add it to the form payload, using onSubmit event handler. Check out this artice for example:

https://harlemsquirrel.github.io/jekyll/update/2016/12/11/rails-and-quill.html

Reply

Just in case anybody's from 2020.
Take a look here https://www.kohrvid.com/blog/posts/using-quilljs-with-rails-6

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 83,038+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.