nexcoding/image-manager-ci4
最新稳定版本:0.0.1
Composer 安装命令:
composer require nexcoding/image-manager-ci4
包简介
README 文档
README
The CodeIgniter Image Manager Package provides a convenient way to manage and handle image uploads and selections in your CodeIgniter 4 projects.
Features
- Upload images with ease.
- List uploaded images.
- Select images from the list.
Installation
You can install this package via Composer:
composer require nexcoding/image-manager-ci4Create new report <script> document.addEventListener("DOMContentLoaded", function () { const openModalButtons = document.querySelectorAll('[data-media-ci4-library]'); const myModal = new bootstrap.Modal(document.getElementById('modalId')); openModalButtons.forEach(button => { button.addEventListener('click', function () { const targetInputId = button.getAttribute('data-media-ci4-target-input-id'); myModal.show(); myModal._element.setAttribute('data-target-input-id', targetInputId); }); }); window.addEventListener('message', function(event) { if (event.data.type === 'imageSelected') { const selectedImage = event.data.image; const targetInputId = myModal._element.getAttribute('data-target-input-id'); document.getElementById(targetInputId).value = selectedImage; myModal.hide(); } }); }); </script>
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-08-10