I wanted to have
config.enterMode = CKEDITOR.ENTER_BR;
I am referencing editor directly form CDN
I tried it this way
@Html.TextAreaFor(model => model.About, new { @class = "form-control", @id = "About" })
<script>
CKEDITOR.replace('About');
CKEDITOR.editorConfig = function (config) {
config.enterMode = CKEDITOR.ENTER_BR;
};
</script>
Thanks
Loading CKEditor from CDN does not prevent you from providing a custom configuration.
See the following resources:
Example for an in-page configuration (so for the CKEditor instance with
id
ofAbout
):By the way, using
CKEDITOR.ENTER_BR
is actually unrecommended, especially if you want to use it just to change paragraph spacing.