You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before OT refactor, LiveRange#change:event had a data object with some data about the change. It was simple, because only InsertOperation and MoveOperation could change the tree. After refactor we have four new operations and the old data object with its properties did not fit them.
So right now we pass the whole operation with the event. This however might not be the best idea, as @pjasiun wrote:
If we will keep it this way changes in opeartion will have to be marked as breaking changes.
The text was updated successfully, but these errors were encountered:
AFAICS this is used only in documentselection.js and the information that is needed is the position from which the range was removed (this is not the same as old range start position).
Other: Moved error logging from debug tools to OT code.
Other: Aligned `Schema#getValidRanges` results to changes in `AttributeOperation`.
Other: Unified `RemoveOperation` and `ReinsertOperation` to have just one `MoveOperation`.
Other: Simplified `LiveRange#event:change` second parameter which is now an object containing `Position` not an `Operation`.
Internal: Operational transformations refactor followups.
Internal: Additional improvements for the new OT algorithms.
Internal: Added relations to better solve cases in undo.
Internal: Improved cloning mechanism inside `WrapOperation`.
Internal: Improved `model.Range#getTransformedByMergeOperation`.
Internal: Other improvements in OT algorithms.
Internal: Improvements in docs.
Closes #1468. Closes #1464. Closes #1467. Closes #1460. Closes #1461. Closes #1462. Closes #1463. Closes #1475. Closes #1479.
BREAKING CHANGE: `LiveRange#event:change` second parameter is now an object containing property `deletionPosition`. It can be `model.Position` instance, if the range was moved to the graveyard root. The position is equal to the position from which nodes were removed. Otherwise, it is set to `null`.
BREAKING CHANGE: `Schema#getValidRanges` will return only flat ranges now. If an attribute is allowed on some nodes and in those nodes children, multiple "nested" ranges will be returned.
BREAKING CHANGE: `Schema#getValidRanges` is a generator now.
mlewand
transferred this issue from ckeditor/ckeditor5-engine
Oct 9, 2019
This is a follow-up after OT refactor PR:
ckeditor/ckeditor5-engine#1459
Before OT refactor,
LiveRange#change:event
had adata
object with some data about the change. It was simple, because onlyInsertOperation
andMoveOperation
could change the tree. After refactor we have four new operations and the olddata
object with its properties did not fit them.So right now we pass the whole operation with the event. This however might not be the best idea, as @pjasiun wrote:
The text was updated successfully, but these errors were encountered: