Commit 5f35103a authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Attach #maincontent to the body rather than the html tag; Add css3...

Attach #maincontent to the body rather than the html tag; Add css3 border-radius in addition to -moz and -webkit
parent dbeb5374
......@@ -122,6 +122,7 @@ WDN.loadJS("jquery.tinymce.js",function () {
<p>
This is some example text that you can edit inside the <strong>TinyMCE editor</strong>.
</p>
<div class="zenbox"><h3>zenbox title</h3>this is text in a zenbox</div>
<p>
Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros.
</p>
......
......@@ -48,9 +48,9 @@ Unl.hasParentNodeWithClass = function(childNode, parentClass) {
ed.onBeforeSetContent.add(function(ed, o) {
ed.dom.loadCSS("http://www.unl.edu/wdn/templates_3.0/css/all.css");
ed.getBody().className += ' fixed';
//ed.getBody().style.fontSize = 'inherit';
ed.getBody().parentNode.id = 'maincontent';
//ed.getBody().parentNode.className = 'tinyMceEditor';
//ed.getBody().style.fontSize = 'inherit'; //Throws an error in IE - inherit not supported
ed.getBody().id = 'maincontent';
ed.getBody().parentNode.className = 'tinyMceEditor';
});
ed.onPostProcess.add(function(ed, o) {
......
......@@ -66,18 +66,20 @@ scrollbar-track-color:#F5F5F5;
}
/* UNL UI helpers for tinymce */
#maincontent body {
width: 940px;
margin: 0 auto !important;
width:940px;
margin:0 auto !important;
}
#maincontent div.zenboxsolid, #maincontent div.zenboxfixed, #maincontent div.zenboxfeature, #maincontent div.zenbox,
#maincontent div.zenboxsolid.bright, #maincontent div.zenboxfixed.bright, #maincontent div.zenboxfeature.bright, #maincontent div.zenbox.bright {
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
}
#maincontent div.zenboxsolid h3:first-of-type, #maincontent div.zenboxfixed h3:first-of-type, #maincontent div.zenboxfeature h3:first-of-type, #maincontent div.zenbox h3:first-of-type {
-moz-border-radius:5px 5px 0px 0px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
border-radius:5px 5px 0px 0px;
-moz-border-radius:5px 5px 0px 0px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
/* UI tweaks not visible in rendered page to help our users */
.tinyMceEditor .col, .tinyMceEditor .one_col, .tinyMceEditor .two_col, .tinyMceEditor .three_col {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment