Stewrat Posted October 21, 2011 Share Posted October 21, 2011 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 More sharing options...
Adam Kiss Posted October 21, 2011 Share Posted October 21, 2011 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 More sharing options...
Stewrat Posted October 24, 2011 Author Share Posted October 24, 2011 Excellent! I knew it went in there somewhere. Much appreciated, it now works a treat. Stewart Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now