caboose-cms 0.4.22 → 0.4.23
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,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZGEwMWNmOGQ5MmU3ZjE2MWY0ZjgxODBkZDg3Mjk2MzhjMGIzYWQ4Mg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MTJiYmM1NjQ2ZWJmMGYzODdlZTYxYTM3ODE5YTI4NWM5ZmM5MWM3OA==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZGEyYWQ0NDBkOTFjZGU0NGI0N2NjYjM0ZDdlYWQ1OTNmNGM0MGJhZmZkNGM2
|
|
10
|
+
MGMyMjYxZTZlZTY3ZGI2MTNiYjZkOWNlNWQ5YmQ1NGUzYjAyZjVhMzkzMDRi
|
|
11
|
+
Y2M0YjJiMTc1MGVmNmFhN2QxMGJkZjFhMDRiMmMyNzQyNGE1NGY=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
OWE2N2EzMzA3ODdlODU2MWJjYzllMmE3NGY2ZWM2ZjlkNjRmZmE2MWZhMDNm
|
|
14
|
+
MmRiMzQ5MmNjNjg4ZmE5ZmM5MWM0NTc5YjZiNTY3YjMwMGYxNDgwOTFjMjU2
|
|
15
|
+
NDFhYmU3MTFiZGQzODU5MWFhMDFhZTcwOTYyNDk1YzIyODc5YWU=
|
|
@@ -133,7 +133,13 @@ module Caboose
|
|
|
133
133
|
@page = Page.find(params[:page_id])
|
|
134
134
|
@block = Block.find(params[:id])
|
|
135
135
|
@block.create_children
|
|
136
|
-
@modal = true
|
|
136
|
+
@modal = true
|
|
137
|
+
|
|
138
|
+
@cdn_domain = Rails.application.config.action_controller.asset_host
|
|
139
|
+
if @cdn_domain.starts_with?('//')
|
|
140
|
+
protocol = request.protocol.gsub('//', '')
|
|
141
|
+
@cdn_domain = "#{protocol}#{Rails.application.config.action_controller.asset_host}"
|
|
142
|
+
end
|
|
137
143
|
|
|
138
144
|
#render "caboose/blocks/admin_edit_#{@block.block_type}", :layout => 'caboose/modal'
|
|
139
145
|
render :layout => 'caboose/modal'
|
|
@@ -101,7 +101,7 @@ $(document).ready(function() {
|
|
|
101
101
|
<% if @block.block_type.field_type == 'richtext' %>
|
|
102
102
|
<%= tinymce_assets %>
|
|
103
103
|
<script type='textjavascript'>
|
|
104
|
-
document.domain = "<%=
|
|
104
|
+
document.domain = "<%= raw @cdn_domain %>";
|
|
105
105
|
</script>
|
|
106
106
|
<%= tinymce :caboose, width: '800px', height:'300px' %>
|
|
107
107
|
<% end %>
|
data/lib/caboose/version.rb
CHANGED