This commit is contained in:
pushuo 2022-07-15 14:40:04 +08:00
parent 14afb9cdd7
commit 06b9675a1f
2 changed files with 6 additions and 3 deletions

View File

@ -77,8 +77,11 @@
previewWindow = document.getElementById("preview-iframe").contentWindow;
app.design.ready = true;
app.design.sidebar = true;
$(previewWindow.document).find('.module-edit .edit').on('click', function(event) {
// console.log($(this).parents('.module-item').prop('id'))
window.parent.postMessage({index: 0}, '*')
});
});
</script>
@include('admin::pages.design.builder.component.image_selector')

View File

@ -9,13 +9,13 @@
{!! $html !!}
<script>
{{-- <script>
$(function() {
$(document).on('click', '.module-edit .edit', function(event) {
window.parent.postMessage({index: 0}, '*')
});
});
</script>
</script> --}}
{{-- <section class="module-wrap mb-5"><img src="{{ asset('image/default/banner.png') }}" class="img-fluid"></section> --}}
{{-- @foreach ($categories as $category)
<a href="{{ shop_route('categories.show', $category) }}">{{ $category->description->name }}</a>