Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#45255 closed defect (bug) (worksforme)

WYSIWYG EDITOR - writing a word, marking it for href then continuing problem

Reported by: panmannsam's profile panmannsam Owned by:
Milestone: Priority: normal
Severity: minor Version: 5.0
Component: Editor Keywords:
Focuses: Cc:

Description

Hello,

Firstly, thank you for providing and patching WordPress, which is far more advanced than what I was able to do when writing my own CMS from scratch. I am now a truly thankful user but my days of programming has come to a pause or end, so I post an issue hoping for discussion. If there is consensus for the validity of the problem, perhaps I can find time to attempt a fix myself.

As a user, during writing a post in the wysiwyg editor, I find a word I wish to hyperlink, I pause writing, mark the word and paste or fill in the URL in the popup. I am surprised that when I click space to continue, I continue writing inside the link.

I suggest that hitting space ends the link and my writing continues outside the link. Bear in mind this is a bug as I perceive it and it might not reflect the standard user. I do however consider that me remembering this and pressing space after the word then marking the word and not the space is lowering the quality of the editor.

Change History (3)

#1 @Joen
6 years ago

  • Keywords close added

Thank you for your ticket, and thank you for the feedback!

If the link field was only for hyperlinks, this seems like it would be a nice enhancement. However as seen in this GIF, the input field is also for searching among your existing posts, as such it needs to support spaces: https://cloudup.com/cjRxrPlldKW

However there are two other ways to quickly turn something into a link.

  1. Copy a link from somewhere, then select text, then paste. Done. The text isn't replaced with the link, it's linked. No need to press the link button first.
  2. If you do prefer to use the link dialog, when you're done typing the link, press first Tab, then Space, and you're done.

Both shown in this GIF: https://cloudup.com/cxbOljGX7oy

Thanks for the ticket!

#2 @lonelyvegan
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
  • Type changed from defect (bug) to feature request

Thanks for the ticket! As Joen explained: that link field can also be used to search for posts so closing the link panel with a space won't work. So I'm closing this as a won't fix because we already use space in this UI.

#3 @ocean90
6 years ago

  • Keywords close removed
  • Resolution changed from wontfix to worksforme
  • Type changed from feature request to defect (bug)

This report is actually about the link boundary feature which was introduced in WordPress 4.8. To "escape" the link you only have to move the cursor one more time to the left/right.

Note: See TracTickets for help on using tickets.