How is the text editor getting the HTML data?

Hello,
I have been using this plugin : HTML
while debugging the plugin to get doc to html data on selection,in callstack i see it gets the text from some OnMessage function,but there is no information on how this function gets the event.

So,i wanted to know which function or code passes the html data till here,is it from sdkjs,web-apps or server code.
any help regarding this would be better.

Hello @Octane,
Please take a look: How to get doc content on every change? - #10 by Carl

Thank you for the information but when i select anything in docx, i am not getting the html data into my plugin,i want to know here this html data is getting generated from?

select text in docx> converting the selected text to html >send that html to plugin

“> converting the selected text to html”

i want to know this part.
which part of sdkjs is performing this?
i have the open source code for it,just want to understand the flow of it.

The html data is sent to the init event as described above. As for the source code, I cannot give any hints since we do not cover source code issues on this forum.

1 Like

No problem then, thank you :slight_smile: