NCIOCPL / cgov-digital-platform

The Cancer.gov Digital Communications Platform
GNU General Public License v2.0
11 stars 33 forks source link

CK Editor issue - "This link has no URL" displaying when we select the last character on a line that ends with a link. #4088

Open santwuma opened 1 year ago

santwuma commented 1 year ago

"This link has no URL" displaying when you select the last character on a line that ends with a link. Please see Sarina's comment and suggestion on https://github.com/NCIOCPL/cgov-digital-platform/issues/3772

Steps for linking to a piece of internal content:

  1. Select the text that you want to link
  2. Start typing "What is liver cancer"
  3. Select that content item (see the screen-shot below)

Image

  1. It then display a link to "/node/" (see the screen-shot below) image

  2. Clicking the check mark makes the selected text a link. Click anywhere outside when you see the following:

image

I see the following on placing the cursor at the end of the line/selected text. image

navsunka commented 1 year ago

This is an existing issue with the linkit module. For now, we have to click on unlink after the URL is added to the text to get-rid of the issue we are seeing. we can track the below issue for the update.

linkit issue: https://www.drupal.org/project/linkit/issues/3364963