Skip to content

Commit

Permalink
CLOUDINARY-134: Fixed Magento 2.3.1 issue on wysiwyg from GH issue #29
Browse files Browse the repository at this point in the history
  • Loading branch information
pini-girit committed Jul 3, 2019
1 parent c01391f commit ae26cfd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Model/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function getCdnSubdomainStatus()
*/
public function getUserPlatform()
{
return sprintf(self::USER_PLATFORM_TEMPLATE, '1.9.0', '2.0.0');
return sprintf(self::USER_PLATFORM_TEMPLATE, '1.9.1', '2.0.0');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cloudinary/cloudinary-magento2",
"description": "Cloudinary Magento 2 Integration.",
"type": "magento2-module",
"version": "1.9.0",
"version": "1.9.1",
"license": "MIT",
"require": {
"cloudinary/cloudinary_php": "*"
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Cloudinary_Cloudinary" setup_version="1.9.0">
<module name="Cloudinary_Cloudinary" setup_version="1.9.1">
<sequence>
<module name="Magento_ProductVideo"/>
</sequence>
Expand Down
2 changes: 1 addition & 1 deletion marketplace.composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cloudinary/cloudinary",
"type": "magento2-module",
"version": "1.9.0",
"version": "1.9.1",
"description": "Cloudinary Magento 2 Integration.",
"license": "MIT",
"require": {
Expand Down
6 changes: 5 additions & 1 deletion view/adminhtml/layout/cms_wysiwyg_images_index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
<referenceContainer name="root">
<block class="Cloudinary\Cloudinary\Block\Adminhtml\Cms\Wysiwyg\Images\Content" name="wysiwyg_images.content" template="Cloudinary_Cloudinary::browser/content.phtml">
<block class="Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Tree" name="wysiwyg_images.tree" template="Magento_Cms::browser/tree.phtml"/>
<block class="Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Content\Uploader" name="wysiwyg_images.uploader" template="Magento_Cms::browser/content/uploader.phtml"/>
<block class="Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Content\Uploader" name="wysiwyg_images.uploader" template="Magento_Cms::browser/content/uploader.phtml">
<arguments>
<argument name="image_upload_config_data" xsi:type="object">Magento\Backend\Block\DataProviders\ImageUploadConfig</argument>
</arguments>
</block>
</block>
</referenceContainer>
</layout>
1 change: 1 addition & 0 deletions view/adminhtml/web/js/cloudinary-media-library-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ define([
this.cloudinary_ml = window.cloudinary_ml[this.options.cldMLid] = cloudinary.createMediaLibrary(
this.options.cloudinaryMLoptions, {
insertHandler: function(data) {
$('body').first().css('overflow', 'initial');
return widget.cloudinaryInsertHandler(data);
}
}
Expand Down

0 comments on commit ae26cfd

Please sign in to comment.