effective_bootstrap 1.19.0 → 1.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_iframe_helper.rb +16 -0
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9afa1d831fb565c99c1b891fb5acc4251e24eb54ee807c34ebd168d68eebe3b8
|
4
|
+
data.tar.gz: 42465eed1461c1786fb5971e9472f4633c51c4e386b26de4f8cb77efd9ca5ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd94d428c56c7833df84aae205225e569db9862151ec662af732e243d9de150bd4ed36e5cba688080ac7509d5b58366f6e5637efea7b546da47aae7a9b8f1055
|
7
|
+
data.tar.gz: 2152082c0558c7035b65955c13ea1d8e4fe4845c40a036c9b908f9c46922a6cc1d98e5cc19d6fa6865bcedf4993d88c7a1f83e4940acb685da12a75a743a31f2
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EffectiveIframeHelper
|
4
|
+
|
5
|
+
def iframe_srcdoc_tag(srcdoc)
|
6
|
+
content_tag(
|
7
|
+
:iframe,
|
8
|
+
'',
|
9
|
+
srcdoc: srcdoc,
|
10
|
+
style: 'frameborder: 0; border: 0; width: 100%; height: 100%;',
|
11
|
+
onload: "this.style.height=(this.contentDocument.body.scrollHeight + 30) + 'px';",
|
12
|
+
scrolling: 'no'
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.19.
|
4
|
+
version: 1.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -661,6 +661,7 @@ files:
|
|
661
661
|
- app/helpers/effective_editor_helper.rb
|
662
662
|
- app/helpers/effective_form_builder_helper.rb
|
663
663
|
- app/helpers/effective_icons_helper.rb
|
664
|
+
- app/helpers/effective_iframe_helper.rb
|
664
665
|
- app/helpers/effective_table_builder_helper.rb
|
665
666
|
- app/models/effective/form_builder.rb
|
666
667
|
- app/models/effective/form_input.rb
|