Skip to content
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

model.Document#lastBatch #4047

Closed
scofalik opened this issue Apr 12, 2017 · 6 comments
Closed

model.Document#lastBatch #4047

scofalik opened this issue Apr 12, 2017 · 6 comments
Labels
package:engine pending:feedback This issue is blocked by necessary feedback. resolution:expired This issue was closed due to lack of feedback. status:stale

Comments

@scofalik
Copy link
Contributor

When creating fixer for paragraph feature I stumbled upon a problem with batch type.

The fixer is a callback for changesDone event, that creates a <paragraph> element, if there are no contents in given root. This prevents having empty roots.

However the question is what should be a batch type in this case?

If it is not transparent then the batch will create undo step. If it is transparent then it can't be undone, meaning that the create <p> will stay at its place when user starts undoing.

The first option is better but neither is good. I can imagine that there might be more places where we might want glue some deltas to the last batch so they are reverted together.

On the other hand, when I think of it now, the batches are available on change event, so maybe the fixer for paragraph should listen to change event?

@pjasiun
Copy link

pjasiun commented Apr 13, 2017

I rencenty also met the problem that I can not access batch in the conversion and decided to add change listener instead.

But note that I also proposed to have last batch as a documents property here: https://github.com/ckeditor/ckeditor5-engine/issues/858#issuecomment-284701045.

@scofalik
Copy link
Contributor Author

I knew I read it somewhere ;)

@Reinmar
Copy link
Member

Reinmar commented Apr 27, 2017

@Reinmar
Copy link
Member

Reinmar commented Jul 22, 2019

Is it still a problem, @scofalik?

@mlewand mlewand transferred this issue from ckeditor/ckeditor5-engine Oct 9, 2019
@mlewand mlewand added pending:feedback This issue is blocked by necessary feedback. package:engine labels Oct 9, 2019
@CKEditorBot
Copy link
Collaborator

There has been no activity on this issue for the past two years. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

@CKEditorBot
Copy link
Collaborator

We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

@CKEditorBot CKEditorBot added the resolution:expired This issue was closed due to lack of feedback. label Oct 2, 2023
@CKEditorBot CKEditorBot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:engine pending:feedback This issue is blocked by necessary feedback. resolution:expired This issue was closed due to lack of feedback. status:stale
Projects
None yet
Development

No branches or pull requests

5 participants