/**
  * {@inheritDoc}
  */
 public function render()
 {
     $this->vars['preview_html'] = Room::formatHtml($this->model->content, true);
     return $this->makePartial('preview');
 }
 public function onRefreshPreview()
 {
     $data = post('Room');
     $previewHtml = Room::formatHtml($data['content'], true);
     return ['preview' => $previewHtml];
 }