In mod\ckeditor\views\default\elgg-ckeditor.js:
config.enterMode = CKEDITOR.ENTER_BR;
var FINAL_CONFIG = $.extend({}, config, opts);
@RvR - many many thanks. It works wonderfully well. Actually I got the small piece of code already from the ckeditor docs you have referenced. However, it works in Blog post area (add a new blog post) but in the comment area box, it still does not work. How can I make it work universally across the site? Help is appreciated very much.
My mentioned code works on the blog and comments both. Use it.
Just add this in init() function of your custom plugin and stop panicking:
elgg_register_plugin_hook_handler('config', 'comments_latest_first', function (\Elgg\Hook $hook) {
$entity = $hook->getEntityParam();
if (!$entity instanceof ElggEntity) {
return null;
}
return false;
});
Thanks RvR for posting some solution.
After posting a comment, the user needs to be taken to the comment he just posted (auto-scroll) specially when the comments are spanning over multiple pages.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.