All threads / Anyone with experience using Quilljs?

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

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.

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.

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

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

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.