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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Content Editor Discussions /

Forum for content editors and CMS users.

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

HTML Editor Striping Code (jQuery)


Go to End


2361 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