Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Embedded CSS
MRock
I want to enable a user to embed a block of CSS code on a page to change the default CSS that the page links to. What is the best way to do this? I was told to modify the default embed html component that gets installed with Teamsite. This component uses JavaScript to strip out the tags that TinyMCE inserts in the HTML. However, when I use it, I can't copy in CSS because the TinyMCE editor wants manual breaks between each line. Also, when I tested it in a browser with JavaScript disabled, the CSS didn't get applied. I need to be able to do the same thing with JavaScript blocks of code.
Find more posts tagged with
Comments
Rick Poulin
You trust your users to write CSS and JS that won't break the page?
Given the lack of non-RTE textareas in SitePub components, your best bet is to have them create .css/.js files outside of TeamSite, upload them, and then reference them on the specific page (via its page properties).