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

Manual test with simple image #15222

Merged
merged 3 commits into from
Oct 27, 2023
Merged

Manual test with simple image #15222

merged 3 commits into from
Oct 27, 2023

Conversation

niegowski
Copy link
Contributor

Suggested merge commit message (convention)

Internal (image): Added manual test with overridden image conversion to use only size attributes for images. Closes #15185.


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

@niegowski niegowski marked this pull request as ready for review October 25, 2023 15:13
@niegowski niegowski assigned niegowski and arkflpc and unassigned niegowski and arkflpc Oct 25, 2023
const imageUtils: ImageUtils = editor.plugins.get( 'ImageUtils' );

// Waiting for any new images loaded, so we can set their natural width and height.
editor.editing.view.document.on( 'imageLoaded', ( evt, domEvent ) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

You used event type in line 33. Why don't do that here.

}

ClassicEditor
.create( document.getElementById( 'editor' ), {
Copy link
Contributor

Choose a reason for hiding this comment

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

It does not compile for me. getElementById can return null.

continue;
}

const item = change.range.start.nodeAfter;
Copy link
Contributor

Choose a reason for hiding this comment

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

The lines below do not compile for me. nodeAfter can return null.

@niegowski niegowski merged commit 6e60e0b into master Oct 27, 2023
@niegowski niegowski deleted the ck/15185 branch October 27, 2023 14:34
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.

PoC for image attributes
3 participants