marksmith 0.4.1 → 0.4.2
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 +4 -4
- data/app/assets/javascripts/list_continuation_controller-full.esm.js +1 -1
- data/app/assets/javascripts/list_continuation_controller-no-stimulus.esm.js +1 -1
- data/app/assets/javascripts/marksmith_controller-full.esm.js +1 -1
- data/app/assets/javascripts/marksmith_controller-no-stimulus.esm.js +1 -1
- data/app/models/marksmith/editor.rb +8 -0
- data/app/views/marksmith/shared/_action_bar.html.erb +1 -1
- data/app/views/marksmith/shared/_editor.html.erb +2 -2
- data/app/views/marksmith/shared/_editor_pane.html.erb +1 -1
- data/app/views/marksmith/shared/_preview_pane.html.erb +1 -1
- data/app/views/marksmith/shared/_toolbar.html.erb +1 -1
- data/lib/marksmith/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1758cda8f3d3f25677b3a47e0f611d1dbe31f379115d1e61d15f668cf98cf299
|
4
|
+
data.tar.gz: 484c5072c16076cb57af3196ea976d58020dadadad18eb9141b32374856debab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c923c6fa717c4efb8ae5cc92d72e7bebe073e650efd19aa3bb7d45997dec041657f725aeeeb57b76a0542572582aeef520daef5e46341fc5052000e523c302ae
|
7
|
+
data.tar.gz: cfcb4587e7900bf98511d415a71ec3dc224090788244db216556f596eae8b93cdcf5086924551c778b0a1bd4335ca59398ea2df8c588bbbc58e2712da18e83b7
|
@@ -15,9 +15,9 @@
|
|
15
15
|
marksmith_extra_preview_params_value: editor.extra_preview_params.as_json,
|
16
16
|
**editor.controller_data_attributes,
|
17
17
|
} do %>
|
18
|
-
<%= render partial: "marksmith/shared/toolbar", locals: {
|
18
|
+
<%= render partial: "marksmith/shared/toolbar", locals: { textarea_id: editor.textarea_id, disabled: editor.disabled} %>
|
19
19
|
<div class="ms:border-t ms:w-full ms:border-neutral-500 ms:flex ms:flex-1">
|
20
20
|
<%= render partial: "marksmith/shared/editor_pane", locals: { editor: } %>
|
21
|
-
<%= render partial: "marksmith/shared/preview_pane", locals: {
|
21
|
+
<%= render partial: "marksmith/shared/preview_pane", locals: { editor: } %>
|
22
22
|
</div>
|
23
23
|
<% end %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= content_tag :div, class: "ms:flex ms:flex-1 ms:flex-col ms:size-full", data: { marksmith_target: "fieldContainer" } do %>
|
2
2
|
<%= text_area_tag editor.field_name, editor.value,
|
3
|
-
id: editor.
|
3
|
+
id: editor.textarea_id,
|
4
4
|
class: class_names(
|
5
5
|
"ms:flex ms:flex-1 ms:border-none ms:resize-none ms:focus:outline-none ms:font-mono ms:focus:ring-0 ms:leading-normal ms:p-2 ms:text-sm ms:field-sizing-content ms:min-h-60",
|
6
6
|
"ms:dark:bg-neutral-800 ms:dark:text-neutral-200",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= content_tag :div,
|
2
2
|
class: "ms:hidden ms:markdown-preview ms:size-full ms:flex-1 ms:flex ms:size-full ms:p-2 ms:overflow-auto ms:bg-white ms:dark:bg-neutral-800 ms:rounded-b-md",
|
3
|
-
id:
|
3
|
+
id: editor.preview_pane_id,
|
4
4
|
data: {
|
5
5
|
marksmith_target: "previewPane",
|
6
6
|
} do %>
|
data/lib/marksmith/version.rb
CHANGED