Skip to content

How to update current node properties? #2047

Answered by viiiprock
viiiprock asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, I got it works, just update directly to the ImageNode object.

  if (node && $isImageNode(node)) {
        const imageNode = node as ImageNode
        imageNode.setSrc(payload.src)
  }

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by viiiprock
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@slyguy5646
Comment options

@CanRau
Comment options

@abstractalgo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants