nhn / tui.editor

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

It is recommended to add different types of Node update events #3129

Open ygzhang-cn opened 1 year ago

ygzhang-cn commented 1 year ago

Version

3.2.2

It is recommended to add different types of Node update events

If different types of Node nodes all have an update completion event, the plug-in can conveniently monitor the update. In order to implement the parsing of " [TOC] outline", I now listen to the editor change event and need to traverse doc nodes to complete the parsing of " [TOC] outline". Although it can be used normally, the efficiency is poor..