How To Apply Rich Content Editor (RCE) To Any Field?

By: Swapnali Pise Category: Ruby on Rails, LMS Technologies: Ruby on Rails, LMS

The Rich Text Editor is a tool that permits you to add or edit content, pictures, links, and different parts on the page without knowing any code. It shows the content and any design as it would show in the browser.

1) Add tinymce-rails to your Gemfile. gem ‘tinymce-rails’

2) then run bundle install

3) In your form .html.erb add CDN & script for tinymce.

4) In-text field add:class => “tinymce”

5). If we have to display it in the table then simply write. . html_safe

Conclusion :
It has the ability to convert HTML Textarea fields or other HTML components to editor instances…

Happy Coding !!

Originally published at https://www.cryptextechnologies.com.

--

--

--

Cryptex specializes in developing open source web applications and software solutions across all domains and verticals using Ruby on Rails (ROR) technology

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why OCI is best from AWS in terms of cost saving module

Revealing Horrifying Truth: I Know How to Quit Vim

Managing Chatbot Data Using Elasticsearch

Turtler’s Speed strategy

Wallets, Rarity and Web3 Games

Understanding Cost, Usage and Query Administration on Snowflake

Vaiden MS 50x150x12 steel building prices 601 936 5293

Host a fully persisted Apache NiFi service with docker

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cryptex Technologies

Cryptex Technologies

Cryptex specializes in developing open source web applications and software solutions across all domains and verticals using Ruby on Rails (ROR) technology

More from Medium

Post Test Server V2

How to Manually Remove Viruses and Malware from your Android Phones.

Active Record Associations

Rails 6 — Dropdown menu for sidebar On Bootstrap 5 | Rejka Permana