Sample/Editor.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 1 Nov 2010 02:44:22 +0000 (10:44 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 1 Nov 2010 02:44:22 +0000 (10:44 +0800)
Sample/Editor.js

index 287683b..3c12391 100644 (file)
@@ -67,6 +67,7 @@ Editor=new XObject({
                     id : "RightEditor",
                     pack : "add",
                     save : function() {
+                        var str = this.get('/LeftPanel.buffer').toString();
                          this.get('/LeftPanel.model').changed(  str , false);
                          this.get('/Editor').dirty = false;
                          this.get('/Editor.save_button').el.sensitive = false;