-
-
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
Inserted blocks should be positioned the same way across the features #1243
Comments
Can we create a utility for that? (e.g. it would return the new |
This logic is already available in the editor. I'll just copy here my comment from
So, there's a utility for that already. It's just hidden in the ckeditor5-image package. Also, the second half of the task is already handled by Let's not create new tools for that, but instead let's find a way to expose the existing ones. As I wrote above – perhaps all this should be enclosed in |
IMO
|
Maybe it should be focused on widgets and be part of the widget repository as a util? And maybe it should be focused on inserting blocks? |
In the f2f we agreed that we will do the following changes.
We realised that it means that if you use position or range as the second parameter you will not be able to get the selection after insertion ( This way, |
Other: The `model.insertContent()` accepts range and position. Closes ckeditor/ckeditor5#1243.
Since I recently reported a bug in tables and media embed features I believe we need to establish some rules how block widgets like tables, image or media should be inserted.
What is clear for me:
The question is: what should happen if the position is in the middle of the block. In the image feature we agreed that it will be better to insert it before the paragraph because of 2 reasons:
Correct:
Correct:
Incorrect:
Incorrect:
The text was updated successfully, but these errors were encountered: