Roundcube Community Forum

 

URL in html editor

Started by kiim11, January 24, 2013, 02:46:06 AM

Previous topic - Next topic

kiim11

Is it possible to detect URL's(make them clickable) in html editor automaticly like in plain text editor, not using tags and URL button?

thx for answer

Drakon

Hi kiim11.

I think that this is not possible.

You need to code a event with shortcut (CTRL+L for example) on TinyMCE as this:

tinyMCE.init({
   ...
   setup : function(ed) {
      ed.onKeyUp.add(function(ed, e) {
          // check for [CRTL] + [L]
          if (e.keyCode == .....) {
            ed.execCommand('mceInsertLink');
      });
   }
});


Regards,

alec

there's "autolink" plugin for TinyMCE, you need to enable it in program/js/editor.js file.

Drakon


kiim11