card-mod-prosemirror_editor 0.13.1 → 0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bf70c450682ef55fe6efeee4762bf7312d97bd841e5462c7246fae2c81ab159
4
- data.tar.gz: 964d9fa4268c68a1de2663aeb4e0dc73945ed73cd6e56cdd12c06666928e04a3
3
+ metadata.gz: ba867bd64805b97f3fcac083b132dc4ba1e3afe76277f00e835f6f9c6a6a1bfe
4
+ data.tar.gz: 9cd0bf17f0e8c4e2013343d18393f6869de44ef70e5adc57ce6dcf0cfd58641f
5
5
  SHA512:
6
- metadata.gz: 48e507021d8ecd388c79b309df6287f20e61670f95812b6021967432cc3804f6a3082559d0352d01f2165cecb47e10a93757e87212214fed5ad1258134918acf
7
- data.tar.gz: 5c8baebdb110f2f7096536c43a8a0ccca396063e0f9ea2fd74662a07b80d6d3c5cc3dd4a514f109004b0a175b5004e5540f3edc2783c75ab76b680ba69f721d1
6
+ metadata.gz: a2f21e154f0687c855aba7069662c118c6132a48fe0da60d483c512db727083c51ba94ad9fb035311cbe1ac0e21912c902be27c25df52e9ff26c359c2eee18d0
7
+ data.tar.gz: a12f6d1ac4a9fe122c95b55b30bf4f8ffd702e0f57b573bb3b7fab1867f4dd67af50cb801113d3b7b041e513381c05654e773e8b9acc82a34f6d61709ec43283
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ <!--
2
+ # @title README - mod: Prosemirror editor
3
+ -->
4
+
5
+ # Prosemirror editor
6
+
7
+ Prosemirror is an embeddable code editor written in JavaScript. It can be used
8
+ as an alternative to the default tinyMCE editor.
9
+
10
+ ## All cards
11
+
12
+ Adds `prosemirror editor` input type option.
13
+
14
+ ## The "ProseMirror" card
15
+
16
+ | pattern | anchor | codename |
17
+ |:----:|:----:|:----:|
18
+ | Self | *ProseMirror | prose_mirror |
19
+
20
+ JSON card for configuring ProseMirror editor. See
21
+ https://prosemirror.net/docs/ref/.
@@ -1,3 +1,6 @@
1
+ basket[:list_input_options] << "prosemirror editor"
2
+ basket[:script_config][:prose_mirror] = "setProseMirrorConfig"
3
+
1
4
  format :html do
2
5
  def prosemirror_editor_input
3
6
  wrap_with :div, id: unique_id, class: "prosemirror-editor" do
@@ -0,0 +1,8 @@
1
+ format :html do
2
+ def raw_help_text
3
+ "[[http://prosemirror.net|ProseMirror]] "\
4
+ "is a configurable "\
5
+ "[[http://en.wikipedia.org/wiki/Wysiwyg|wysiwyg]] editor. "\
6
+ "[[https://prosemirror.net/docs/ref/|more]]"
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  include_set Abstract::CodeFile
2
2
 
3
- Self::StyleMods.add_item :style_prosemirror
3
+ basket[:style_mods] << :style_prosemirror
metadata CHANGED
@@ -1,45 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-prosemirror_editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: '0.14'
5
5
  platform: ruby
6
6
  authors:
7
- - Ethan McCutchen
8
7
  - Philipp Kühl
9
- - Gerry Gleason
8
+ - Ethan McCutchen
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2021-08-06 00:00:00.000000000 Z
12
+ date: 2021-10-26 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: card
17
16
  requirement: !ruby/object:Gem::Requirement
18
17
  requirements:
19
- - - '='
18
+ - - ">="
20
19
  - !ruby/object:Gem::Version
21
- version: 1.103.1
20
+ version: '0'
22
21
  type: :runtime
23
22
  prerelease: false
24
23
  version_requirements: !ruby/object:Gem::Requirement
25
24
  requirements:
