Opened 10 years ago

Closed 10 years ago

#1995 closed New Feature (duplicate)

[IE] Square brackets are added to external links.

Reported by: samuel Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version: FCKeditor 2.5.1
Keywords: Confirmed IE Cc:

Description

Mediawiki auto-converts hyperlinks in [ ] to be numbered links such as [1] and [2] if a link-name is not provided. Whereas any URL not encased within [ ] will be simply hyperlinking with the URL as the link name.

FCK editor converts a http://URL into a numbered link by default. Can the default be set to using the URL as the link name instead? This is much more intuitive than using numbered links.

Change History (7)

comment:1 Changed 10 years ago by Wojciech Olchawa

Resolution: invalid
Status: newclosed

Hi

Numbering links is a mediawiki issue so it would be hard to change it:

Check out http://meta.wikimedia.org/wiki/Help:Link#External_links for more information..

Thanks.

comment:2 Changed 10 years ago by samuel

Resolution: invalid
Status: closedreopened

I do not think this is a mediawiki issue. It's more how FCK handles the default treatment of an URL input. Just suggesting that this will enhance the usability of the FCKEditor by defaulting to something more relevant. I'll rephrase the situation for clarity:

With FCKEditor today there are 2 situations that happens today.

Scenario 1 : When you type a URL string http://url.url, it auto converts to wiki code as http://url.url. There is no default linkname provided and the auto insertion of the [ ] brackets caused this to result in a numbered link e.g. [1] based on wiki codings. Main reason - the lack of a linkname.

Scenario 2 : When you copy'n'paste a URL of http://url.url into fckeditor, the treatment is different again. It converts to http://url.url. It uses the URL as the linkname. This also converts to a numbered link e.g. [1] based on wiki codings. Main reason - linkname is the same as URL.

Suggestion General behaviour of users when insert URL strings into editors were expecting to see the URL being hyperlinked, with the URL being the linkname. Mediawiki supports that today by simply not encapsulating the URL in [ ] brackets. FCKeditors defaults to converting all links to numbered links by inserting the [ ] for every URL inserted or copy'n-pasted in. There is no way to control whether a user prefers the link to be numbered or to display the URL as the linkname.

Suggest to disable to auto-encapsulating of URL within [ ], and instead, under the triggered hyperlink pop-up window, create a checkbox or button for "Numbered link".

comment:3 in reply to:  2 Changed 10 years ago by samuel

Did some further testing. Behaviour for Scenario 2 is different when saved. Mediawiki does not convert a URL with Linkname being the same as URL into numbered links.

Suggestion still holds, as a potential new feature which allows better control of "numbered links" considering this is a rich text editor to potentially ease the non-techheads in using wikis. tx

Replying to junosque55:

I do not think this is a mediawiki issue. It's more how FCK handles the default treatment of an URL input. Just suggesting that this will enhance the usability of the FCKEditor by defaulting to something more relevant. I'll rephrase the situation for clarity:

With FCKEditor today there are 2 situations that happens today.

Scenario 1 : When you type a URL string http://url.url, it auto converts to wiki code as http://url.url. There is no default linkname provided and the auto insertion of the [ ] brackets caused this to result in a numbered link e.g. [1] based on wiki codings. Main reason - the lack of a linkname.

Scenario 2 : When you copy'n'paste a URL of http://url.url into fckeditor, the treatment is different again. It converts to http://url.url. It uses the URL as the linkname. This also converts to a numbered link e.g. [1] based on wiki codings. Main reason - linkname is the same as URL.

Suggestion General behaviour of users when insert URL strings into editors were expecting to see the URL being hyperlinked, with the URL being the linkname. Mediawiki supports that today by simply not encapsulating the URL in [ ] brackets. FCKeditors defaults to converting all links to numbered links by inserting the [ ] for every URL inserted or copy'n-pasted in. There is no way to control whether a user prefers the link to be numbered or to display the URL as the linkname.

Suggest to disable to auto-encapsulating of URL within [ ], and instead, under the triggered hyperlink pop-up window, create a checkbox or button for "Numbered link".

comment:4 Changed 10 years ago by Wojciech Olchawa

Component: GeneralProject : MediaWiki+FCKeditor
Keywords: Pending WorksForMe added
Version: FCKeditor 2.5.1

Hi again!

I have the results I would expect. If I type http://olawa.net manually no changes are made to the link upon save. (you may check it using our sandbox at:

http://mediawiki.fckeditor.net/index.php/Sandbox

If you manually add brackets then the links is shown like this [1] .

Pasting the link gives the expected behavior and the link isn't transformed as well so it's an expected behavior for me.

Could you please test your examples using the sandbox or view the examples I have provided there.

Thanks.

comment:5 in reply to:  4 Changed 10 years ago by samuel

Hi there,

Thank you for the attention.

I think the differing test results have been found. I've done 2 tests using IE and firefox respectively. The results for firefox are same as yours. IE on the other hand does not. You can view the test results on the sandbox.

In summary, IE seems to have a unique behaviour where the http:// link is converted upon carriage return or entry of a space character

Best Regards

Replying to w.olchawa:

Hi again!

I have the results I would expect. If I type http://olawa.net manually no changes are made to the link upon save. (you may check it using our sandbox at:

http://mediawiki.fckeditor.net/index.php/Sandbox

If you manually add brackets then the links is shown like this [1] .

Pasting the link gives the expected behavior and the link isn't transformed as well so it's an expected behavior for me.

Could you please test your examples using the sandbox or view the examples I have provided there.

Thanks.

comment:6 Changed 10 years ago by Wojciech Olchawa

Keywords: Confirmed IE added; Pending WorksForMe removed
Summary: Change default hyperlink to using URL as link name instead of numbered link.[IE] Square brackets are added to external links.

Hi again!

Ok so the main thing is that IE adds [] brackets to an inserted link but it should behave like FF2 does. A typed link http://test.com should remain the same and not to be transformed into [1] .

Thanks for investigating.

Confirmed in IE. Works in FF2.

comment:7 Changed 10 years ago by Wiktor Walc

Resolution: duplicate
Status: reopenedclosed

This issue has been fixed with [1864].

The real source of this problem has been described in #2072, so I'm marking this ticket as dup.

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy