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

activeadmin_ueditor

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

activeadmin_ueditor

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

ActiveAdmin Ueditor

An Active Admin plugin to use Ueditor Rich Text Editor

screenshot

Install

  1. Update your Gemfile: gem 'activeadmin_ueditor' (and execute bundle)
  2. Copy some ueditor assets to your public assets directory
cp -rf public/assets/ueditor your_project/public/assets/ueditor
  1. Add at the end of .gitignore:
!/public/assets/ueditor
  1. Add at the end of your ActiveAdmin javascripts (app/assets/javascripts/active_admin.js):
//= require activeadmin/ueditor/ueditor.config
//= require activeadmin/ueditor/ueditor.all.min
  1. Use the input with as: :ueditor, input_html: { name: 'your_model[your_column]' } in Active Admin model conf

Examples

# ActiveAdmin article form conf:
  form do |f|
    f.inputs 'Article' do
      f.input :title
      f.input :description, as: :ueditor, input_html: { name: 'article[description]' }
      f.input :published
    end
    f.actions
    script <<~JAVASCRIPT.html_safe
      var editor = new UE.ui.Editor({
        initialFrameHeight: 280
      });
      editor.render("ueditor");
    JAVASCRIPT
  end

Notes

  • Upload functions (Images, Documents, Files, etc.) are not implemented yet, you can impletment the endpoint get /assets/ueditor/upload_ueditor.

Do you like it? Star it!

If you use this component just star it. A developer is more motivated to improve a project when there is some interest.

Take a look at other interesting projects that I made if you are curious.

Contributors

License

MIT

FAQs

Package last updated on 07 Jan 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