2014-08-15, 00:42:31
Hello,
I'm struggling with this problem.
I'm using GetSimpleCMS-stable_cke_4.3.2 build so that I can use the CKEditor StylesheetParser plugin.
I've done what is recommended so:
I just don't get my styles appearing in the drop down list in the editor, so can anyone help me get through this please??
Thanks
Guy
I added this in config.js :
config.extraPlugins = 'stylesheetparser';
config.contentsCss = '/css/guy.css';
config.stylesSet = [];
and the guy.css looks like this (it is from the newminimalism theme with some additions):
/*
* Skeleton V1.2
* Copyright 2011, Dave Gamache
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 6/20/2012
*/
/* Table of Content
==================================================
#Reset & Basics
#Basic Styles
#Site Styles
#Typography
#Links
#Lists
#Images
#Buttons
#Forms
#Misc */
/* #Reset & Basics (Inspired by E. Meyers)
================================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 80%;
font: inherit;
vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block; }
body {
line-height: 1;
overflow-ycroll;
}
ol, ul {
list-style: none; }
blockquote, q {
quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none; }
table {
border-collapse: collapse;
border-spacing: 0; }
/* #Basic Styles
================================================== */
body {
font-family: Georgia, "Times New Roman", Times, serif;
line-height: 1.4em;
color: #636F65;
font-size: 90%;
background-color: white;
margin: 0 0 1px;
line-height: 1.7;
border-top: 10px solid black;
background-image: url(../images/bg.png);
background-position: left top;
background-repeat: repeat;
-webkit-font-smoothing: antialiased; /* Fix for webkit rendering */
-webkit-text-size-adjust: 100%;
}
/* #Site Styles
================================================== */
.asterix {
font-size: 80%;
}
#container {
width: 960px;
margin-right: auto;
margin-left: auto;
margin-top: 30px;
font-family: Georgia, "Times New Roman", Times, serif;
line-height: 1.4em;
color: #636F65;
overflow: hidden;
padding-left: 30px;
padding-right: 30px;
}
#headercontainer {
text-decoration: none;
text-transform: uppercase;
text-align: center;
letter-spacing: 0.7em;
font-weight: normal;
padding-top: 30px;
padding-bottom: 30px;
color: #909E79;
font-size: 120%;
overflow: hidden;
}
#headercontainer ul li {
display: block;
float: left;
width: 400px;
}
#headercontainer a:link {
color: #FFF;
text-decoration: none;
}
#headercontainer a:hover {
color: #FFF;
text-decoration: none;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}
#headercontainer a:visited {
color: #FFF;
text-decoration: none;
}
#maincontent {
overflow: hidden;
display: block;
margin-top: 30px;
width: 1000px;
font-size: 70%;
}
#maincontent ul {
float: left;
display: block;
}
#maincontent ul li {
display: block;
float: left;
width: 465px;
overflow: hidden;
margin-right: 30px;
}
a:link {
text-decoration: none;
color: #636F65;
}
a:visited {
color: #636F65;
text-decoration: none;
}
a:hover {
text-decoration: none;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #909D79;
}
#footer {
text-align: right;
padding-top: 20px;
margin-bottom: 30px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #909D7A;
font-size: 60%;
margin-top: 30px;
padding-bottom: 15px;
}
#headerimages {
}
.ampersand {
font-family: Baskerville, "Goudy Old Style", "Hoefler Text", Palatino, "Palatino Linotype", "Book Antiqua", serif;
font-style: italic;
font-size: 120%;
}
#address {
border-top-width: 1px;
border-bottom-width: 1px;
border-top-style: solid;
border-bottom-style: solid;
border-top-color: #909E7A;
border-bottom-color: #909D79;
padding-top: 10px;
padding-bottom: 10px;
text-align: center;
overflow: hidden;
}
.contentcaps {
font-size: 110%;
letter-spacing: 0.2em;
color: #909E7A;
text-transform: uppercase;
}
.content {
height: auto;
overflow: auto;
display: block;
margin-top: 30px;
margin-bottom: 30px;
font-size: 70%;
width: 1000px;
}
.content ul {
float: left;
display: block;
}
.content ul li {
display: block;
float: left;
width: 217px;
overflow: hidden;
margin-right: 30px;
}
.applegreen {
color: #CAD5AA;
}
.greenapplebackgroundwhitetext {
color: #FFF;
background-color: #CAD5AA;
}
p {
padding-top: 10px;
}
.acknowledgements {
margin-top: 30px;
font-size: 70%;
}
.flash {
font-size: 60%;
text-transform: uppercase;
letter-spacing: 0.3em;
text-align: center;
}
/* #Typography
================================================== */
h1, h2, h3, h4, h5, h6 {
color: #181818;
font-family: inherit;
font-weight: normal; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
h1 {
font-size: 42px;
line-height: 1.1;
/* #Typography
================================================== */
h1, h2, h3, h4, h5, h6 {
color: #181818;
font-family: inherit;
font-weight: normal; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
h1 {
font-size: 42px;
line-height: 1.1;
color: #666666;
text-align: left;
margin-bottom: 13px;
padding-bottom: 15px;
}
h1 span {
font-size: 25px;
line-height: 12px;
color: #666666;
margin-left: 10px;
}
h2 {
font-size: 15px;
line-height: 1.8;
color: #666666;
text-align: left;
border-bottom: 1px solid #A3A3A3;
margin-bottom: 7px;
padding-bottom: 12px;
}
h3 {
font-size: 18px;
line-height: 0.9;
color: #575757;
text-align: left;
margin-bottom: 6px;
padding-bottom: 5px;
}
h4 {
font-size: 14px;
line-height: 0.9;
color: #CC3333;
text-align: left;
margin-bottom: 8px;
padding-top: 3px;
}
p { margin: 0 0 20px 0; }
p img { margin: 0; }
p.lead { font-size: 21px; line-height: 27px; color: #777; }
em { font-style: italic; }
strong { font-weight: bold; color: #333; }
small { font-size: 80%; }
/* Blockquotes */
blockquote, blockquote p { font-size: 17px; line-height: 24px; color: #777; font-style: italic; }
blockquote { margin: 0 0 20px; padding: 9px 20px 0 19px; border-left: 1px solid #ddd; }
blockquote cite { display: block; font-size: 12px; color: #555; }
blockquote cite:before { content: "\2014 \0020"; }
blockquote cite a, blockquote cite a:visited, blockquote cite a:visited { color: #555; }
hr { border: solid #A3A3A3; border-width: 1px 0 0; clear: both; margin: 10px 0 30px; height: 0; }
/* #Links
================================================== */
a, { color: #CC3333; }
a:hover, a:focus { color: #CC3333; }
p a, p a:visited { line-height: inherit; }
/* #Lists
================================================== */
ul, ol { margin-bottom: 20px; }
ul { list-style: none outside; }
ol { list-style: decimal; }
ol, ul.square, ul.circle, ul.disc { margin-left: 30px; }
ul.square { list-style: square outside; }
ul.circle { list-style: circle outside; }
ul.disc { list-style: disc outside; }
ul ul, ul ol,
ol ol, ol ul { margin: 4px 0 5px 30px; font-size: 90%; }
ul ul li, ul ol li,
ol ol li, ol ul li { margin-bottom: 6px; }
li { line-height: 18px; margin-bottom: 12px; }
ul.large li { line-height: 21px; }
li p { line-height: 21px; }
/* #Images
================================================== */
img.scale-with-grid {
max-width: 100%;
height: auto; }
/* #Buttons
================================================== */
.button {
width: 66px;
height: 13px;
margin-top: 12px;
padding: 9px;
background-color: black;
display: inline-block;
color: white;
cursor: pointer;
text-align: center;
text-decoration: none;
font: 12px/100% Arial, Helvetica, sans-serif;
margin-bottom:20px;
}
.button :visited { color: #CC3333;}
.button :hover,.button :focus { color: #CC3333; }
/* Fix for odd Mozilla border & padding issues */
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/* #Forms
================================================== */
form {
margin-bottom: 20px; }
fieldset {
margin-bottom: 20px; }
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
border: 1px solid #ccc;
padding: 6px 4px;
outline: none;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
font: 13px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #777;
margin: 0;
width: 210px;
max-width: 100%;
display: block;
margin-bottom: 20px;
background: #fff; }
select {
padding: 0; }
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
border: 1px solid #aaa;
color: #444;
-moz-box-shadow: 0 0 3px rgba(0,0,0,.2);
-webkit-box-shadow: 0 0 3px rgba(0,0,0,.2);
box-shadow: 0 0 3px rgba(0,0,0,.2); }
textarea {
min-height: 60px; }
label,
legend {
display: block;
font-weight: bold;
font-size: 13px; }
select {
width: 220px; }
input[type="checkbox"] {
display: inline; }
label span,
legend span {
font-weight: normal;
font-size: 13px;
color: #444; }
/* #Misc
================================================== */
.remove-bottom { margin-bottom: 0 !important; }
.half-bottom { margin-bottom: 10px !important; }
.add-bottom { margin-bottom: 20px !important; }
I'm struggling with this problem.
I'm using GetSimpleCMS-stable_cke_4.3.2 build so that I can use the CKEditor StylesheetParser plugin.
I've done what is recommended so:
I just don't get my styles appearing in the drop down list in the editor, so can anyone help me get through this please??
Thanks
Guy
I added this in config.js :
config.extraPlugins = 'stylesheetparser';
config.contentsCss = '/css/guy.css';
config.stylesSet = [];
and the guy.css looks like this (it is from the newminimalism theme with some additions):
/*
* Skeleton V1.2
* Copyright 2011, Dave Gamache
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 6/20/2012
*/
/* Table of Content
==================================================
#Reset & Basics
#Basic Styles
#Site Styles
#Typography
#Links
#Lists
#Images
#Buttons
#Forms
#Misc */
/* #Reset & Basics (Inspired by E. Meyers)
================================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 80%;
font: inherit;
vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block; }
body {
line-height: 1;
overflow-ycroll;
}
ol, ul {
list-style: none; }
blockquote, q {
quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none; }
table {
border-collapse: collapse;
border-spacing: 0; }
/* #Basic Styles
================================================== */
body {
font-family: Georgia, "Times New Roman", Times, serif;
line-height: 1.4em;
color: #636F65;
font-size: 90%;
background-color: white;
margin: 0 0 1px;
line-height: 1.7;
border-top: 10px solid black;
background-image: url(../images/bg.png);
background-position: left top;
background-repeat: repeat;
-webkit-font-smoothing: antialiased; /* Fix for webkit rendering */
-webkit-text-size-adjust: 100%;
}
/* #Site Styles
================================================== */
.asterix {
font-size: 80%;
}
#container {
width: 960px;
margin-right: auto;
margin-left: auto;
margin-top: 30px;
font-family: Georgia, "Times New Roman", Times, serif;
line-height: 1.4em;
color: #636F65;
overflow: hidden;
padding-left: 30px;
padding-right: 30px;
}
#headercontainer {
text-decoration: none;
text-transform: uppercase;
text-align: center;
letter-spacing: 0.7em;
font-weight: normal;
padding-top: 30px;
padding-bottom: 30px;
color: #909E79;
font-size: 120%;
overflow: hidden;
}
#headercontainer ul li {
display: block;
float: left;
width: 400px;
}
#headercontainer a:link {
color: #FFF;
text-decoration: none;
}
#headercontainer a:hover {
color: #FFF;
text-decoration: none;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}
#headercontainer a:visited {
color: #FFF;
text-decoration: none;
}
#maincontent {
overflow: hidden;
display: block;
margin-top: 30px;
width: 1000px;
font-size: 70%;
}
#maincontent ul {
float: left;
display: block;
}
#maincontent ul li {
display: block;
float: left;
width: 465px;
overflow: hidden;
margin-right: 30px;
}
a:link {
text-decoration: none;
color: #636F65;
}
a:visited {
color: #636F65;
text-decoration: none;
}
a:hover {
text-decoration: none;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #909D79;
}
#footer {
text-align: right;
padding-top: 20px;
margin-bottom: 30px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #909D7A;
font-size: 60%;
margin-top: 30px;
padding-bottom: 15px;
}
#headerimages {
}
.ampersand {
font-family: Baskerville, "Goudy Old Style", "Hoefler Text", Palatino, "Palatino Linotype", "Book Antiqua", serif;
font-style: italic;
font-size: 120%;
}
#address {
border-top-width: 1px;
border-bottom-width: 1px;
border-top-style: solid;
border-bottom-style: solid;
border-top-color: #909E7A;
border-bottom-color: #909D79;
padding-top: 10px;
padding-bottom: 10px;
text-align: center;
overflow: hidden;
}
.contentcaps {
font-size: 110%;
letter-spacing: 0.2em;
color: #909E7A;
text-transform: uppercase;
}
.content {
height: auto;
overflow: auto;
display: block;
margin-top: 30px;
margin-bottom: 30px;
font-size: 70%;
width: 1000px;
}
.content ul {
float: left;
display: block;
}
.content ul li {
display: block;
float: left;
width: 217px;
overflow: hidden;
margin-right: 30px;
}
.applegreen {
color: #CAD5AA;
}
.greenapplebackgroundwhitetext {
color: #FFF;
background-color: #CAD5AA;
}
p {
padding-top: 10px;
}
.acknowledgements {
margin-top: 30px;
font-size: 70%;
}
.flash {
font-size: 60%;
text-transform: uppercase;
letter-spacing: 0.3em;
text-align: center;
}
/* #Typography
================================================== */
h1, h2, h3, h4, h5, h6 {
color: #181818;
font-family: inherit;
font-weight: normal; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
h1 {
font-size: 42px;
line-height: 1.1;
/* #Typography
================================================== */
h1, h2, h3, h4, h5, h6 {
color: #181818;
font-family: inherit;
font-weight: normal; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
h1 {
font-size: 42px;
line-height: 1.1;
color: #666666;
text-align: left;
margin-bottom: 13px;
padding-bottom: 15px;
}
h1 span {
font-size: 25px;
line-height: 12px;
color: #666666;
margin-left: 10px;
}
h2 {
font-size: 15px;
line-height: 1.8;
color: #666666;
text-align: left;
border-bottom: 1px solid #A3A3A3;
margin-bottom: 7px;
padding-bottom: 12px;
}
h3 {
font-size: 18px;
line-height: 0.9;
color: #575757;
text-align: left;
margin-bottom: 6px;
padding-bottom: 5px;
}
h4 {
font-size: 14px;
line-height: 0.9;
color: #CC3333;
text-align: left;
margin-bottom: 8px;
padding-top: 3px;
}
p { margin: 0 0 20px 0; }
p img { margin: 0; }
p.lead { font-size: 21px; line-height: 27px; color: #777; }
em { font-style: italic; }
strong { font-weight: bold; color: #333; }
small { font-size: 80%; }
/* Blockquotes */
blockquote, blockquote p { font-size: 17px; line-height: 24px; color: #777; font-style: italic; }
blockquote { margin: 0 0 20px; padding: 9px 20px 0 19px; border-left: 1px solid #ddd; }
blockquote cite { display: block; font-size: 12px; color: #555; }
blockquote cite:before { content: "\2014 \0020"; }
blockquote cite a, blockquote cite a:visited, blockquote cite a:visited { color: #555; }
hr { border: solid #A3A3A3; border-width: 1px 0 0; clear: both; margin: 10px 0 30px; height: 0; }
/* #Links
================================================== */
a, { color: #CC3333; }
a:hover, a:focus { color: #CC3333; }
p a, p a:visited { line-height: inherit; }
/* #Lists
================================================== */
ul, ol { margin-bottom: 20px; }
ul { list-style: none outside; }
ol { list-style: decimal; }
ol, ul.square, ul.circle, ul.disc { margin-left: 30px; }
ul.square { list-style: square outside; }
ul.circle { list-style: circle outside; }
ul.disc { list-style: disc outside; }
ul ul, ul ol,
ol ol, ol ul { margin: 4px 0 5px 30px; font-size: 90%; }
ul ul li, ul ol li,
ol ol li, ol ul li { margin-bottom: 6px; }
li { line-height: 18px; margin-bottom: 12px; }
ul.large li { line-height: 21px; }
li p { line-height: 21px; }
/* #Images
================================================== */
img.scale-with-grid {
max-width: 100%;
height: auto; }
/* #Buttons
================================================== */
.button {
width: 66px;
height: 13px;
margin-top: 12px;
padding: 9px;
background-color: black;
display: inline-block;
color: white;
cursor: pointer;
text-align: center;
text-decoration: none;
font: 12px/100% Arial, Helvetica, sans-serif;
margin-bottom:20px;
}
.button :visited { color: #CC3333;}
.button :hover,.button :focus { color: #CC3333; }
/* Fix for odd Mozilla border & padding issues */
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/* #Forms
================================================== */
form {
margin-bottom: 20px; }
fieldset {
margin-bottom: 20px; }
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
border: 1px solid #ccc;
padding: 6px 4px;
outline: none;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
font: 13px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #777;
margin: 0;
width: 210px;
max-width: 100%;
display: block;
margin-bottom: 20px;
background: #fff; }
select {
padding: 0; }
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
border: 1px solid #aaa;
color: #444;
-moz-box-shadow: 0 0 3px rgba(0,0,0,.2);
-webkit-box-shadow: 0 0 3px rgba(0,0,0,.2);
box-shadow: 0 0 3px rgba(0,0,0,.2); }
textarea {
min-height: 60px; }
label,
legend {
display: block;
font-weight: bold;
font-size: 13px; }
select {
width: 220px; }
input[type="checkbox"] {
display: inline; }
label span,
legend span {
font-weight: normal;
font-size: 13px;
color: #444; }
/* #Misc
================================================== */
.remove-bottom { margin-bottom: 0 !important; }
.half-bottom { margin-bottom: 10px !important; }
.add-bottom { margin-bottom: 20px !important; }