Allows you to change the body and title of an article that is being displayed. It is recommended to trigger this method after the article data has loaded, you can do this by registering for the article:data:loaded event.

Example

  window._elev.on('article:data:loaded', function(data) {
if (data.articleId === '123') {
   _elev.updateArticle(data.articleId, 'my title', 'my <h1>body</h1>');
}
  });

Signature

window._elev.updateArticle(articleId, newTitle, newBody);

articleId (required)

The article ID for the popup that should be closed.

newTitle (required)

The title to update the article with.

newBody (required)

The article body to update the article with.