Title: [Plugin: Leaflet Maps Marker] Shortcode link in TinyMCE broken :(
Last modified: August 20, 2016

---

# [Plugin: Leaflet Maps Marker] Shortcode link in TinyMCE broken :(

 *  Resolved [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * (@agneslesagegmailcom)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-shortcode-link-in-tinymce-broken/)
 * I use the plugin with pleasure on WP 3.3.1, and I also have the latest version
   of TinyMCE (ultimate 1.8à)
    The manual insertion of shortcode works, but when
   I use the icon in TinymCE, I get a popup saying “insert map” but then a 404 error
   from my provider. That is because’ the frame tries to open [http://www.morija.co.ls/wp-admin/](http://www.morija.co.ls/wp-admin/)
   inbstead of [http://www.morija.co.ls/morija/wp-admin/](http://www.morija.co.ls/morija/wp-admin/)
   on [http://www.morija.co.ls/wp-admin/admin-ajax.php?action=get_mm_list&ver=345-20111127](http://www.morija.co.ls/wp-admin/admin-ajax.php?action=get_mm_list&ver=345-20111127)
   I guess it should use site URL somehow somewhere?
 * [http://wordpress.org/extend/plugins/leaflet-maps-marker/](http://wordpress.org/extend/plugins/leaflet-maps-marker/)

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

 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-shortcode-link-in-tinymce-broken/#post-2704668)
 * thanks for the bug report – unfortunately, I dont know how to solve this. The
   problem lies in lmm_tinymce_shortcode.js:
 *     ```
       ...
       					file : '/wp-admin/admin-ajax.php?action=get_mm_list',
       ...
       ```
   
 * this needs to be changed to something like
 *     ```
       ...
       					file : '<?php if (!is_multisite()) { echo admin_url(); } else { echo get_admin_url(); } ?>admin-ajax.php?action=get_mm_list',
       ...
       ```
   
 * Well – using php in js is not possible this way and I didnt find a workaround.
   Any help is appreciated!
 *  Thread Starter [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * (@agneslesagegmailcom)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-shortcode-link-in-tinymce-broken/#post-2704674)
 * Hi, i also found this line and had tried with a simple blog url php insert, but
   as you say, it does not fit into .js !
    So… I dont know… Well, I ll hard code
   my url until, may be someone finds a way! Thanks, Agnes
 *  Thread Starter [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * (@agneslesagegmailcom)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-shortcode-link-in-tinymce-broken/#post-2704686)
 * PS: today I see someoine using PHP in CSS, but adding it from a function file…
   would be an idea?
    Agnes
 *  if ( !( $config[‘rmcss’] === ‘Yes’ ) && ( $config[‘format’] === ‘list’ )) { ?
   >
    <style type=”text/css”> .better-tag-cloud-shortcode li, .better-tag-cloud-
   shortcode li a, li#better-tag-cloud ul.wp-tag-cloud li, li#better-tag-cloud ul.
   wp-tag-cloud li a { display: inline; <?php if ($underline == ‘none’) { echo “
   text-decoration: none;”; } elseif ($underline == ‘underline’) { echo “text-decoration:
   underline;”; } ?> } </style>
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-shortcode-link-in-tinymce-broken/#post-2704694)
 * Hi Agnes,
    I found a fix (I embedd .php instead of .js and attach admin-url as
   parameter for javascript) 🙂 Will be included in v2.3 which will hopefully be
   released soon… regards, Robert
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-shortcode-link-in-tinymce-broken/#post-2704695)
 * Hi again 🙂
    v2.3 has just been released – please tell me, if it doesnt solve
   your issue. Regards, Robert
 *  Thread Starter [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * (@agneslesagegmailcom)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-shortcode-link-in-tinymce-broken/#post-2704696)
 * Congrats!
    That is a great news so I ll expect the update 🙂 Thanks for the follow
   up!
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-shortcode-link-in-tinymce-broken/#post-2704697)
 * I hope you didnt update within the last 15 Minutes – had to do a quick bug fix
   for this release :-/
    If yes, please upload all plugin files manually again via
   ftp…
 *  Thread Starter [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * (@agneslesagegmailcom)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-shortcode-link-in-tinymce-broken/#post-2704704)
 * Yes it works! Great, and thanks for eractivity

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

The topic ‘[Plugin: Leaflet Maps Marker] Shortcode link in TinyMCE broken :(’ is
closed to new replies.

 * ![](https://ps.w.org/leaflet-maps-marker/assets/icon.svg?rev=970936)
 * [Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)](https://wordpress.org/plugins/leaflet-maps-marker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-maps-marker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-maps-marker/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-maps-marker/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-shortcode-link-in-tinymce-broken/#post-2704704)
 * Status: resolved