code: function() {
        var t = this,
            json = t.model.toJSON({trim:false});
        t.sourceView.model = json;
        t.sourceView.setData();
        t.editor.val(JSON.stringify(json, null, 2));
      }
docs: Fill the view-source and edit-source editors