Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rails_admin_tinymce

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rails_admin_tinymce

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

TinyMCE plugin for rails_admin

Gem Version

RailsAdmin extension for enabling the TinyMCE editor.

  • Does not yet support ActiveStorage for image/files.
  • Tested with tinymce-rails 6.7.2.
  • Turbo Drive is supported (even though tinymce-rails doesn't support it yet).

Installation

To enable rails_admin_tinymce, add the following to your Gemfile:

gem 'rails_admin'
gem 'rails_admin_tinymce'

Then create config/tinymce.yml according to step 2 of tinymce-rails' instructions.

Finally make sure the TinyMCE Javascript is loaded. That may differ depending on how you're using Javascript in Ruby on Rails.

Importmap

Add to importmap.rails_admin.rb:

pin 'tinymce'
pin 'tinymce.rails_admin'

Add to rails_admin.js:

import 'tinymce';
import 'tinymce.rails_admin';

Bundler

TODO

Configuration

RailsAdmin.config do |config|
  config.model Team do
    edit do
      field :description, :tinymce
    end
  end
end

Or, you can provide more options to customize:

RailsAdmin.config do |config|
  config.model Team do
    edit do
      field :description, :tinymce do
        # choose another configuration set from tinymce.yml
        config 'alternate'
        # or override specific options, see https://www.tiny.cloud/docs/tinymce/6/basic-setup/
        options ({ plugins: [:image, :link] })
      end
    end
  end
end

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 03 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc