nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
http://ui.toast.com/tui-editor
MIT License
17.15k stars 1.75k forks source link

Does "nodeid" guarantee unique?? #2804

Open taylous opened 1 year ago

taylous commented 1 year ago

@jwlee1108

Summary

i wonder if the nodeid of customHTMLRenderer ensures uniqueness.

first parameter of customHTMLRenderer (Heading function in my case)

i confirmed that nodeid continued to increase according to the editor input.

however, it is unclear whether this increases according to the number of typing... 🤔

anyway... if the value continues to increase infinitely or if the value reaches the maximum, will it go back to zero?

the reason I want to know this is that I want to give an unique ID to the heading tag.

Additional context

of course it doesn't seem to be, but I want to know exactly...

the editor's input value will not be sent to the server??? 🤔 i think it's a bit stupid, but...

anyway thank you. 😅


jwlee1108 commented 1 year ago

It doesn't guarantee uniqueness in all situations, but I don't think it'll be a problem in general situations. Node is not just one character

taylous commented 1 year ago

the editor's input value will not be sent to the server??? can you give me an answer to this question?

thank you @jwlee1108

jwlee1108 commented 1 year ago

The TOAST UI Editor doesn't communicate with a server.

stale[bot] commented 1 year ago

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!