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

LPD-42473 Instead of setting a width from image2 plugin, we'll do it in portal #216

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

antonio-ortega
Copy link
Member

Hi,

This new patch (#21) is basically reverting our previous tries (#20, #17) to render images with no width.

After a deeper analysis, we've seen none of these solutions is working 100% and this issue should be better handled inside Liferay Portal, to be more exact, within itemselector plugin.

Once this pr gets merged, I'll release a new liferay-ckeditor version, and then I'll send a pull request to liferay-portal upgrade such version and including the fix within itemselector plugin.

Thanks.

Regards.

…directly inside portal when rendering the image
Copy link
Member

@markocikos markocikos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antonio-ortega A question inline.

Comment on lines +19 to +22
- width: image.$.style.width && parseInt( image.$.style.width ) || image.getAttribute( 'width' ) || '150px',
- height: image.$.style.height && parseInt( image.$.style.height ) || image.getAttribute( 'height' ) || 'auto',
+ width: image.$.style.width && parseInt( image.$.style.width ) || image.getAttribute( 'width' ) || '',
+ height: image.$.style.height && parseInt( image.$.style.height ) || image.getAttribute( 'height' ) || '',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a line deleted in patch 20 that we're not reverting,

'.cke_widget_wrapper.cke_widget_image {width: 100%;}'

Is this intentional?

If it is, this PR is fine as it is. If it is a full revert, can we just delete patch 20 and rebuild?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, because that line was added in patch 17... then removed in patch 20 by this new solution than I'm also reverting now.

Basically I'm getting rid of our tries to get this behavior inside liferay-ckeditor. We'll do it in portal.

@antonio-ortega antonio-ortega merged commit 81d2347 into liferay:master Dec 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants