Sha256: 725858345726cdc690c404e197c3a5d0edfca69af010462a74f008978ff0f5e8

Contents?: true

Size: 974 Bytes

Versions: 35

Compression:

Stored size: 974 Bytes

Contents

# -*- encoding : utf-8 -*-

class AddProsemirrorCards < Card::Migration
  PM_CONFIG = <<-JSON.strip_heredoc
                {
                  "menuBar": true,
                  "tooltipMenu": false
                }
              JSON
  def up
    ensure_card name: "*ProseMirror", type_id: Card::PlainTextID,
                codename: "prose_mirror",
                content: PM_CONFIG
    create_or_update(
      name: "*ProseMirror+*self+*help",
      content: "Configure [[http://prosemirror.net|ProseMirror]], "\
               "Wagn's default "\
               "[[http://en.wikipedia.org/wiki/Wysiwyg|wysiwyg]] editor. "\
               "[[http://wagn.org/ProseMirror|more]]"
    )
    ensure_card name: "script: prosemirror", type_id: Card::JavaScriptID,
                codename: "script_prosemirror"
    ensure_card name: "script: prosemirror config",
                type_id: Card::CoffeeScriptID,
                codename: "script_prosemirror_config"
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
card-1.95.1 mod/prosemirror_editor/db/migrate_core_cards/20160804112547_add_prosemirror_cards.rb
card-1.95.0 mod/prosemirror_editor/db/migrate_core_cards/20160804112547_add_prosemirror_cards.rb
card-1.94.1 mod/prosemirror_editor/db/migrate_core_cards/20160804112547_add_prosemirror_cards.rb
card-1.94.0 mod/prosemirror_editor/db/migrate_core_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.13 mod/prosemirror_editor/db/migrate_core_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.12 mod/prosemirror_editor/db/migrate_core_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.11 mod/prosemirror_editor/db/migrate_core_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.10 mod/prosemirror_editor/db/migrate_core_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.9 mod/prosemirror_editor/db/migrate_core_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.8 mod/prosemirror_editor/db/migrate_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.7 mod/prosemirror_editor/db/migrate_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.6 mod/prosemirror_editor/db/migrate_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.5 mod/prosemirror_editor/db/migrate_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.4 mod/prosemirror_editor/db/migrate_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.3 mod/prosemirror_editor/db/migrate_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.2 mod/prosemirror_editor/db/migrate_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.1 mod/prosemirror_editor/db/migrate_cards/20160804112547_add_prosemirror_cards.rb
card-1.93.0 mod/prosemirror_editor/db/migrate_cards/20160804112547_add_prosemirror_cards.rb
card-1.92.2 mod/prosemirror_editor/db/migrate_cards/20160804112547_add_prosemirror_cards.rb
card-1.92.1 mod/prosemirror_editor/db/migrate_cards/20160804112547_add_prosemirror_cards.rb