Closed oleq closed 3 years ago
cc @magda-chrzescian
We need a decision where to place this caption by default.
We should use CSS to control the place. In the model/data this should be const.
The inconsistency between the table and image captions seems to be less of a problem than the content readability, so I'd rather see captions above tables.
Dropping it here as it may be useful while the implementation: https://css-tricks.com/almanac/properties/c/caption-side/
Should I fix this with CSS? (look at the table helper)
Should I fix this with CSS? (look at the table helper)
You didn't share DOM so I'm just guessing but it looks like the selection handle is located somewhere deeper in the structure instead of the top-most widget wrapper (figure?) and that's why it is positioned relative to the wrong element.
Sorry for missing it. The DOM looks like this:
Helper is placed above table using transform: translateY (100%)
. I wonder if I rather should try to use CSS to bend the helper placement to my will or try to change the placement of the helper in the DOM. But that would affect a lot of other components in the editor, am I right?
Update: @niegowski pointed out that just top: 0
in the helper class should do the trick, and in fact it did.
Provide a description of the task
Extracted from https://github.com/ckeditor/ckeditor5/issues/9223#issuecomment-800373167: