Hello! I would like to check how can I send the message from my plugin to my React app where I have the editor embedded it.
I tried window.parent.postMessage(message, “*”), but it doesn’t work as the Plugin is working in iFrame, so the message it sent not to React, but to Editor itself.
Thank you!
Hello @sshvaika
Can you provide more details on your goal? What kind of information you want to send from plugin to the app and what is a usecase?
Hello @Constantine!
Sure. I want user to click on the Toolbar button that I created using my plugin (it already works). When the button is clicked, I need to fetch some data and show the data picker on my React App.
So, on the React App I need to know that user clicked the button.
Then, I will need to send some data (text) from React App to the document editor. So, I also need a way to communicate from React to the Plugin.
Thank you for the reply. There are no particular plugin methods for that, but I believe the easiest way to achieve that is with AJAX.