I'm a new user to Drupal, so forgive me if my question reveals just how much of a greenhorn I am ...

In any case, I installed the TinyMCE module soon after installng Drupal (4.7.1), and began using exclusively while I learned how to use Drupal. One thing I liked about it as I worked with it is that it seemed to auto-convert any URL I typed into it into an http link to the relevant site on the Internet.

Now, however, after about 2-3 days of relatively intense testing, I suddenly noticed that TinyMCE is no longer auto-converting URLs to links. Can anyone help me understand why this might be?

As a bit of background, I am running Drupal on a Windows XP system. I have TinyMCE set up so that it uses the CSS from the current theme (but switching to the TinyMCE CSS didn't seem to solve the problem). I also have on the switch to verify HTML, but all other clean up is turned off (and playing with these settings didn't seem to solve the problem either). And I have followed the advice in the Readme file and created a new "Rich text editor" input format that's associated with TinyMCE.

One other potentially relevant thing that I've done is choose a custom set of buttons to be included in the toolbar, rather than just going with the buttons that were there originally.

Unfortunately, I can't say when exactly this "problem" developed. I have not done any editing of modules or core code, if people are wondering, nor have I done any changes to any CSS files (except for a change to the content font-size coding in the TinyMCE CSS file).

Any ideas / suggestions / solutions!

Thanks!

Comments

scrypter’s picture

Probably need to use the full html format as some html tags get lost with filtered. This may be the problem.

www.scryptik.com - Javascript editor with syntax error checking

www.purpleoar.co.nz/scryptik - Javascript editor with syntax error checking
www.purpleoar.co.nz - Web development, Drupal consultancy

bsimple’s picture

... this doesn't do the trick. TinyMCE still fails to do the URL conversion while one is editing, and URL's don't get converted once the text has been submitted.

But thanks for the suggestion.

shayne-1’s picture

Have you tried using the Urlfilter module http://drupal.org/project/urlfilter ? It works well for this purpose when the user's content input filter is set to Filtered HTML.

The default target of the links it produces is set to parent, but you can mod it to target="blank" in the module's $match lines.

Is this what you're looking for?

bsimple’s picture

I installed the URL filtering module, kept all input filtering off when TinyMCE is in use *except* for URL filtering. The result: URLs in the text show as links in the text after it's been submitted.

However, this doesn't revert TinyMCE back to the behavior I recall it having when I first started using it ... that is, it doesn't auto-substitute links for URLs while you're still editing the text in TinyMCE. This solution is almost as good, but not quite there.

I'm guessing, by the way, that I can get the original functionality back if I eliminate the use of the customized selection of toolbar buttons. I suspect that using the custom list of buttons somehow turned off the auto-conversion of URLs to links. However, after a lot of time invested in this subject, I don't have the patience to check this out by, for example, doing a fresh install of the module.

In any case, many thanks for the suggestion. It's very helpful.