I'm using Kentico 9 and I'd like to be able to use different CK Editor style sets on different pages. I have added a style set to the styles.js file as follows.
CKEDITOR.stylesSet.add("mystyles", [{ name: "testone", element: "p" }]);
Then in the page I've added some JS as per the CK Editor web site.
if (CKEDITOR.currentInstance) {
CKEDITOR.currentInstance.config.stylesSet = "mystyles";
}
When I load the page containing the CK Editor, the style drop down contains the default style set, not the custom one I defined.
Does anyone know how to achieve this?

Here is how I solved my issue. I added the following to styles.js:
Then, in the master page for the area of my site that needs to use the "my-styles" style set, I added:
Finally, in config.js I added:
Using this approach I was able to customise the styles listed in the drop down depending on what master page was is use.