WordPress.org

Forums

WP 3.1 - Problem Insert/edit link Button (30 posts)

  1. DaDeliboy
    Member
    Posted 4 years ago #

    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...).

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    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.

  3. DaDeliboy
    Member
    Posted 4 years ago #

    Yes, I tried all this, does not work

  4. jojakim
    Member
    Posted 4 years ago #

    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.

  5. ObviousIdea
    Member
    Posted 4 years ago #

    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 ?

  6. davidsword
    Member
    Posted 4 years ago #

    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

  7. ObviousIdea
    Member
    Posted 4 years ago #

    so could we consider it is a bug from chrome or from wordpress ?

  8. vouchey
    Member
    Posted 4 years ago #

    - 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.

  9. davidsword
    Member
    Posted 4 years ago #

    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).

  10. vouchey
    Member
    Posted 4 years ago #

    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?

  11. davidsword
    Member
    Posted 4 years ago #

    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

  12. vouchey
    Member
    Posted 4 years ago #

    Thanks, I replaced the /wp-admin/includes directory, but still no dice.

    Arrgh.

  13. vouchey
    Member
    Posted 4 years ago #

    Well I fixed it by stepping down to WP3.0-RC3. Not sexy, but it works!

  14. Danny van Kooten
    Member
    Posted 3 years ago #

    @davidsword: You are a hero! Thanks. Noticed the wplink.js file missing, didn't discover that function yet. :))

  15. gnirsh
    Member
    Posted 3 years ago #

    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?

  16. davidsword
    Member
    Posted 3 years ago #

    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 );
  17. gnirsh
    Member
    Posted 3 years ago #

    Btw, I both have the RB internal links plugin, and the TinyMCE advanced plugin, but disabling both doesn't change anything.

  18. gnirsh
    Member
    Posted 3 years ago #

    that did the trick. Thanks so much.

  19. Danny van Kooten
    Member
    Posted 3 years ago #

    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.)

  20. c
    Member
    Posted 3 years ago #

    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?

  21. c
    Member
    Posted 3 years ago #

    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.

  22. Danny van Kooten
    Member
    Posted 3 years ago #

    Igneous, probably a JavaScript error somewhere.. Do you have some kind of debugger installed, what's it saying?

  23. NZ Yogi
    Member
    Posted 3 years ago #

    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

  24. lsatdown
    Member
    Posted 3 years ago #

    I had the same issue, and it was to do with WP SEO plugin.

  25. NZ Yogi
    Member
    Posted 3 years ago #

    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.

  26. muzahistka
    Member
    Posted 3 years ago #

    TinyMCe does not help

  27. NZ Yogi
    Member
    Posted 3 years ago #

    You sure you installed The TinyMCE Advanced Plugin?

  28. muzahistka
    Member
    Posted 3 years ago #

    yep, I had installed from the beginning. It doesn't resolve the problem

  29. John Sundberg
    Member
    Posted 3 years ago #

    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.

  30. digitaleagle
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic