TinyMCE and formatting

LabKey Support Forum (Inactive)
TinyMCE and formatting awilson  2010-11-10 14:17
Status: Closed
 
Is there a way to prevent the tinyMCE from booting out scripted style content when toggling between visual and source mode? If i close it out and look at the view it is fine but if i toggle it will kick out what i have just created.

any suggestions?
 
 
newton responded:  2010-11-29 15:23
Hi.

Are you doing it by adding something like the following in source mode?

<style>
* {
    background-color: #ff6600;
}
 </style>

I was able to reproduce the issue you are describing by including the above, flipping to Visual mode and then saving (tinyMCE removes the <style> tag and comments out the css code).


I entered a ticket on this issue at https://www.labkey.org/issues/home/Developer/issues/details.view?issueId=11333

There is nothing you can do in the UI to make this work as far as I can tell.

I did find a potential fix for this as discussed in the ticket, but we need to see if there are any undesired side effects before applying it.

thanks!
 
georgesn responded:  2011-02-17 14:00
Hi Aaron, Sorry for the delay. If this is still important to you, can you please give us a sample of the syntax you're trying to use?

Thanks.