avbhatt / SOCS

0 stars 0 forks source link

Context Menu Functionality #11

Open cyanliu-zzz opened 6 years ago

cyanliu-zzz commented 6 years ago

rough outline:

  1. Create a context menu with an option along the lines of "Mark as issue"
  2. Get the "selected" element (not necessarily actually highlighted)
  3. Connect to helper on the same page
  4. Send element in the chat with the helper
fahsa commented 6 years ago

Have 1 and 2? done: clicking "Mark Issue" in context menu console logs the tag and innerHTML of the clicked element. Had trouble printing just the entire object? Will try and figure that out, along with how to send it in the chat.