cozy / prosemirror-go

A port in Go of ProseMirror for writing a collaborative editing server
GNU Affero General Public License v3.0
45 stars 9 forks source link

set_attrs_step err #5

Closed luoqeng closed 3 years ago

luoqeng commented 3 years ago

https://github.com/cozy/prosemirror-go/blob/master/transform/set_attrs_step.go#L44

https://bitbucket.org/atlassian/atlassian-frontend-mirror/src/e0b049db0e350b62eb580bed751e1148da5712c2/editor/adf-schema/src/steps/set-attrs.tsx#lines-35

leaf := 0
if target.IsLeaf() {
  leaf = 1
}
target.isLeaf ? 0 : 1
nono commented 3 years ago

Good catch, thanks!