-
-
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
Improve History
API
#11226
Labels
package:engine
squad:collaboration
Issue to be handled by the Collaboration team.
type:improvement
This issue reports a possible enhancement of an existing feature.
Milestone
Comments
scofalik
added
type:improvement
This issue reports a possible enhancement of an existing feature.
package:engine
squad:collaboration
Issue to be handled by the Collaboration team.
labels
Feb 7, 2022
Maybe |
Rename |
CKEditorBot
added
status:planned
Set automatically when an issue lands in the "Sprint backlog" column. We will be working on it soon.
status:in-progress
Set automatically when an issue lands in the "In progress" column. We are working on it.
and removed
status:planned
Set automatically when an issue lands in the "Sprint backlog" column. We will be working on it soon.
labels
Mar 14, 2022
Merged
Summary of changes:
|
scofalik
added a commit
that referenced
this issue
Apr 26, 2022
Feature (engine): Improved the `History` API. Changes summary is in the related issue. Closes #11226. Fix (restricted-editing): Standard editing mode postfixers will no longer create marker operations with invalid base versions. Closes #11644. MINOR BREAKING CHANGE: The `Document#version` became a getter and changing it is now impossible. `document.applyOperation()` increments the `Document#version`, so changing it directly should not be necessary. However, for advanced use cases, it can be changed using the new `History#version` property.
CKEditorBot
removed
the
status:in-progress
Set automatically when an issue lands in the "In progress" column. We are working on it.
label
Apr 26, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
package:engine
squad:collaboration
Issue to be handled by the Collaboration team.
type:improvement
This issue reports a possible enhancement of an existing feature.
📝 Provide a description of the improvement
History
is a simple class that is mostly an array with a few additional functionalities. Recently,History
was used in real time collaboration and revision history. Some API was lacking, and it would be nice to introduce it:_operations
public+readonly.#clear()
- removes all data from the history.#last
- returns the most recent operation from the history.#length
- returns the total amount of operations in the history.Other than that it would be good to think about making
getOperations()
faster (now it looks through all operations). It is not a problem right now -- I will make a separate issue if it proves problematic. But it would not harm to think on this matter for some several minutes.The text was updated successfully, but these errors were encountered: