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
Is there any way to directly return the top-level nodes instead of flattening all the nodes?
this is current data
[
{
"__type": "text",
"__parent": "3",
"__prev": null,
"__next": null,
"__key": "4",
"__text": "人",
"__format": 0,
"__mode": 0,
"__detail": 0
},
{
"__type": "pinyinNode",
"__parent": "1",
"__prev": "2",
"__next": "5",
"__key": "3",
"__first": "4",
"__last": "4",
"__size": 1,
"__format": 0,
"__indent": 0,
"__dir": null,
"__pinyin": "rén"
},
{
"__type": "text",
"__parent": "1",
"__prev": "3",
"__next": "6",
"__key": "5",
"__text": "类已经征服了星辰和大海。",
"__format": 0,
"__mode": 0,
"__detail": 0
}
]
i want to node not has textNode, has any methods?very thanks you help me
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there any way to directly return the top-level nodes instead of flattening all the nodes?
this is current data
[
{
"__type": "text",
"__parent": "3",
"__prev": null,
"__next": null,
"__key": "4",
"__text": "人",
"__format": 0,
"__mode": 0,
"__detail": 0
},
{
"__type": "pinyinNode",
"__parent": "1",
"__prev": "2",
"__next": "5",
"__key": "3",
"__first": "4",
"__last": "4",
"__size": 1,
"__format": 0,
"__indent": 0,
"__dir": null,
"__pinyin": "rén"
},
{
"__type": "text",
"__parent": "1",
"__prev": "3",
"__next": "6",
"__key": "5",
"__text": "类已经征服了星辰和大海。",
"__format": 0,
"__mode": 0,
"__detail": 0
}
]
i want to node not has textNode, has any methods?very thanks you help me
Beta Was this translation helpful? Give feedback.
All reactions