-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
#8871: Integrate inline images with the link feature #9438
Conversation
…ge upcast does not collide with the linke inline image upcast.
…port inline images.
…n with LinkImage.
…n with LinkImage works correctly.
…th inline images.
…ommands more generic and less related to images.
…fter unlinking an inline image.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The image linking looks good but I really do not like that we put all the helpers into ImageUtils
. I'd expect it to expose only the helpers used in the other package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments as below. Tests not reviewed yet.
There are plenty of conflicts now since #9459 was merged and I'm addressing them. |
Co-authored-by: Kuba Niegowski <[email protected]>
Suggested merge commit message (convention)
Other (link): Integrated the link feature with inline images. Closes #8871. Closes #9017. Closes #9167.
Other (image): Turned the image utils module into an editor plugin to allow sharing utils outside the package. Code refactoring (see #8871).
Additional information
BREAKING CHANGE (image): The image utils module (
@ckeditor/ckeditor5-image/src/image/utils.js
) has turned into theImageUtils
plugin. The helpers are still accessible viaeditor.plugins.get( 'ImageUtils' )
namespace, for instance,editor.plugins.get( 'ImageUtils' ).isImage( ... )
.BREAKING CHANGE (image): The linked image indicator (icon) rendered as a
<span>
with the.ck-link-image_icon
CSS class has been removed. To alter the look of the indicator (including the icon), please usefigure.image > a::after
(for linked block images) anda span.image-inline::after
(for linked inline images) CSS selectors instead.BREAKING CHANGE (image): The API of the
insertImage()
helper has changed, please make sure to update your integrations.BREAKING CHANGE (image): The
isImageWidget()
helper is no longer exposed by theImage
plugin. Use theImageUtils
plugin to access this helper instead.BREAKING CHANGE (image): The API of common image converters has changed. Please refer to the documentation to learn more.
BREAKING CHANGE (image): The API of various image caption utils has changed. Please refer to the documentation to learn more.