inplace_editing 0.4.5 → 0.4.6
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bde74202d05805261eb310a90d1d13b7ab1c21e
|
4
|
+
data.tar.gz: b2e812e0a7b59470c68615d58c9b38e0ff5cecd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6280ec036ae76779443ec8e21fb056831ec094084c35275fa0a8b72d959b6d26b578c1f74e649fb8fff55b577f4bed8cf3e9bcbe968bae923d8a4b457002d121
|
7
|
+
data.tar.gz: 5c6141cc11a6c30de283da28112248e5fa686fc47a9767c58c3ee77be738edcac4986cc02e5a49b041c2ddf0de35a405586a3ffbd32dec3dd422c7532f6dad2a
|
@@ -15,8 +15,10 @@ module InplaceEditingHelper
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
-
def text_editor(localized_object, property, place_holder = nil)
|
19
|
-
|
18
|
+
def text_editor(localized_object, property, place_holder = nil, options = nil)
|
19
|
+
locals = editor_locals(localized_object, property, place_holder)
|
20
|
+
locals[:options] = options
|
21
|
+
render partial: 'inplace_editing/text', :locals => locals
|
20
22
|
end
|
21
23
|
|
22
24
|
def string_editor(localized_object, property, place_holder = nil)
|
@@ -1 +1 @@
|
|
1
|
-
= best_in_place localized_object, property, as: :textarea, class: 'best_in_place_textarea inplace_editor inplace_editor_text', :place_holder => local_assigns[:place_holder] ? local_assigns[:place_holder] : "[texto aqui]", sanitize: false, :ok_button => 'Salvar', :cancel_button => 'Cancelar', :display_with => lambda { |v| markdown(v, '[texto aqui]') }
|
1
|
+
= best_in_place localized_object, property, as: :textarea, class: 'best_in_place_textarea inplace_editor inplace_editor_text', :place_holder => local_assigns[:place_holder] ? local_assigns[:place_holder] : "[texto aqui]", sanitize: false, :ok_button => 'Salvar', :cancel_button => 'Cancelar', :display_with => lambda { |v| markdown(v, '[texto aqui]', local_assigns[:options]) }
|