The Insert/edit link button in the tinyMCE zone does not work: the pop-up window does not appear. However, all the other tinyMCE button work (bold, italic, etc...).
The Insert/edit link button in the tinyMCE zone does not work: the pop-up window does not appear. However, all the other tinyMCE button work (bold, italic, etc...).
Have you tried:
- checking through the solutions suggested in Troubleshooting WordPress 3.1 - Master List
- deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
- switching to the Twenty Ten theme to rule out any theme-specific problems.
- resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.
Yes, I tried all this, does not work
I encounter the same issue.
Constructor Theme with plugings: Cufon, NextGengallery, e-commerce, audio link player, Youtube Embed.
I'd hate to do major experiments now since the site has to stay live.
For now my solution is to use the simple link button in html editing mode.
I confirm the same issue with the Visual mode for my WordPress 3.1 / http://www.obviousidea.com
but I also see it is browser dependant, it seems to work on firefox 3.6 but not with IE9 RC or Chrome.
Can you confirm which browser version you are using ?
I was having the same problem: not in the posts/page screens, but in my plugin's submenu_page, in wordpress 3.1 in latest chrome,.
I looked at the dif between the html in the posts/pages screens and my plugin page and I was misssing a hidden form for the links: (<form id="wp-link" tabindex="-1">) with the new "Enter Link" dialog, then I found this function:
wp_link_dialog(); (in wp-admin/includes/internal-linking.php) which generates the output of the hidden insert-link form
so I put it into my plugin with:
add_action( 'admin_print_footer_scripts', 'wp_tiny_mce_preload_dialogs', 30 );
add_action( 'tiny_mce_preload_dialogs', 'wp_link_dialog', 30 );
& it fixed it, link buttons work now
so could we consider it is a bug from chrome or from wordpress ?
- I tried turning off all plugins and still had the problem. I did it using the phpMySQL method just to be sure.
- I tried reinstalling WP 3.1
- I'd heard that maybe it was a jQuery problem so I swapped in the jQuery code from WP3.0 under /wp-includes/js/jquery but that made no difference either.
Interestingly, another instance of WP3.1 that I'm running with multi-site turned on (and the exact same plugins) does not have this problem.
I have the problems with the link button with both Chrome and FF.
on your page with the problem editor button, in your browsers "view page source"
ctrl+f the snippet "<form id="wp-link""
if it's there - it's for sure a jquery problem, and could be because of a non-3.1 compat theme (& not a plugin).
Yep. There it was.
I saw your post above and looked for /wp-admin/includes/internal-linking.php but couldn't find that file.
Any suggestions on what to do?
if you're missing /wp-admin/includes/internal-linking.php that's most likely you're issue, it contains the function that prints the linking-form that tinymce+jquery pops-up. directly adding the file may solve it, but if you're missing that file you may be missing others, so a fresh copy of 3.1 may be needed
http://phpxref.ftwr.co.uk/wordpress/wp-admin/includes/internal-linking.php.source.html
Thanks, I replaced the /wp-admin/includes directory, but still no dice.
Arrgh.
Well I fixed it by stepping down to WP3.0-RC3. Not sexy, but it works!
@davidsword: You are a hero! Thanks. Noticed the wplink.js file missing, didn't discover that function yet. :))
davidsword, can you help me out at all?
I have the same problem as those above. I do have the internal-linking.php file. But when viewing source on the problem pages, I don't have the "form id="wp-link"" code.
How can I get it added?
it's been a while, but i think i added this to my functions.php
add_action( 'admin_print_footer_scripts', 'wp_tiny_mce_preload_dialogs', 30 );
add_action( 'tiny_mce_preload_dialogs', 'wp_link_dialog', 30 );Btw, I both have the RB internal links plugin, and the TinyMCE advanced plugin, but disabling both doesn't change anything.
that did the trick. Thanks so much.
Actually you only need to call wp_tiny_mce_preload_dialogs once. WP link dialog is already hooked to tiny_mce_preload_dialogs so hooking it again will result in two forms that are exactly the same.
Check out using TinyMCE editor in your WordPress plugin for more information on how to properly load all the necessary files into your plugin. (Shameless self-promotion, I know. I hope it helps some people though.)
This is a weird issue for me. It has happened since I upgraded to 3.12 and it happens when I try to use it most of the time. Ill highlight text, try to link to it using the insert link button, and when I click insert it brings me back to a blank new post screen. THat new post screen has a weird link that says this though:
http://www.mysite.com/wp-admin/post-new.php?_ajax_linking_nonce=865fd3788a&wp-link-submit=Add+Link
What do I need to do to fix this?
I'm going to overwrite most files for the 3.13 upgrade to see if that fixes it. I cant figure this out and it's annoying.
Igneous, probably a JavaScript error somewhere.. Do you have some kind of debugger installed, what's it saying?
Hey Guys -this may help as I was having the same problem as you. I had a plugin installed called TinyMCE Advanced. In the Advance Options on this plugin (near the bottom of the settings page), you can select Advanced Link. Enabling this overwrites the internal links feature in WordPress 3.1 and newer.
This solved my problem with the insert / edit link. The main reason why I use this plugin is that it has some easy insert table options.
Hope that helps some of you.
NZ Yogi
I had the same issue, and it was to do with WP SEO plugin.
By the way, what I meant to say in my previous post is that I "have" a plugin - TinyMCE Installed. Thi splugin solved the problem (didn't create it). So if you have the insert / edit link problem try installing TinyMCE Advanced and check the Advanced Link Option at the bottom og the settings page - it just may help and save hours of struggling with code to find a solution.
TinyMCe does not help
You sure you installed The TinyMCE Advanced Plugin?
yep, I had installed from the beginning. It doesn't resolve the problem
I was having this issue on a new WordPress 3.2.1 install, and what finally worked for me was to download and extract a fresh copy of 3.2.1, and then FTP the contents of wp-includes to the server and replace the contents of wp-includes.
I am having this issue. I have 3.2.1.
I my javascript console, I see this error message:
Object [object Object] has no method 'wpdialog'
I have upgraded WordPress a number of times. Unfortunately, I don't have my original version number, but my original install was 1/26/2011. I just did a fresh install, and I don't have this problem.
I installed the same plugins in my fresh install that I have in my other one, and the link button still works. I copied the wp-includes from my fresh install to my old install, and that didn't fix the old install. So, I am still looking...
The buttons on the TinyMCE Editor look slightly different. I am wondering if I can update the TinyMCE editor for that.
This topic has been closed to new replies.