How to add ActionText function

Added Action Text function to editor

Let's make the editor easier to use by using ActionText

First, install imagemagick. It is a necessary tool to input the size and characters of the image.

At the terminal

$brew install imagemagick

After installation, in the gemfile,

gem 'image_processing', '~> 1.2

Described. Then execute ↓

$bundle install

Install ActionText

$bundle exec rails action_text:install

Execute. ActionText cannot be used without executing JavaScript, so install the library.

$ bundle exec rails webpacker:install

Finally, since the ActionText table is created

$ rails db:migrate

Run

Use ActionText for an article class with an editor you want to enhance

has_rich_text :Column name

Described. After that, if you arrange HTML / CSS, it will be completed.

スクリーンショット 2020-11-02 23.25.59.png It turned out to be something like this.

Recommended Posts

How to add ActionText function
How to add the delete function
How to add HDD to Ubuntu
How to add Hyperledger Iroha Peer
How to add columns to a table
[Rails] How to add new pages
[Xcode] How to add a README.md file
How to add local jar to maven pom.xml
[Java] How to use the hasNext function
[Java] How to add data to List (add, addAll)
How to add a new hash / array
How to add jar file in ScalaIDE
How to deploy
[Swift] How to implement the countdown function
How to implement TextInputLayout with validation function
[Processing × Java] How to use the function
How to add application version information to Sentry information
How to add / remove Ruby on Rails columns
[Swift] How to implement the LINE login function
Add a tag function to Rails. Use acts-as-taggable-on
[swift5] How to implement the Twitter share function
How to add sound in the app (swift)
How to implement the breadcrumb function using gretel
[For beginners] How to implement the delete function
How to add a classpath in Spring Boot
How to conditionally add html.erb class in Rails
[Swift] How to implement the fade-in / out function
How to make a follow function in Rails
[Rails] How to easily introduce slick (slider function)
Add files to jar files
How to develop OpenSPIFe
How to call AmazonSQSAsync
How to write Rails
How to use rbenv
How to use letter_opener_web
How to use with_option
How to use fields_for
How to use java.util.logging
How to use map
How to use collection_select
How to adapt Bootstrap
How to use Twitter4J
How to use active_hash! !!
How to install Docker
How to use MapStruct
How to use hidden_field_tag
How to use TreeSet
How to write dockerfile
How to uninstall Rails
How to install docker-machine
[How to use label]
How to make shaded-jar
How to write docker-compose
How to use identity
How to use hashes
How to write Mockito
How to create docker-compose
14 Corresponds to function expressions
How to use JUnit 5
How to install MySQL
How to write migrationfile