Jump to content

Edit TinyMCE HTML for PrettyPhoto tag


Stewrat
 Share

Recommended Posts

Hi.

I am trying to add the tag rel="prettyPhoto" whilst editing a field with TinyMCE.

For example -

<a href="image1.jpg" rel="prettyPhoto"><img src="image1_th.jpg" alt="text" border="0" /></a>

However the rel="prettyPhoto" is getting stripped out. when I save the page.

I am hoping that I can modify the TinyMCE advanced settings somewhere but so far have had no luck.

Any help would be appreciated.

Many thanks,

Stewart

Link to comment
Share on other sites

Hi Stewart and welcome to the forums;

It's located in the field settings; find fieldset 'Inputfield settings' for your TinyMCE field. In this fieldset, there should (closed) fieldset 'TinyMCE Advanced configuration'.

In that, find 'valid_elements' fieldset (should be last) – there is TinyMCE valid elements string. second in this coma separated list is a tag, just add 'rel' in the array of allowed attributes.

Adam

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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