07-27-2023, 12:27 AM
I'm using TinyMCE to provide users the capability of simple text formatting (bold, italics, lists) on a textarea form field. Everthing is working properly except that in Internet Explorer (8 but I've read it happens on earlier versions), when users type a URL (e.g. www.google.com) it is automatically converted into an HTML link in the TinyMCE editor as they type. This does not happen in Firefox (3). How can I prevent IE from doing this?
I've initialized TinyMCE with the following:
tinyMCE.init({
mode : "textareas",
theme : "simple",
convert_urls : false
});
But I don't think convert_urls is intended to affect the behavior I'm describing:
I tried:
function myCustomURLConverter(url, node, on_save) {
return url;
}
tinyMCE.init({
mode : "textareas",
theme : "simple",
urlconverter_callback : "myCustomURLConverter"
});
But similarly I think this is just a way to affect how/whether URLs are converted upon load/save, not to prevent them from being converted to links as users type:
The issue I'm trying to fix is described in at least a couple of places:
Has anyone seen this before or have any suggestions on how to fix it? The TinyMCE code-base is pretty big and difficult to trace so I was hoping someone could help me isolate the issue a bit.
I've initialized TinyMCE with the following:
tinyMCE.init({
mode : "textareas",
theme : "simple",
convert_urls : false
});
But I don't think convert_urls is intended to affect the behavior I'm describing:
[To see links please register here]
I tried:
function myCustomURLConverter(url, node, on_save) {
return url;
}
tinyMCE.init({
mode : "textareas",
theme : "simple",
urlconverter_callback : "myCustomURLConverter"
});
But similarly I think this is just a way to affect how/whether URLs are converted upon load/save, not to prevent them from being converted to links as users type:
[To see links please register here]
The issue I'm trying to fix is described in at least a couple of places:
[To see links please register here]
(third post, by tommya)[To see links please register here]
Has anyone seen this before or have any suggestions on how to fix it? The TinyMCE code-base is pretty big and difficult to trace so I was hoping someone could help me isolate the issue a bit.