Is there way to prepend 'http://' to URL if it's not there while adding URL with Insert Link in TinyMCE?
相关问题
- Angular RxJS mergeMap types
- Reference for inserted element through execCommand
- Google Apps Script: testing doPost() with cURL
- How to instantiate Http service in main.ts manuall
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
相关文章
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- Is a unicode user agent legal inside an HTTP heade
- git: retry if http request failed
-
TinyMCE: How do I prevent `
- Flutter - http.get fails on macos build target: Co
- C# HttpClient.SendAsync always returns 404 but URL
- Response body is null, status is 200
- Prevent $anchorScroll from modifying the url
in link.js, find "if (!f.href.value)"
add an "else" clause
** remember that you did that in case you update your tinymce component!
I have achieved this by prepopulating the field value with 'http://' in the tinymce insertLink.aspx file.
value="http://"
For that you would need to copy the tinymce Insert Link plugin, rename it, add the necessary code to it (the "http"-Adding) and use it as your own plugin.
EDIT: Ok, here is an example (using jQuery):
I was facing this problem as well with version 4.x. I discovered that the
link
plugin supports an option that prompts the user to add the protocol. But unfortunately it's not mentioned in the documentation, it's only documented in the changelog so I would imagine this is widely unknown.