I'm trying get linkit to work, however the "Insert link" button is disabled.

As seen below in the attached image, the button is un-clickable.

Upon reviewing the source, the button is disabled. Any idea how to fix this?

<input class="linkit-insert linkit-insert-processed form-button-disabled" type="submit" id="edit-linkit-insert" name="op" value="Insert link" disabled="">
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Kirk’s picture

Issue summary: View changes
anon’s picture

I have never seen this before. Could it be you template that is preprocessing the form or something? Does it work if you change to a default theme?

gmclelland’s picture

This is happening to me as well. I can't paste any link into the link field because it is disabled. If I start typing in that field the "Insert Link" button becomes enabled, but I still can't paste into the link field.

I'm using it with a Body field that uses TinyMce + WYSIWYG module. I'm using the default seven theme.

gmclelland’s picture

Disregard my comment. It is working fine for me.

anon’s picture

Status: Active » Closed (cannot reproduce)
shenzhuxi’s picture

Version: 7.x-3.x-dev » 7.x-3.1
Component: User interface » Code
Category: Support request » Bug report
Status: Closed (cannot reproduce) » Active
Issue tags: +paste

It happens when you use mouse right click to paste the link without any keyboard input. The button works fine if you use keyboard to paste

peter.walter’s picture

FileSize
454 bytes

Hopefully this patch fixes the problem by changing the validation handler attaching to .change instead of .keyup.

peter.walter’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 7: linkit-input-validation-2128665-7.patch, failed testing.

The last submitted patch, 7: linkit-input-validation-2128665-7.patch, failed testing.

anon’s picture

anon’s picture

anon’s picture

Status: Needs work » Fixed
$('#edit-linkit-path', context).bind('keyup paste input propertychange', function(){
      Drupal.linkit.requiredFieldsValidation();
    });

solves it in all browsers.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.