Closed luoqeng closed 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
Good catch, thanks!
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