26
- - - '='
25
+ - - ">="
27
26
  - !ruby/object:Gem::Version
28
- version: 1.103.1
27
+ version: '0'
29
28
  - !ruby/object:Gem::Dependency
30
29
  name: card-mod-edit
31
30
  requirement: !ruby/object:Gem::Requirement
32
31
  requirements:
33
- - - '='
32
+ - - ">="
34
33
  - !ruby/object:Gem::Version
35
- version: 0.13.1
34
+ version: '0'
36
35
  type: :runtime
37
36
  prerelease: false
38
37
  version_requirements: !ruby/object:Gem::Requirement
39
38
  requirements:
40
- - - '='
39
+ - - ">="
41
40
  - !ruby/object:Gem::Version
42
- version: 0.13.1
41
+ version: '0'
43
42
  description: ''
44
43
  email:
45
44
  - info@decko.org
@@ -47,22 +46,16 @@ executables: []
47
46
  extensions: []
48
47
  extra_rdoc_files: []
49
48
  files:
50
- - db/migrate_core_cards/20160804112548_add_prosemirror_cards.rb
49
+ - README.md
51
50
  - file/mod_prosemirror_editor_script_local_machine_output/file.js
52
51
  - lib/stylesheets/style_prosemirror.scss
53
52
  - set/all/prosemirror_editor.rb
54
- - set/self/script_prosemirror.rb
55
- - set/self/script_prosemirror_config.rb
53
+ - set/self/prose_mirror.rb
56
54
  - set/self/style_prosemirror.rb
57
- homepage: https://decko.org
55
+ homepage: http://decko.org
58
56
  licenses:
59
57
  - GPL-3.0
60
58
  metadata:
61
- source_code_uri: https://github.com/decko-commons/decko
62
- homepage_uri: https://decko.org
63
- bug_tracker_uri: https://github.com/decko-commons/decko/issues
64
- wiki_uri: https://decko.org
65
- documentation_url: http://docs.decko.org/
66
59
  card-mod: prosemirror_editor
67
60
  post_install_message:
68
61
  rdoc_options: []
@@ -79,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
72
  - !ruby/object:Gem::Version
80
73
  version: '0'
81
74
  requirements: []
82
- rubygems_version: 3.1.6
75
+ rubygems_version: 3.2.28
83
76
  signing_key:
84
77
  specification_version: 4
85
78
  summary: Prose Mirror editor
@@ -1,30 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
- class AddProsemirrorCards < Cardio::Migration
4
- PM_CONFIG = <<-JSON.strip_heredoc
5
- {
6
- "menuBar": true,
7
- "tooltipMenu": false
8
- }
9
- JSON
10
- def up
11
- ensure_card name: "*ProseMirror", type_id: Card::PlainTextID,
12
- codename: "prose_mirror",
13
- content: PM_CONFIG
14
- create_or_update name: "*ProseMirrorz+*self+*help", content: pm_help
15
- ensure_card name: "script: prosemirror", type_id: Card::JavaScriptID,
16
- codename: "script_prosemirror"
17
- ensure_card name: "style: prosemirror", type_id: Card::ScssID,
18
- codename: "style_prosemirror"
19
- ensure_card name: "script: prosemirror config",
20
- type_id: Card::CoffeeScriptID,
21
- codename: "script_prosemirror_config"
22
- end
23
-
24
- def pm_help
25
- "Configure [[http://prosemirror.net|ProseMirror]], "\
26
- "Decko's default "\
27
- "[[http://en.wikipedia.org/wiki/Wysiwyg|wysiwyg]] editor. "\
28
- "[[https://decko.org/ProseMirror|more]]"
29
- end
30
- end
@@ -1,3 +0,0 @@
1
- include_set Abstract::CodeFile
2
-
3
- Self::InputOptions.add_to_basket :options, "prosemirror editor"
@@ -1,4 +0,0 @@
1
- include_set Abstract::CodeFile
2
-
3
- All::Head::HtmlFormat.add_to_basket :mod_js_config,
4
- [:prose_mirror, "setProseMirrorConfig"]