Hello,
I am working with the ckeditor module for drupal
I have tried to get my custom set of styles to show in the editor in every way I can think of, but I am getting blank results when I click on styles.
I have "Use Theme ckeditor.styles.js selected in the ckeditor css settings for the profile of my users role. and I have a ckeditor.styles.js file in my active theme directory /sites/all/themes/nianow/ (please see attached ckeditor.styles.js)
Is there something I am missing here... I had no trouble at all with this in fckeditor...
here is what my code looks like:
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.stylesSet.add('default',[{name:'Blue Title',element:'h3',styles:{color:'Blue'}},{name:'Red Title',element:'h3',styles:{color:'Red'}},{name:'Marker: Yellow',element:'span',styles:{'background-color':'Yellow'}},{name:'Marker: Green',element:'span',styles:{'background-color':'Lime'}},{name:'Big',element:'big'},{name:'Small',element:'small'},{name:'Typewriter',element:'tt'},{name:'Computer Code',element:'code'},{name:'Keyboard Phrase',element:'kbd'},{name:'Sample Text',element:'samp'},{name:'Variable',element:'var'},{name:'Deleted Text',element:'del'},{name:'Inserted Text',element:'ins'},{name:'Cited Work',element:'cite'},{name:'Inline Quotation',element:'q'},{name:'Language: RTL',element:'span',attributes:{dir:'rtl'}},{name:'Language: LTR',element:'span',attributes:{dir:'ltr'}},{name:'Image on Left',element:'img',attributes:{style:'padding: 5px; margin-right: 5px',border:'2',align:'left'}},{name:'Image on Right',element:'img',attributes:{style:'padding: 5px; margin-left: 5px',border:'2',align:'right'}}]);
Thanks,
Andy
Re: CkEditor and Drupal Custom styles not showing
any advice would be really appreciated..
Thanks,
Andy