Ticket #1691 (closed Bug: fixed)

Opened 2 years ago

Last modified 23 months ago

Safari: new links do not appear in editor unless text is made into a link

Reported by: designfu Owned by: fredck
Priority: Normal Milestone: Safari Compatibility
Component: UI : Dialogs Version: SVN (FCKeditor)
Keywords: Confirmed Safari Review+ Cc:

Description (last modified by martinkou) (diff)

Reproduce:

  • Visit any FCKeditor release, including nightly as of 12/20/07.
  • Do not select any text in the editor. (Does work when you select text)
  • Click Link button.
  • Enter any information.
  • Click OK.

Problem: Link does not appear.

System: Mac OS X/Intel, unmodified Safari 3.0.2.

Attachments

1691.patch Download (1.1 KB) - added by alfonsoml 23 months ago.
Proposed SVN patch
1691_2.patch Download (1.8 KB) - added by fredck 23 months ago.
1691_3.patch Download (1.8 KB) - added by fredck 23 months ago.
Fixed a typo in the comments

Change History

  Changed 2 years ago by w.olchawa

  • keywords Confirmed added

Confirmed in Safari 3.0.4 (523.15) using 2.5.1 and 2.5 SVN Build 18195 versions

  Changed 2 years ago by w.olchawa

  • keywords Safari added
  • summary changed from Safari 3: new links do not appear in editor unless text is made into a link to Safari: new links do not appear in editor unless text is made into a link

  Changed 2 years ago by martinkou

  • description modified (diff)

Tidied up the description.

  Changed 2 years ago by moonpool

Confirmed in Safari 3.1 also Any chance this bug can be fixed soon - or reclassified as High Priority? it seems like core functionality to me.

  Changed 23 months ago by alfonsoml

This is a regression of [1096]

  Changed 23 months ago by alfonsoml

  • owner set to alfonsoml
  • status changed from new to assigned

Changed 23 months ago by alfonsoml

Proposed SVN patch

  Changed 23 months ago by alfonsoml

  • keywords Review? added

follow-up: ↓ 11   Changed 23 months ago by fredck

  • keywords Review- added; Review? removed
  • owner changed from alfonsoml to fredck
  • status changed from assigned to new

I can't understand the (url != '#' ? url : '') in the patch... when is url supposed to be '#'?

Also, the real problem is that, only for Safari, FCK.CreateLink will create and return a link for a collapsed selection. All other browsers will not create that link. A side effect of it is that the link results for collapsed selections will be different on Safari. In that browser, anchors will have the "#", and e-mails will show the "mailto:" and search part of the link.

So, the correct solution would be making FCK.CreateLink behave in the same way for all browsers. I'll be attaching another patch proposal to try to achieve it.

Changed 23 months ago by fredck

Changed 23 months ago by fredck

Fixed a typo in the comments

  Changed 23 months ago by fredck

  • keywords Review+ added; Review- removed
  • status changed from new to assigned

  Changed 23 months ago by fredck

  • keywords Review? added; Review+ removed

Damned! I've used the wrong keyword... again... and again. Correcting it.

in reply to: ↑ 8   Changed 23 months ago by alfonsoml

  • keywords Review+ added; Review? removed

Replying to fredck:

I can't understand the (url != '#' ? url : '') in the patch... when is url supposed to be '#'?

From the anchor dialog, this function was called with url = '#', and this way it seemed to be an easy workaround (not a real solutio)

Also, the real problem is that, only for Safari, FCK.CreateLink will create and return a link for a collapsed selection. All other browsers will not create that link. A side effect of it is that the link results for collapsed selections will be different on Safari. In that browser, anchors will have the "#", and e-mails will show the "mailto:" and search part of the link.

Yes, I noticed it, and I tried to leave the browser create the link in that situation, although I wasn't really proud of the solution.

This one on the other side looks like it will solve all the problems as all the browsers (even future ones) will have the same behavior.

  Changed 23 months ago by fredck

  • status changed from assigned to closed
  • resolution set to fixed

Fixed with [1997]. Click here for more info about our SVN system.

Note: See TracTickets for help on using tickets.