Drupal 8 'text_with_summary' field formatter. Renders 'Summary' field with 'Read more' and 'Read less' buttons. Clicking 'Read more' button will replace summary text with that in the main field. Alternatively one can user <!--break-->
delimiter in the main field in which case formatter will use text above the delimiter instead of that specified in summary field.
Add the following to your local compoaser.json file and run 'composer install' command.
{
"require": {
"avblink/read_more_formatter": "dev-master"
},
"extra": {
"installer-paths": {
"modules/contrib/{$name}/": [
"type:drupal-module"
]
}
},
"repositories": {
"avblink": {
"type": "vcs",
"url": "https://github.com/avblink/read_more_formatter.git"
}
}
}