BUGFIX: show flash icon and box if flash file exists. MINOR: created a default editor.css file which has base css styles for the CMS.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70691 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2009-01-23 05:18:11 +00:00 committed by Sam Minnee
parent c15b86a86e
commit 5759314893
4 changed files with 23 additions and 3 deletions

View File

@ -179,7 +179,7 @@ class PageComment_Controller extends Controller {
}
}
function approve() {
function approve() {
if(Permission::check('CMS_ACCESS_CMSMain')) {
$comment = DataObject::get_by_id("PageComment", $this->urlParams['ID']);
$comment->NeedsModeration = false;

View File

@ -136,6 +136,7 @@
.right form textarea {
font-size: 12px;
}
.right form .mceEditor select.mceNativeListBox {
background: #fff;
padding-top: 2px;
@ -169,7 +170,7 @@
.right form .mceEditor select.mceNativeListBox {
background: #fff;
}
.right form input.checkbox,
.right form .optionset input,
.right form .htmleditor select,

19
css/editor.css Normal file
View File

@ -0,0 +1,19 @@
/**
* Default Editor Styles for the CMS
*/
.typography .mceItemFlash {
border: 1px dotted #f00;
}
body.mceContentBody {
min-height: 200px;
font-size: 62.5%;
}
body.mceContentBody a.broken {
background-color: #FF7B71;
border: 1px red solid;
color: #fff;
padding: 1px;
text-decoration: underline;
}

View File

@ -14,7 +14,7 @@ if((typeof tinyMCE != 'undefined')) {
width: "100%",
auto_resize : false,
theme : "advanced",
content_css : "$ContentCSS",
content_css : "cms/css/editor.css, $ContentCSS",
body_class : 'typography',
document_base_url: "$BaseURL",
urlconverter_callback : "nullConverter",