Jump to:

513 Posts in 209 Topics by 259 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » HTML Editor Striping Code (jQuery)

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 1044 Views
  • plushtoy
    Avatar
    Community Member
    10 Posts

    HTML Editor Striping Code (jQuery) Link to this post

    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

    1044 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.