Open richex-cn opened 3 years ago
It also happens when we replace the heading tag.
@richex-cn Could you give this example code by making it CodeSandbox? I'll check and answer. I'm sorry I didn't see the code box at first.
@richex-cn @ats1999 Oops... the document was wrong. It should have been called by passing node
to the getChildrenText
function as a parameter. You can modify the code as follows. The documentation has been updated. Thanks for reporting the issue.
// ...
return {
// ...
attributes: {
// ...
- alt: getChildrenText(),
+ alt: getChildrenText(node),
},
};
Describe the bug
When I repeat this operating, I got an error "Cannot read property 'walker' of undefined":
https://github.com/nhn/tui.editor/blob/master/apps/editor/docs/custom-html-renderer.md#skipchildren
To Reproduce
See https://codesandbox.io/s/tuieditor-bug-cannot-read-property-walker-of-undefined-et5cs?file=/src/App.vue
Expected behavior
No error and normal work.
Screenshots
Desktop (please complete the following information):