Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Content Editor Discussions /

Forum for content editors and CMS users.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

HTML Editor Striping Code (jQuery)


Reply


1211 Views

Avatar
plushtoy

Community Member, 10 Posts

29 November 2010 at 11:55am

Edited: 29/11/2010 11:57am

Hi There,

This topic has been raised before but I have been unable to resolve based upon recent postings.

I have a simple tooltip jQuery script that requires a Title tag within a Div.

<div id="cloud" class="tTip" title="Lorem ipsum <br/><br/><b>Name</b>"><img src="image.jpg"/></div>

Updated _config.php

HtmlEditorConfig::get('cms')->setOption('verify_html', 'false'); // turn off html validation

Updated tinymce.template.js

valid_elements :
-div[title|id|dir|class|align],

extended_valid_elements :
"div[id|title]"

If anyone knows how to resolve this issue, I would appreciate any help that you can give.

Thanks!
plushtoy