Title: JS Error when clicking on Insert Shortcode Button
Last modified: May 25, 2022

---

# JS Error when clicking on Insert Shortcode Button

 *  [dxfoxd](https://wordpress.org/support/users/dxfoxd/)
 * (@dxfoxd)
 * [4 years ago](https://wordpress.org/support/topic/js-error-when-clicking-on-insert-shortcode-button/)
 * I use Elementor Pro page builder. The SU plugin is installed as well. WP, Elementor
   and SU all latest versions installed.
 * When clicking on the button Insert Shortcode a JS error is shown
 *     ```
       post.php?post=296&action=elementor:1 Uncaught ReferenceError: SUG is not defined
           at HTMLButtonElement.onclick (post.php?post=296&action=elementor:1:1)
       onclick @ post.php?post=296&action=elementor:1
       ```
   
 * JS causing the error: `SUG.App.insert('classic',{editorID:'elementorwpeditorview4545',
   shortcode:''});`
 * I read somewhere that SU doesn’t work with Elementor, but that was a topic in
   2016. Is this still an issue?
    -  This topic was modified 4 years ago by [dxfoxd](https://wordpress.org/support/users/dxfoxd/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjs-error-when-clicking-on-insert-shortcode-button%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [arcaswebdesign](https://wordpress.org/support/users/arcaswebdesign/)
 * (@arcaswebdesign)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/js-error-when-clicking-on-insert-shortcode-button/#post-16014705)
 * Also experiencing the same issue.

Viewing 1 replies (of 1 total)

The topic ‘JS Error when clicking on Insert Shortcode Button’ is closed to new replies.

 * ![](https://ps.w.org/shortcodes-ultimate/assets/icon-256x256.gif?rev=2547563)
 * [Shortcodes Ultimate - Content Elements](https://wordpress.org/plugins/shortcodes-ultimate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ultimate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ultimate/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ultimate/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [arcaswebdesign](https://wordpress.org/support/users/arcaswebdesign/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/js-error-when-clicking-on-insert-shortcode-button/#post-16014705)
 * Status: not resolved