WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#27976 closed defect (bug) (wontfix)

TinyMCE no longer uses autolink when pasting URLs in IE

Reported by: jeremyfelt Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9
Component: TinyMCE Keywords:
Focuses: javascript Cc:

Description

IE 10, Windows 7.

Through WordPress 3.8.3, and then through changeset [27060], a URL pasted in the editor window in IE would automatically be converted to a link. In [27060], autolinking is explicitly disabled with a note for it to be reenabled with the TinyMCE autolink plugin:

Disables the autolinking in IE 9+ this is then re-enabled by the autolink plugin.

It does not appear that the autolink plugin was ever enabled after this changeset.

I'm not entirely certain if it is our intention to enable autolink by default, though it sounds like this is a feature IE users are familiar with.

Change History (2)

#1 @azaozz
7 years ago

Yes, WordPress doesn't include TinyMCE's 'autolink' plugin by default.

I believe this was done to normalize the behavior in all browsers. We can re-enable autolinking in IE, would break WP's auto-embed though. Something like this that runs on editor.init should do it:

if ( tinymce.Env.ie ) {
  try {
    editor.getDoc().execCommand( 'AutoUrlDetect', false, true );
  } catch (ex) {
    // Ignore
  }
}
Last edited 7 years ago by azaozz (previous) (diff)

#2 @iseulde
6 years ago

  • Focuses javascript added
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

No traction or similar reports. Also only happened in IE and makes sense to normalise the behaviour. Links have never been autolinked for other users and it doesn't make sense to re-enable just for IE.

Note: See TracTickets for help on using tickets.