Add rel="nofollow" option to tinyMCE

6 posts by 3 authors in: Forums > CMS Builder
Last Post: July 20, 2016   (RSS)

By Mikey - March 6, 2016

Anyone know how to add a feature to tinyMCE to provide a dropdown list or checkbox for assigning "nofollow" to links to external websites?

Thanks Zicky

By Damon - March 7, 2016 - edited: March 7, 2016

Hi Zicky,

One way to add an option to add rel="no follow" to links is to add the Tiny MCE WYSIWYG editor advanced link plugin

This would allow you to choose to have it on some links but not others. Attached is a screenshot of what it looks like.

As you will see, it gives the user lots and lots of options.

If this looks like it will work for you, let me know and I can provide the steps for adding it.

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Attachments:

advanced_link_options.png 64K

By Mikey - March 8, 2016

Thanks for the help Damon - got it working.

Zicky

By Damon - March 9, 2016

Awesome. Good to hear. Thanks for the update.

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Damon - July 20, 2016

Hi,

Here are the steps. 

Adding Advanced Link Plugin to TinyMCE WYSIWYG Editor.

1. Copy the /cmsb/lib/wysiwyg.php file and save as wysiwyg_custom.php. This is the file you will make changes to. It won't be overwritten with future upgrades.

2. In the wysiwyg_custom.php file, on line 19, change this:

'plugins' => 'inlinepopups,contextmenu,table,fullscreen,paste,media,spellchecker,lists',

to this

'plugins' => 'inlinepopups,contextmenu,table,fullscreen,paste,media,spellchecker,lists,advlink',

Next, on line 69, change this:

plugins: "inlinepopups,contextmenu,table,fullscreen,paste,media,spellchecker,lists",

to this:

plugins: "inlinepopups,contextmenu,table,fullscreen,paste,media,spellchecker,lists,advlink",



3. Check that in your /cmsb/3rdParty/tiny_mce/plugins/ folder to see if you have a /advlink/ folder which includes all the Advanced Link options. If you don't have it, it download and unzip the attached advlink.zip and put in the the /cmsb/3rdParty/tiny_mce/plugins/ folder.

4. Upload the new wysiwyg_custom.php file to the site. Upload the /advlink/ folder to your CMS Builder installation.

5. Clear your browser cache and login to CMS Builder to see the new link options.

Let me know if you have any questions about the steps.

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Attachments:

advlink.zip 13K