Hello,
I am trying to determine how to create a custom styleset using jQuery.
I have successfully added the custom styleset but it no longer reads my config and it also appends a bunch of stuff that I didn't create in the styleset.
All I am trying to do is remove the H1 and H2 tags from the styleset. Sorry for being a somewhat incompetent on using the editor.
I am trying to determine how to create a custom styleset using jQuery.
I have successfully added the custom styleset but it no longer reads my config and it also appends a bunch of stuff that I didn't create in the styleset.
All I am trying to do is remove the H1 and H2 tags from the styleset. Sorry for being a somewhat incompetent on using the editor.
$(function() { bindEditor(); }); function bindEditor() { var config = { toolbar: [ ['Format'], ['Bold','Italic','Underline','Strike'], ['NumberedList','BulletedList'], ['Link','Unlink','Anchor'], ['Paste','PasteText','PasteFromWord'], ['Source', 'ShowBlocks'] ], removePlugins: 'resize' , stylesCombo_stylesSet: 'my_styles' }; // Initialize the editor. // Callback function can be passed and executed after full instance creation. $('textarea').ckeditor(config).ckeditor(function () { this.addStylesSet( 'my_styles', [ // Block Styles { name : 'Blue Title', element : 'h2', styles : { 'color' : 'Blue' } }, { name : 'Red Title' , element : 'h3', styles : { 'color' : 'Red' } }, // Inline Styles { name : 'CSS Style', element : 'span', attributes : { 'class' : 'my_style' } }, { name : 'Marker: Yellow', element : 'span', styles : { 'background-color' : 'Yellow' } } ]); }); }
Re: jQuery adapter and plugins (styleSetCombo)
I just added: to my config.