No commit activity in last 3 years
No release in over 3 years
An extension for medium editor which auto creates list. http://varunraj.in/medium-editor-autolist/example/
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 3.0
~> 0.14
 Project Readme

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