-
-
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
Manual test with simple image #15222
Conversation
…ize attributes and not rely on styles.
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 ) => { |
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.
You used event type in line 33. Why don't do that here.
} | ||
|
||
ClassicEditor | ||
.create( document.getElementById( 'editor' ), { |
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.
It does not compile for me. getElementById
can return null
.
continue; | ||
} | ||
|
||
const item = change.range.start.nodeAfter; |
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 lines below do not compile for me. nodeAfter
can return null.
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.