CONTEXT
As part of a Meteor.JS app, I need to create a visual editor that allows the user to do the following:
- Type in a URL of a live site (can be any site, no JS snippet required)
- See the site in a an iframe/wysiwyg editor within the app
- Select text/images within this webpage and change their content visually
On the back end, I need the above actions to be translated into two parts:
- A jQuery selector telling me which element has been changed
- A value indicating the new text/image url.
PROBLEM
I've found the following WYSIWYG editor which seems to work well for the editing part of this: https://www.froala.com/wysiwyg-editor/docs - However, there are two pieces which I am not sure about:
- I can use this plugin if I load it within a site, but I'm not sure how to use it on a third party site (e.g. as Chrome Dev Tools does).
- I'm not sure how to translate changes made into jQuery selector and value.
Any insight into either piece of this problem would be greatly appreciated.