ponkotsu-md-editor 0.1.7 → 0.1.8
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: 8540f941f4071279f7c34f8606851e0484091f06bb80906479fb77fd4cad1ae4
|
|
4
|
+
data.tar.gz: 8283eb3a04d8e796f8adbfdb1a612d003d27411d86df01ea9c54a554f709d2ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60d9b19589474cd9684c46e13a41da1fb9bae85117106869da0ae36c2e91b1b41efb014433df0072ef755390fbf8f99db2274823dc0fe4f8de3cf729a776a8b0
|
|
7
|
+
data.tar.gz: d6b2a52bef1c922d59893efea54b660f962cdd54f9e5b8f924ee421fb08f4dda1bca76e36125ff586897f7671a05a4de64b3f0c14a5c6274a195e266412bef32
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
%>
|
|
60
60
|
|
|
61
61
|
<div class="markdown-editor">
|
|
62
|
-
<%= render "toolbar", options: _options %>
|
|
63
|
-
<%= render "input_area", form: form, options: _options %>
|
|
62
|
+
<%= render "ponkotsu_md_editor/toolbar", options: _options %>
|
|
63
|
+
<%= render "ponkotsu_md_editor/input_area", form: form, options: _options %>
|
|
64
64
|
</div>
|
|
65
65
|
<div class="form-text medium-contrast-text">
|
|
66
66
|
<strong><%= case _options[:lang]
|
|
@@ -15,5 +15,13 @@ module PonkotsuMdEditor
|
|
|
15
15
|
include PonkotsuMdEditor::Helpers
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
|
+
|
|
19
|
+
# Configure asset paths for the engine
|
|
20
|
+
# This ensures that JavaScript and CSS files are properly loaded
|
|
21
|
+
initializer "ponkotsu_md_editor.assets" do |app|
|
|
22
|
+
if app.config.respond_to?(:assets)
|
|
23
|
+
app.config.assets.precompile += %w[markdown_editor.js markdown_editor.css]
|
|
24
|
+
end
|
|
25
|
+
end
|
|
18
26
|
end
|
|
19
27
|
end
|