ponkotsu-md-editor 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e687c339f001243a35d8296c42f71cb0f83b30f2117fe7f1b7aa1fcae8eadd8
|
|
4
|
+
data.tar.gz: ec7c3f630d54f265e9617af45a0edd9524325cf5b066525e3db6ebb5901f1c5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c5448a6c7040fef25e792e03ed31b6163cfde6e00397ed17b618f03cc52cc7f90a45306507d14d1a7ccd30d04b2c4d1efc33e67476608bb2d061aeca4f16288
|
|
7
|
+
data.tar.gz: e32d9fd86f5df6aeca02b2f2b510e026d8db50dac32ba99c5f66902e6263cdbdfba4a366df998f2caebe49fbb5b3c714dbf10162d1a8cd0ee9c4d6029e606c5a
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
%>
|
|
60
60
|
|
|
61
61
|
<div class="markdown-editor">
|
|
62
|
-
<%= render "ponkotsu_md_editor/toolbar", options: _options %>
|
|
63
|
-
<%= render "ponkotsu_md_editor/input_area", form: _form, content: _content, options: _options %>
|
|
62
|
+
<%= render "ponkotsu_md_editor/toolbar", locals: { options: _options } %>
|
|
63
|
+
<%= render "ponkotsu_md_editor/input_area", locals: { form: _form, content: _content, options: _options } %>
|
|
64
64
|
</div>
|
|
65
65
|
<div class="form-text medium-contrast-text">
|
|
66
66
|
<strong><%= case _options[:lang]
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
<%
|
|
2
|
-
enable_bold = options[:tools].include?('bold')
|
|
3
|
-
enable_italic = options[:tools].include?('italic')
|
|
4
|
-
enable_strikethrough = options[:tools].include?('strikethrough')
|
|
5
|
-
enable_heading1 = options[:tools].include?('heading1')
|
|
6
|
-
enable_heading2 = options[:tools].include?('heading2')
|
|
7
|
-
enable_heading3 = options[:tools].include?('heading3')
|
|
8
|
-
enable_heading4 = options[:tools].include?('heading4')
|
|
9
|
-
enable_heading5 = options[:tools].include?('heading5')
|
|
10
|
-
enable_heading6 = options[:tools].include?('heading6')
|
|
11
|
-
enable_unordered_list = options[:tools].include?('unordered_list')
|
|
12
|
-
enable_ordered_list = options[:tools].include?('ordered_list')
|
|
13
|
-
enable_check_list = options[:tools].include?('check_list')
|
|
14
|
-
enable_blockquote = options[:tools].include?('blockquote')
|
|
15
|
-
enable_link = options[:tools].include?('link')
|
|
16
|
-
enable_image = options[:tools].include?('image')
|
|
17
|
-
enable_code = options[:tools].include?('code')
|
|
18
|
-
enable_code_block = options[:tools].include?('code_block')
|
|
19
|
-
enable_table = options[:tools].include?('table')
|
|
20
|
-
enable_horizontal_rule = options[:tools].include?('horizontal_rule')
|
|
21
|
-
enable_preview = options[:preview]
|
|
2
|
+
enable_bold = locals[:options][:tools].include?('bold')
|
|
3
|
+
enable_italic = locals[:options][:tools].include?('italic')
|
|
4
|
+
enable_strikethrough = locals[:options][:tools].include?('strikethrough')
|
|
5
|
+
enable_heading1 = locals[:options][:tools].include?('heading1')
|
|
6
|
+
enable_heading2 = locals[:options][:tools].include?('heading2')
|
|
7
|
+
enable_heading3 = locals[:options][:tools].include?('heading3')
|
|
8
|
+
enable_heading4 = locals[:options][:tools].include?('heading4')
|
|
9
|
+
enable_heading5 = locals[:options][:tools].include?('heading5')
|
|
10
|
+
enable_heading6 = locals[:options][:tools].include?('heading6')
|
|
11
|
+
enable_unordered_list = locals[:options][:tools].include?('unordered_list')
|
|
12
|
+
enable_ordered_list = locals[:options][:tools].include?('ordered_list')
|
|
13
|
+
enable_check_list = locals[:options][:tools].include?('check_list')
|
|
14
|
+
enable_blockquote = locals[:options][:tools].include?('blockquote')
|
|
15
|
+
enable_link = locals[:options][:tools].include?('link')
|
|
16
|
+
enable_image = locals[:options][:tools].include?('image')
|
|
17
|
+
enable_code = locals[:options][:tools].include?('code')
|
|
18
|
+
enable_code_block = locals[:options][:tools].include?('code_block')
|
|
19
|
+
enable_table = locals[:options][:tools].include?('table')
|
|
20
|
+
enable_horizontal_rule = locals[:options][:tools].include?('horizontal_rule')
|
|
21
|
+
enable_preview = locals[:options][:preview]
|
|
22
22
|
%>
|
|
23
23
|
|
|
24
24
|
<div class="editor-toolbar mb-2">
|