Title: Javascript error when inserting shortcode from another plugin
Last modified: January 21, 2020

---

# Javascript error when inserting shortcode from another plugin

 *  Resolved [helloadorable](https://wordpress.org/support/users/helloadorable/)
 * (@helloadorable)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-inserting-shortcode-from-another-plugin/)
 * Hello. We have a plugin called EasyAzon which looks up a product in Amazon and
   creates a special shortcode and inserts it into the editor window. This works
   just fine in a normal post editor window.
 * However we are trying to insert an EasyAzon shortcode into a table cell in TablePress.
   So we choose to do the advanced editing of the cell and we get the more advanced
   TablePress editor and use the EasyAzon button but when we try to insert the shortcode,
   we get this javascript error in EasyAzon’s code:
 * `TypeError: _.parent.send_to_editor is not a function popup.js:62:12`
 * So it seems that either _.parent is not defined or it is defined but there’s 
   no send_to_editor function. Is this an issue with TablePress or EasyAzon? Is 
   there any fix we can implement for this? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-inserting-shortcode-from-another-plugin/#post-12349894)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * This is a bit difficult to answer. That JS error is raised inside an EasyAzon
   JS file, as TablePress doesn’t have a popup.js file. However, the reason for 
   it might be in the way how TablePress also uses that `send_to_editor` function.
   It needs to modify a few parameters so that the data that was edited in the “
   Advanced Editor” is placed in the correct cell again. For that, it needs to adjust
   how some files are loaded, which might play a role here.
    Having said that, I’m
   not really sure how these two functionalities can be brought together, i.e. whether
   that external button can be integrated into the “Advanced Editor” 🙁 I just don’t
   see an easy approach here, sorry.
 * Regards,
    Tobias
 *  [kmuz](https://wordpress.org/support/users/kmud/)
 * (@kmud)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-when-inserting-shortcode-from-another-plugin/#post-13099410)
 * Hi Tobias,
 * While using the advanced editor, I am using Easyazon plugin to get amazon text
   link but when I hit insert – it resets to the easyazon search page. In summary,
   I am unable to enter the text link via easyazon plugin into the tablepress advanced
   editor. This feature works perfectly on the classic editor, so I am having to
   insert them on the classic editor and then paste them to tablepress manually.
 * could you please help?
 * Thanks
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-when-inserting-shortcode-from-another-plugin/#post-13100178)
 * Hi,
 * I see what you mean, but unfortunately, I don’t know a solution to this. It looks
   like there’s something wrong in the integration of other plugins into the “Advanced
   Editor”.
 * At this time, I can only suggest to use that manual method that you describe.
   You could maybe do this in two browser tabs in parallel, to speed things up.
 * Regards,
    Tobias
 *  [kmuz](https://wordpress.org/support/users/kmud/)
 * (@kmud)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-when-inserting-shortcode-from-another-plugin/#post-13100688)
 * Thanks Tobia. Appreciate the prompt reply.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-when-inserting-shortcode-from-another-plugin/#post-13101198)
 * Hi,
 * sure, no problem!
 * Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Javascript error when inserting shortcode from another plugin’ is closed
to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [advanced editor](https://wordpress.org/support/topic-tag/advanced-editor/)

 * 5 replies
 * 3 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-when-inserting-shortcode-from-another-plugin/#post-13101198)
 * Status: resolved