Jump to content

Insert email in editor?


Genestoy

Recommended Posts

Posted

Just realized there is no button in the editor to insert an email link in a topic to open the users email client, there used to be in older versions. How do I get a button to do this?

Thanks

Posted

2 options then:

  1. "You" educate your users to do that (it's actually REALLY easy, as you can see, so don't assume they won't know)
  2. or make them a custom button via the Editor's 'Add Button' functionality - you only have one option that you can add, so make it the email they input - and then add the button to your toolbar.
Posted

I would go with option 2 as all my members are elderly - can you tell what to put in the code box to do that? Every time I enter the mailto: it ends up behind the email address so I am doing something wrong.

Thanks again for your help!

Posted

Got the mailto to work after adding another button but after the address is added in the editor I can't type anything behind it without it adding to the "Click to email", nothing I add to the end of the code below ends the link - any ideas?

Thanks

 

 

button.png

Posted

The world is your lobster.....

<a href="mailto:{option}">Click to email</a> (add a space after the closing tag)

or

<a href="mailto:{option}">Click to email</a>&nbsp;

or

<p><a href="mailto:{option}">Click to email</a></p>

or

<a href="mailto:{option}">Click to email</a><br>
Posted

Yes, I had tried all of those previously before posting but they all make the email link on the next line below the sentence text not next to it. Just thought somebody might have come up with a better solution.  Guess it must be a bug with CKE which does not surprise me :mad:

Thanks again for you help

Posted

Ah...misread your comment earlier....the above should work too if you put the space or &nbsp; before the <a> tag as well, as it gives you a target to click and then type without it going inside the link.

Your 'better solution' would be for you to develop your own full CKEDITOR plugin.

Posted

Strange, now it is working just fine with a space after the code. I know what you mean about developing my own editor, I resisted upgrading a LONG time ago when IPS started using the CKE editor just because of that editor but at some point you have to upgrade.

Thanks Nathan!

Posted

CKEditor (version 4) has a "link type" dropdown on the link button:

image.png.573c6fd2ec74a3ff40f8cc192f678670.png

If I remember correctly, there are settings in the ckeditor config.js file that control the "advanced" options on the insert link and insert image menus...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...