I want to populate the Styles drop-down list with style definitions from an external CSS stylesheet file.
This is how I proceeded:
1) I created my css file. Its name is ´mysitestyles.css´and its contents is this:
I placed this file in this directory:
2) I activate the stylesheetparser plugin for my CKEditor by editing the file
introducing this line:
3) I supplied the location of the CSS file that contains my style definitions by using the contentsCss configuration setting editing the file
by introducing this line:
And remolving this one
After all this I would expect to open CKEditor and see in the Styles drop-down list my stile hh3.
But I don't see the style hh3 in the Styles drop-down list of CKEditor.
Any idea?
This is how I proceeded:
1) I created my css file. Its name is ´mysitestyles.css´and its contents is this:
hh3 {
font: italic normal 1.4em georgia, sans-serif;
letter-spacing: 1px;
margin-bottom: 0;
color: #7D775C;
}I placed this file in this directory:
sites/all/modules/ckeditor/ckeditor/mysitestyles.css
2) I activate the stylesheetparser plugin for my CKEditor by editing the file
sites/all/modules/ckeditor/ckeditor/_source/core/config.js
introducing this line:
config.extraPlugins = 'stylesheetparser';
3) I supplied the location of the CSS file that contains my style definitions by using the contentsCss configuration setting editing the file
sites/all/modules/ckeditor/ckeditor/_source/core/config.js
by introducing this line:
config.contentsCss = 'mysitestyles.css';
And remolving this one
/* contentsCss : CKEDITOR.basePath + 'contents.css',*/
After all this I would expect to open CKEditor and see in the Styles drop-down list my stile hh3.
But I don't see the style hh3 in the Styles drop-down list of CKEditor.
Any idea?

Re: CSS stylesheet file
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: CSS stylesheet file
http://docs.cksource.com/CKEditor_3.x/D ... ide/Styles
Re: CSS stylesheet file
Re: CSS stylesheet file
without
not
using the Stylesheet Parser Plugin
Re: CSS stylesheet file
both an element and a classStyles
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: CSS stylesheet file
1./ Creation of a .css
2./ Upload the file mycss.css to the Server
3./ Activate the Stylesheetparser
4./ Register the path to mycss.css
What did I miss this time ?