hi !
I try to create a custom style file like this one :
CKEDITOR.addStylesSet( 'custom',
[
// Block Styles
{ name : 'Blue Title', element : 'h2', styles : { 'color' : 'Blue' } },
{ name : 'Red Title' , element : 'h3', styles : { 'color' : 'Red' } },
{ name : 'Custom a', element : 'a', attributes : { 'class' : 'my_style' } }
]);
I can't see the 'custom a' element in my editor custom label list.
All is ok with others elements, this problem seems to be appear only with 'a' element.
Any ideas to resolve this ?
Thanks for your great job !
I try to create a custom style file like this one :
CKEDITOR.addStylesSet( 'custom',
[
// Block Styles
{ name : 'Blue Title', element : 'h2', styles : { 'color' : 'Blue' } },
{ name : 'Red Title' , element : 'h3', styles : { 'color' : 'Red' } },
{ name : 'Custom a', element : 'a', attributes : { 'class' : 'my_style' } }
]);
I can't see the 'custom a' element in my editor custom label list.
All is ok with others elements, this problem seems to be appear only with 'a' element.
Any ideas to resolve this ?
Thanks for your great job !

Re: problem with custom style tag
{edit}you must first select a hyperlink, then click on the Styles menu.
{edit}
<textarea name="editor1"></textarea> <script type="text/javascript"> CKEDITOR.replace( 'editor1' ); CKEDITOR.add CKEDITOR.config.contentsCss = '/MyCSSFolder/MyCSSfileWithTheMy_StyleClass.css' ; CKEDITOR.addStylesSet( 'custom', [ /* Block Styles */ { name : 'Blue Title', element : 'h2', styles : { 'color' : 'Blue' } }, { name : 'Red Title' , element : 'h3', styles : { 'color' : 'Red' } }, /* Object Styles */ { name : 'Custom a', element : 'a', attributes : { 'class' : 'my_style' } } ]); //{edit} (added the next line, calling the "custom" styleset CKEDITOR.config.stylesCombo_stylesSet = 'custom'; </script>{edit}viewtopic.php?f=11&t=16349
Re: problem with custom style tag
Re: problem with custom style tag
Any idea why ?
Thanks.