Dear all,
CKEditor works great, there is only one problem I have: I want to be able to set a default style. When no style has been chosen, I want CKeditor to assume this style has been selected. Is there a way to do this?
Kind regards,
Yann
CKEditor works great, there is only one problem I have: I want to be able to set a default style. When no style has been chosen, I want CKeditor to assume this style has been selected. Is there a way to do this?
Kind regards,
Yann
Re: Default style
Hi Yann,
I assume you're talking about the 'Style Combo', where the default style is determined by the cursor's surrounding, namely the elements which the cursor anchoring on.
So define a style been recognized on paragraphs will mostly been displayed as the 'default' one, which could be achieved by the following steps:
1. Define a custom styleset file at the path stylescombo/styles/custom.js with the following content:
1. Replace the default value of this config entry with :
Re: Default style
Thank you very much for your reply.
The situation is as follows: The text in the ckeditor textfield will be placed in a div which has a class applied on it. So, when text is not in an element, it will always still be in this div, and therefore get this 'standard' style applied to it. I want this 'standard' style applied to all text in the ckeditor.
I already aplied the solution you mentioned. But as you cans ee it is not the solution for my problem.