card-mod-prosemirror_editor 0.2 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate_core_cards/20160804112548_add_prosemirror_cards.rb +30 -0
- data/lib/javascript/script_prosemirror.js +13243 -0
- data/lib/javascript/script_prosemirror_config.js.coffee +31 -0
- data/lib/stylesheets/style_prosemirror.scss +298 -0
- data/set/all/prosemirror_editor.rb +0 -6
- data/set/self/script_prosemirror.rb +4 -0
- data/set/self/script_prosemirror_config.rb +5 -0
- data/set/self/style_prosemirror.rb +3 -0
- metadata +20 -15
- data/LICENSE +0 -674
- data/README.md +0 -21
- data/set/self/prose_mirror.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 857710dac9b30b1b561e6b6ef0670601c22e7064335be12a27e99558e4d37858
|
4
|
+
data.tar.gz: 31713ad010111f52bfb28b06be435b8cb3c2bec62c99a7de418a4f2b247086d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28e083040076ce619f46ac4d497125e1a11c1c4f724d284ec4267d86e93b1dbe29a3341f83c79ac498a159c41bd4e44135047a478df4d70d4209007739405ffc
|
7
|
+
data.tar.gz: 06c8d668a7e98d65faaf3fcd54e3642c953d3dd18182930b219ba1bd73005cac80dc1535b5e4dab67aaaa6d11c86cc07b3b3980e3ebbc4829a765b6b6846b1fa
|
@@ -0,0 +1,30 @@
|
|
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
|