I've defined a list of custom block style into the style menu. However, whenever a new paragraph starts, the previously selected block style disappears.
According to http://stackoverflow.com/a/2684157/35634 CKEDITOR.config.autoParagraph = false;
should work but it has since been deprecated in CKEditor 4:http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-autoParagraph
Is there a way to preserve selected block style on enter?
Update: I found inline style to work as desired, but it loses the behavior of updating the style of the current block on change.
This logic can't be easily
This logic can't be easily changed, because it hasn't been made configurable (and it has nothing to do with config.autoParagraph). However, it is possible to work around this limitation. I wrote a simple plugin which as far as I can see does the job: https://gist.github.com/Reinmar/1acce88add99964be1c6.
If it's going to work fine I'll add it to the addons repo and I'll let you know.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+