@ -51,6 +51,24 @@ module.exports = Backbone.Model.extend({
return this;
},
/**
* Refresh the viewer
* @return {self}
*/
refresh() {
this.getEditor().refresh();
* Focus the viewer
focus() {
this.getEditor().focus();
getContent() {
const ed = this.getEditor();
return ed && ed.getValue();