treant-js icon indicating copy to clipboard operation
treant-js copied to clipboard

allow user input node content as HtmlElement

Open Jim-JZ-Chen opened this issue 6 years ago • 2 comments

so user can better modifier the node content

Jim-JZ-Chen avatar Sep 24 '18 01:09 Jim-JZ-Chen

ok, please use this.nodeInnerHTML instanceof HTMLElement instead of typeof this.nodeInnerHTML === "string" before using appendChild

We can merge when you make that change.

cheers

fperucic avatar Sep 25 '18 09:09 fperucic

and it would be nice to add the newly added options to the documentation branch

fperucic avatar Sep 25 '18 09:09 fperucic