Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

zooppa/administrate-field-simple_markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0a3bd54 · Mar 29, 2023

History

78 Commits
Jan 6, 2022
Jun 30, 2020
Jan 9, 2022
Jan 9, 2022
May 28, 2020
Sep 6, 2018
Jan 9, 2022
Jan 23, 2018
Jan 9, 2022
Jan 5, 2022
Jan 6, 2022
Jan 9, 2022
Mar 6, 2018
Mar 29, 2023
Jan 9, 2022
Jan 9, 2022
Nov 25, 2016
May 28, 2020
May 12, 2021

Repository files navigation

Administrate::Field::SimpleMarkdown

No Maintenance Intended Build status Code Climate


IMPORTANT NOTICE

This gem is not actively maintained anymore.

If you’re interested in taking over and steward the project moving forward, please get in touch.


A plugin to edit Markdown text in Administrate using EasyMDE.

Demo

Usage

Add it to your Gemfile:

gem 'administrate-field-simple_markdown', '~> 0.7.0'

Run:

$ bundle install

Add to your FooDashboard:

ATTRIBUTE_TYPES = {
  bar: Field::SimpleMarkdown.with_options({
    safe_links_only: true,
    filter_html: true,
    with_toc_data: true,
    hard_wrap: true,
    link_attributes: { rel: 'follow' },
    autolink: true,
    tables: true,
    no_intra_emphasis: true,
    strikethrough: true,
    highlight: true,
    space_after_headers: true,
    easymde_options: {
      placeholder: 'Type here...',
      spell_checker: false,
      hide_icons: %w[guide heading]
    }
  })
}.freeze

You can pass EasyMDE a configuration object via the easymde_options option. Check the full list of available options.

About

Administrate::Field::SimpleMarkdown is maintained by Zooppa.

See also the list of contributors who participated in this project.