Insert/edit Link Dialog doesnt show
-
WordPress: Version 3.4.2
WP User Frontend: Version 1.1
Browser: Firefox 16.0.2Problem
When I click on the “Insert/Edit Link” button in the editor window (TinyMCE) in my “Edit Post” Page (using [wpuf_edit] shortcode) all I get is the grey transparent overlay and no “Insert/edit link” dialog window.
This works fine from the Admin Posts page which uses the default admin editor code.
Cause
Using Firebug Console I found an error was being thrown in the JQuery UI core file (jquery.ui.core.js) as follows
“TypeError: d is undefined”
Now this is very undescriptive as this file on WordPress is a minimized version with pretty much anything descriptive stripped out.
File: wp-includes\js\jquery\ui\jquery.ui.core.min.js
Version: jQuery UI – v1.8.20 – 2012-04-30On substituting the latest JQuery 1.8 stable release (v1.8.24) of the unminimized version of this file I found that the link dialog suddenly appeared.
On checking the update history of this file I found this addition
// jQuery <1.4.3 uses curCSS, in 1.4.3 - 1.7.2 curCSS = css, 1.8+ only has css if ( !$.curCSS ) { $.curCSS = $.css; }
and sure enough with this commented out the problem reappears.
Solution
I can see maybe three solutions:
1. Substitute wp-includes\js\jquery\ui\jquery.ui.core.min.js with the
newer version v1.8.24 from https://github.com/jquery/jquery-ui/blob/1-8-stable/ui/jquery.ui.core.jsThis doesnt unfortunately allow for an update to the WP User Frontend package to fix this.
2. Work out a code fix for WP User Frontend. Since this works for the standard admin editor this gives a starting point to work out such a solution.
3. Use a older version of WordPress (version?) or wait for a newer version of WordPress that includes an updated JQuery UI.
Cheers
The Professorhttps://www.ads-software.com/extend/plugins/wp-user-frontend/
- The topic ‘Insert/edit Link Dialog doesnt show’ is closed to new replies.