experius/module-wysiwygdownloads
Composer 安装命令:
composer require experius/module-wysiwygdownloads
包简介
This module makes it possible to upload different filetypes inside the WYSIWYG-editor (Media Gallery). Extra filetypes are Word (doc, docm, docx, odt), Excel (csv, xml, xls, xlsx, ods), PDF (pdf), Compressed Folder (zip, tar)
README 文档
README
This module makes it possible to upload different filetypes inside the WYSIWYG-editor.
experius/module-wysiwygdownloads
Main Functionalities
The following filetypes are available by default and it is possible to add extra filetypes to the allowed filetypes in the configuration of the module (General > Content Management > WYSIWYG Options > Extra Allowed Filetypes):
- Word (doc, docm, docx)
- Excel (csv, xml, xls, xlsx)
- PDF (pdf)
- Compressed Folder (zip, tar)
Use the following instructions to upload a file and set a download link:
Additional Information
- Go to a WYSIWYG-editor (for example in the content of a CMS Page or a product textarea attribute)
- Select a part of the text which is used as a Download Link (it is also possible to add the Download Link to an Image)
- Click on the 'Insert/Edit Link'-button (under the textformat dropdown, do not use the 'Insert/Edit Image'-button)
- Click on the 'Browse'-icon behind the Link URL-inputfield
- Select the Folder in which you want to upload the Downloadable File (recommended is to create a new Downloads folder to store all the Downloadable Files)
- Click the 'Browse files'-button
- Select the File from your Documents and click on the 'Open/Insert'-button
- Select the Uploaded File
- Click on the 'Insert File'-button
- (The 'File Upload'-windows will automatically close)
- It is recommended to set the Target to 'Open Link in a New Window)
- Press on the 'Insert'-button in the 'Insert/Edit Link'-popup
- The part of the text which was selected is now a Download Link for the selected file
To Unlink the Downloadable File just set the cursor on the Download Link and Click on the 'Unlink'-button.
Add NGINX redirect if you use it as internal URL else where and use store_code in url
if ( $request_uri ~ ^/(.+)/media/wysiwyg/PDF/(.*)(.pdf$|.PDF$) ) {
rewrite ^/(.+)/media/wysiwyg/PDF/(.*)(.pdf$|.PDF$) /media/wysiwyg/PDF/$2$3;
}
Important Issue in Magento < 2.2
Fix
This is an issue in Magento and is solved in 2.2.2 for more information see the following commit:
https://github.com/magento/magento2/commit/62378774f239c2019e39bdd353c8c6c674b54fb1
Issue
src is correct:
<img src="http://domain.com/pub/media/wysiwyg/.thumbs/home/home-t-shirts.png?rand=1505918839" alt="home-t-shirts.png">
src is incorrect:
<img src="http://domain.com/admin_111/cms/wysiwyg_images/thumbnail/file/aHRtbC1jaGVhdC1zaGVldC5wbmc-/key/08c5525fa3b16c91f2ad0f757282e78f6abf1f797e8c30628598f1b3824934d8/" alt="html-cheat-sheet.png">
Change log
Version 1.0.8 - Jan 19, 2018 | Lewis Voncken
- [TASK] Updated README.md and CHANGE.log Added Important Issue in Magento < 2.2
Version 1.0.7 - Sep 4, 2017 | Lewis Voncken
- [BUGFIX] Solved problem with Product Image upload => Notice: Undefined index: extension
Version 1.0.6 - June 12, 2017 | Derrick Heesbeen
- [BUGFIX] make it compatible with the Experius FileManager
Version 1.0.5 - June. 7, 2017 | Lewis Voncken
- [TASK] Updated README.md with nginx redirect for internal url with storecodes
Version 1.0.4 - May. 18, 2017 | Lewis Voncken
- [BUGFIX] Solved error message Unsupported image format
Version 1.0.3 - Sep. 23, 2016 | Lewis Voncken
- [TASK] Changed README
- [TASK] Added Open Software License
Version 1.0.2 - Sep. 19, 2016 | Lewis Voncken
- [TASK] Version update to 1.0.2 added configuration option to add more allowed filetypes beside the Default Extra Filetypes
Version 1.0.1 - Sep. 17, 2016 | Lewis Voncken
- [TASK] Changed the logic so file extensions can be added in the configuration
Version 1.0.0 - Sep. 16, 2016 | Lewis Voncken
- Initial Commit
experius/module-wysiwygdownloads 适用场景与选型建议
experius/module-wysiwygdownloads 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 877.34k 次下载、GitHub Stars 达 102, 最近一次更新时间为 2016 年 11 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 experius/module-wysiwygdownloads 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 experius/module-wysiwygdownloads 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 877.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 104
- 点击次数: 41
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2016-11-09

