Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WYSIWYG Images are not shown #5365

Closed
tag-hoaquo opened this issue Dec 3, 2019 · 2 comments
Closed

WYSIWYG Images are not shown #5365

tag-hoaquo opened this issue Dec 3, 2019 · 2 comments
Assignees

Comments

@tag-hoaquo
Copy link

@tag-hoaquo tag-hoaquo commented Dec 3, 2019

Bug Report

Expected behavior

Image displays in CKeditor

Actual behavior

Image does not display.

Steps to reproduce

When adding a picture in the editor (via drag and drop from the assets) the picture appears in the editor as expected. After saving, closing and reopening the topic, the picture does not display. It is also not displayed in the mobile preview.

Feature Request

Please fix for WYSIWYG can display image

I realize the WYSIWYG image thumbnail is deferred generated but it never work. I disable the deferred generate then it works as expect. But I'm not sure this behavior is expected or make mistake in other cases


// pimcore\vendor\pimcore\pimcore\models\Asset\Image\Thumbnail\Processor.php / Line 170
// disable following block
if ($deferred) {
      // only add the config to the TmpStore if necessary (the config is auto-generated)
      if (!Config::getByName($config->getName())) {
            $configId = 'thumb_' . $asset->getId() . '__' . md5(self::returnPath($fsPath, false));
                TmpStore::add($configId, $config, 'thumbnail_deferred');
            }

            return self::returnPath($fsPath, $returnAbsolutePath);
        }
}
@dvesh3

This comment has been minimized.

Copy link
Contributor

@dvesh3 dvesh3 commented Dec 11, 2019

@tag-hoaquo cannot reproduce! can you please check at demo.pimcore.fun?

@tag-hoaquo

This comment has been minimized.

Copy link
Author

@tag-hoaquo tag-hoaquo commented Dec 12, 2019

Thanks @dvesh3 , the problem is in our custom CKEditor config make the GD adapter work incorrectly.

@tag-hoaquo tag-hoaquo closed this Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.