-
-
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
The InsertTableCommand should break paragraph where the selection is anchored #3181
Comments
That's not critical so I'm moving this out of iteration 18. And as for expected result, please use |
BTW, the |
Yep, we had a long discussion if an image insertion should break a block and agreed it should not, see https://github.com/ckeditor/ckeditor5-image/blob/076591e7f3b2eda73d172d6dcbabf8de3972aeba/src/imageupload/utils.js#L24-L38 However, image and tables are not exactly the same case. For images, we had mostly image drop in mind. It is hard to select position precisely when you drop, what was an argument to prevent block split. An image can be also aligned to the side, to be an illustration of the paragraph. To do so, the image needs to be inserted before the block. This is why the image is usually inserted before the block (except the case when the selection is at the end of the block). In case of tables, I am not sure if they should break blocks. What I am sure, is that the table should be inserted before the block if the selection is at the beginning of the block. Otherwise, inserting tables using block toolbar will bring bad UX. |
Just so you don't need to worry:
And for that we need to expose the |
But let's continue this discussion in #1243. |
Other: Table feature should insert table the same way as other widgets. Closes #27. BREAKING CHANGE: The `TableUtils#createTable()` method now accepts model `Writer` instance instead of `Position`. The method no longer inserts created table to the model - use returned value instead.
As @oleq pointed out:
The text was updated successfully, but these errors were encountered: