• Resolved helloadorable

    (@helloadorable)


    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 TobiasBg

    (@tobiasbg)

    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

    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 TobiasBg

    (@tobiasbg)

    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

    Thanks Tobia. Appreciate the prompt reply.

    Plugin Author TobiasBg

    (@tobiasbg)

    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.