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

medium-editor-autolist-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medium-editor-autolist-rails

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Autolist Extension for Medium Editor

Varun Raj developed an extention that automatically converts ( 1. Space ) to ordered list and ( * Space ) to unordered list if the corresponding base extensions are enabled.

Insert Plugin for Rails

This gem integrates Medium Editor Autolist Extension with Rails asset pipeline.

Installation

Include medium_editor/insert_plugin in your Rails project's Gemfile:

gem 'medium-editor-rails'
gem 'medium-editor-autolist-rails'

And then execute:

bundle install
bundle exec rake insert_plugin:update

Configuration

Include javascript file in app/assets/javascripts/application.js:

//= require medium-editor
//= require medium-editor-autolist.min

Using Medium Editor with Rails

You need to initialize Autolist, then assign the extention in extensions's option. for example:

<script>
  var autolist = new AutoList();
  var editor = new MediumEditor('.editable', {
    ...,
    extensions: {
      ...,
      'autolist': autolist
    },
  });
</script>

Restart your app.

Contributing

  1. Fork it ( https://github.com/imamulakhyar93/medium-editor-autolist-rails/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 02 Apr 2020

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