What are the best options for Rich Text Editing in Rails?

前端 未结 7 1815
陌清茗
陌清茗 2020-12-28 16:33

I\'d like to use Rich Text Editing in place on forms in order to let admins change instructions. What are the best options for doing this?

[To be more clear - the

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-28 17:12

    There are a number of templating languages implemented for Rails that give relatively simple syntax for markup. I've used RedCloth before, a gem implementation of Textile (http://redcloth.org/), and it's quite good. Things like Liquid (http://www.liquidmarkup.org/) are a little more powerful, allowing templates to actually include database information inline. Depending on your project's needs, both would potentially be a good fit.

    Neither of these solutions alone would give an in-place rich text editor, but are a good starting place on the backend for what might be a drop-in solution. If you're only letting admins enter information though, I'd imagine they wouldn't be frightened of a little plaintext entry.

提交回复
热议问题