Let's use a scenario where we want to send HTML email each time a new node article is added.
Posts
To be able to embed code snippet using your favorite WYSIWYG editor in Drupal 8, you will need to do the following.
For this example, we will use jQuery.ajax() to display the node via Ajax. jQuery.Ajax() expects a url and a settings object containing key/value pair that configure the request.
By Default, each time you created a new node, you will be shown a message saying something like "node {title} has been created".