Skip to content

Commit

Permalink
BUGFIX: show flash icon and box if flash file exists. MINOR: created …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Will Rossiter authored and Sam Minnee committed Feb 2, 2011
1 parent c15b86a commit 5759314
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/sitefeatures/PageComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function deletecomment() {
}
}

function approve() {
function approve() {
if(Permission::check('CMS_ACCESS_CMSMain')) {
$comment = DataObject::get_by_id("PageComment", $this->urlParams['ID']);
$comment->NeedsModeration = false;
Expand Down
3 changes: 2 additions & 1 deletion css/cms_right.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
.right form textarea {
font-size: 12px;
}

.right form .mceEditor select.mceNativeListBox {
background: #fff;
padding-top: 2px;
Expand Down Expand Up @@ -169,7 +170,7 @@
.right form .mceEditor select.mceNativeListBox {
background: #fff;
}

.right form input.checkbox,
.right form .optionset input,
.right form .htmleditor select,
Expand Down
19 changes: 19 additions & 0 deletions css/editor.css
Original file line number Diff line number Diff line change
@@ -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;
}
2 changes: 1 addition & 1 deletion javascript/tinymce.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5759314

Please sign in to comment.