๐ Feature request
CKEditor version 5, decoupled document build
Two small images should be in same line with space e.g. Image1 Image2
Currently they are stacked up from top to bottom.
MVP step 2: https://github.com/ckeditor/ckeditor5/issues/8666
Nice to have features: https://github.com/ckeditor/ckeditor5/issues/8712
If you'd like to see this feature implemented, add ๐ to this post.
any work around/alternative for the time being?
As ateeqsuhail said is there any workaround to make it work for now ?
I developed my own plugin for this. I used the image plugin as example and tried to reuse as much code as possible. The schema of course is different:
schema.register('inline-image', {
// Allow wherever text is allowed:
allowWhere: '$text',
// The image will act as an inline node:
isInline: true,
// The inline widget is self-contained so it cannot be split by the caret and can be selected:
isObject: true,
allowAttributes: ['alt', 'src', 'srcset']
});
I have downgraded to version 4, since it has all the features.
Hello @kleinph,
Can you share your plugin ?
Thank's
I am not entirely sure, because I built this for a former employer. Also its not 100% perfect.
One very valid use case that requires supporting inline images reported by our customer: in an internal application for sending messages many times users start an email from copying/pasting content from other sources/emails.
In those quoted emails, people have in the footer links to socials that consist of separate small inline (linked) images:

when those images are pasted, they become block images that take the whole width of the page, which of course looks wrong.
Another valid use case: Inline images should sometimes be used as 'letters', as for example in the attached screenshot of article about ancient number systems. It was written in CKE4 :(.

We discussed with @oleq some UX aspects of this feature.
<p> (other option: merged to a nearby block).More notes:
<image> element isn't. Also, <image> can contain <caption> while inline image cannot.<img> without <figure>.More notes: We need to design a heuristic for detecting whether an image that's being inserted is inline or not. Some examples:
About heuristic, I think that should be something simple and predictable, so users will always know what will happen. The best will be only one detection rule. Detecting using with/heigh leaves too much ambiguity: why this 50x50px inserted image is inline, and 55x55px image inserted next to it is a block? What should be the size limit? I propose detecting only by the place of insert: Inline between text or in a list, block in an empty paragraph. After analyzing feedback from the users I see that the most popular use case for this feature is to just insert an image between text.
There is also one thing to discuss: Inline/block switch Icon location and design. For the location, the balloon seems to be reasonable. But we need someone to design the infographic.
Most helpful comment
I developed my own plugin for this. I used the image plugin as example and tried to reuse as much code as possible. The schema of course is different: