Skip to content

LoroText's Delta updates not correct when pushing null attributes. #690

Closed
@anlumo

Description

@anlumo

I'm trying to use LoroText together with the Fleather editor. In theory, both support Delta, so this should work fine.

However, certain operations (like changing a line from bullet point to normal line) require removing existing attributes. This is done in Delta by having an attribute with null as the value.

This works fine with LoroText when applying the Delta and then getting a full Delta for the whole text, but when subscribing to changes to the text the change Deltas are incorrect. See my comment below for a unit test that shows this behavior.

Connected Fleather ticket: fleather-editor/fleather#469

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions