Using WYSIWYG module and CKEditor the Linkit button no longer appears after updating to 7.x-3.3 from 7.x-3.1.

Reconfiguring my WYSIWYG profile to add in the standard link button results in two buttons, one linkit button that works fine (with a new icon), and the standard link button. But disabling the standard link button also removes the linkit button.

I don't think this is a duplicate of #2381983: Missing Icon since clicking where the linkit button used to be doesn't do anything.

Was the ability to have a linkit button only removed at some point? I don't see anything regarding that in the notes for 3.2 or 3.3.

Comments

anon’s picture

I can't reproduce this on any ofl the sites I have updated this on.

Try to clear the site cache, and your browser cache and see if that helps.

rgx’s picture

I had a similar situation. The linkit button did nothing. Uninstall / Reinstalled and recreate the profiles worked for me.

anon’s picture

"The linkit button did nothing". You still had in in the ckeditor toolbar then?

I have tried to reproduce this now with both ckeditor module, and with wysiwyg, but I can't reproduce this.

Would be grate if you could test this on a clean installation of drupal.

rob c’s picture

I can reproduce this. Latest media 2.x, wysiwyg, linkit 3.1, then update to 3.3 and presto, gone. Everything is in features, might be related.

anon’s picture

Then its something with media or features.

rob c’s picture

Title: Upgrading from 7.x-3.1 to 7.x-3.3 removes linkit button from WYSIWYG » Upgrading from 7.x-3.1 to 7.x-3.3 removes linkit button group and adds linkit to 'link'

When i enable 'link' in wysiwyg the linkit button is back.

It's grouped with the link item in the new version, no idea why this changed, now you have to enable both link and linkit in wysiwyg, this is wrong, this is the real issue.

I *only* want to have 'linkit' enabled and no 'link' at all.

anon’s picture

Thanks for that information!!

I think I know how to solve this now.

anon’s picture

@jeni_dc and @rgx, does the comment in #6 applys to you aswell?

jeni_dc’s picture

I haven't had a chance to do any further testing since posting the issue, but yeah, the same as #6 does apply to me. I had mentioned in the original issue that reconfiguring the WYSIWYG profile to include the link button brought it back, but disabling the standard link button removed the linkit button, sorry if that wasn't clear.

anon’s picture

@Rob C, what version of ckeditor are you using?

anon’s picture

About the comment in #2: Sound like the button still was there, but that the profile could not be loaded. That is because no editor is selected in the profile when updating.

anon’s picture

@Jeni_dc, what version of ckeditor are you using?

anon’s picture

Ah! Think I know it now.

You all have "Use default toolbar button grouping" under "Editor appearance" checked in the wysiwyg profile, right?

rob c’s picture

anon! That's spot-on. Yes i do have this selected. When i uncheck this, it renders a new group at the right side with table/div/linkit/media buttons. That's also fine for now, but not expected (and not always desired/required).

Ckeditor 4.3.0.d2184ac
Wysiwyg 7.x-2.x-dev (one of the latest commits on 2.x)

anon’s picture

The basic idea here was to place the Linkit button next to the unlink button when you have checked the default grouping toolbar.

I will see what I can do here..

rob c’s picture

Seems like the best option, when you add a link via linkit, you might still want to remove it.

Add this to the documentation as an upgrade note and you can wrap this up for me.

You might want to add some optional override if people really want to have this button in a solo group, but that's up for debate.

finn lewis’s picture

Hi all,

I'm seeing the same issue.

Drupal 7.34
WYSIWYG 7.x-2,x-dev
Libraries:
- CKEditor 4.4.6.08188c4 /
- TinyMCE 3.4.3.2

Upgrading to Linkit 7.x-3.3 breaks the linkit button.

I can replicate the behaviour in both CKEditor and TinyMCE, both via WYSIWYG module.

Any ideas for a quick fix? As this is a security release we are keen to apply it, but not at the expense of being able to link to content!

Many thanks,

Finn

anon’s picture

Read #14

finn lewis’s picture

Hi Anon,

the site I am working on used TinyMCE as the editor of choice, and the "Use default toolbar button grouping" is not an option for TinyMCE with WYSIWYG module.

I tested with CKEditor too, as others reported the issue with CKEditor, and I have tried both with and without the default toolbar option, with no joy.

I see this JS error in console output:

"Uncaught TypeError: Cannot read property 'edit-field-event-description-und-0-value' of undefined"

Many thanks,

Finn

anon’s picture

anon’s picture

Status: Active » Closed (outdated)