plainblack.com
Username Password
search
Bookmark and Share
View All Tickets
html source editor  (#11992)
Issue

trying to insert this javascript code and the editor removes part of it on click done.

Trying to insert this:
<script type="text/javascript" src="/lib/cumple.js"></script>

and only show this:
<script type="text/javascript"  ></script>


 

on 7.6 (previous installed version version) works perfect, i try to insert in web demo of 7.10 and have the same result.

 

(sorry for my bad german)

Solution Summary
Comments
perlDreamer
0
1/10/2011 5:53 pm
This is not really a bug.  If you want to add Javascript to an asset, you should put it into the head tags for the Asset.

Alternately, if you really, really want it right there inline with the Asset's content, then you can follow the documentation for TinyMCE to change the configuration for the rich editor:

http://tinymce.moxiecode.com/wiki.php/TinyMCE_FAQ#TinyMCE_strip_away_attributes_or_tags_from_my_source.3F

In the Rich Editor asset, see the validElements property.  That is what you would like to change.
perlDreamer
0
1/10/2011 6:13 pm
I need to apologize. The default content manager's rich editor is set up to accept all tags, and it's not working.  We'll look into an upgrade of TinyMCE, or a different ruleset that addresses this problem.
perlDreamer
0
4/11/2011 5:11 pm
Updated TinyMCE to 3.4.2 in WebGUI version 7.10.14.  I tested the new version and it does not remove the SRC attribute from script tags.
Details
Ticket Status Resolved  
Rating0.0 
Submitted Bynelsonfx 
Date Submitted2010-12-14 
Assigned To unassigned  
Date Assigned2023-05-30 
Assigned By 
Severity Fatal (can't continue until this is resolved)  
What's the bug in? WebGUI Stable  
WebGUI / WRE Version 7.9.18-stable  
URLuse/bugs/tracker/11992
Keywords
Ticket History
4/11/2011
10:11 PM
Resolved perlDreamer
1/11/2011
12:13 AM
Pending perlDreamer
1/10/2011
11:53 PM
Resolved perlDreamer
12/14/2010
7:08 PM
Ticket created nelsonfx
© 2023 Plain Black Corporation | All Rights Reserved