Mark Fletcher
Mark Fletcher

Reputation: 761

TinyMCE autolink doesn't link if the link is the last text entered

Go to https://fiddle.tinymce.com, then paste in a link. Notice that the link is not autolinked unless you hit a space/newline/etc character. How can I ensure that a link like this is autolinked on form submit?

Upvotes: 2

Views: 1016

Answers (1)

pbuck
pbuck

Reputation: 4561

You can't. Not without coding your own version of the autolink plugin. The better result is to handle it on the server.

The provided plugin specifically looks for ')', space and Enter... It's not merely a paste issue either: just type in a URL without anything else and it will not autolink either.

The problem is, of course, the plugin has no reliable way to "know" you're finished typing/pasting a link.

Upvotes: 2

Related Questions