Tiny MCE: how do you add hyperlink options in the menu?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Tiny MCE: how do you add hyperlink options in the menu?

Post by simonmlewis »

We are using this in the header:

Code: Select all

<script type="text/javascript" src="/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: '#mytextareaid',
menubar : false,
});
</script>
I'd like to learn how to add a URL link button, so the folks can highlight a set of text, click a button and pop in a URL.
There is a lot online, but it's quite confusing. I'm sure it's as easy as entering another row into this script list.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Tiny MCE: how do you add hyperlink options in the menu?

Post by Celauran »

Make sure you've included the link plugin, then just add link and unlink buttons to your toolbar.
Post Reply