Added the ability to set the contents of a node as an element#932
Open
n2ref wants to merge 2 commits intojerosoler:masterfrom
Open
Added the ability to set the contents of a node as an element#932n2ref wants to merge 2 commits intojerosoler:masterfrom
n2ref wants to merge 2 commits intojerosoler:masterfrom
Conversation
Owner
|
It wouldn't be the same as: https://github.com/jerosoler/Drawflow?tab=readme-ov-file#register-node When exporting/importing it is better not to use an HTML node. |
Author
Owner
|
HTMLElement is simple? editor.addNode('github', 0, 1, 150, 300, 'github', data, '<div>Hello!<br>World<div>');what are you trying to add? |
Author
|
I add there an HTMLElement object, which was created by another library, which has its own events and logic. For correct work it should be accessible by reference. But as soon as cloning occurs, there is no such access. |
Owner
|
In that case, you might have to use that method. There's probably another way, but if it works for you, go for it! |
Author
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




No description provided.