Skip to content

Commit

Permalink
Merge pull request #1 from jvega190/master
Browse files Browse the repository at this point in the history
Handle page builder events to make sure the component is always editable
  • Loading branch information
sumerjabri authored Aug 11, 2021
2 parents a317758 + 5dbc767 commit d6dade3
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions delivery/templates/googlemaps.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,19 @@
<#break>
</#switch>

<#-- TODO: Handle page builder events to make sure the component is always editable -->
<@crafter.componentRootTag>
<#if modePreview>
<style>
.craftercms-ice-on .craftercms-googlemaps-plugin-container::before {
content: '';
position: absolute;
display: inline-block;
width: ${contentModel.width_s}px;
height: ${contentModel.height_s}px;
}
</style>
</#if>
<@crafter.componentRootTag class="craftercms-googlemaps-plugin-container">
<@crafter.iframe
allowfullscreen="true"
width="${contentModel.width_s}"
Expand Down

0 comments on commit d6dade3

Please sign in to comment.