Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plone 4 removes html attributes from a script tag no matter what

Tags:

html

plone

I've disabled the safe_html portal transform completely (/portal_transforms/safe_html/manage_main), as well turned off all the filtering in the html filtering control panel (/@@filter-controlpanel).

But still, if I try to enter something like this into the tinymce editor html view:

<script type="IN/MemberProfile" data-id="http://www.linkedin.com/in/mostmedia" data-format="inline"></script>

After saving it becomes:

<script type="IN/MemberProfile"></script>

Is there anyplace else I should be looking?

like image 457
Robert Moskal Avatar asked Oct 01 '13 16:10

Robert Moskal


1 Answers

Adding <script /> tags in TinyMCE with all attributes intact works for me on a fresh Plone 4.3.2 site if I do the following:

  1. Go to /portal_transforms/safe_html/manage_main.
  2. Remove script from nasty_tags.
  3. Add script to valid_tags.
  4. Restart Zope to clear the object cache.
like image 82
Dan Jacka Avatar answered Oct 29 '22 17:10

Dan Jacka