Multi formatting bug
team-c35p opened this issue · 2 comments
team-c35p commented
Describe the bug
multi selected format changed not synced
To Reproduce
Steps to reproduce the behavior:
- open 2 browser(A, B) and go to 'https://demos.yjs.dev/quill/quill.html'
- In A, add some text multi line like
a
b
c
d
e
- In A, multi select from 2 to 4 lines and change type normal to H1
- In A, multi selected lines format changed normal to H1
- In B, only first line changed normal to H1, other lines were not chaged
Environment Information
- use yjs, y-quill, y-websocket latest version
manstie commented
I also noticed this. Any multi-line formatting (bold, ital, underline, ...) only propagates the formatting change to other clients for the first line in the selection.
Edit: this is a problem with applyDelta
- the quill binding is doing as it's told and when a change comes from quill, applyDelta
is only setting the formatting of the first line in the y-text object when given a quill delta.ops
.
dmonad commented
Fixed in yjs@13.4.11 / yjs#272