Sha256: 2ee62c560674e08bee844f83bb4ca8be28fb06f53fc1f701737cda9997075c6d
Contents?: true
Size: 1018 Bytes
Versions: 3
Compression:
Stored size: 1018 Bytes
Contents
Ext.ns('Rwiki'); Rwiki.EditorPanel = Ext.extend(Ext.Panel, { constructor: function() { Ext.apply(this, { contentEl: 'editor-container', header: false, height: 400, listeners: { resize: function(panel, width, height) { var offset = 36 - 25; $('.markItUpContainer').height(height - offset); var editorOffset = 73 - 25; $('#editor').height(height - editorOffset); } } }); Rwiki.EditorPanel.superclass.constructor.apply(this, arguments); this.editor = new Rwiki.EditorPanel.Editor(); }, initEvents: function() { Rwiki.EditorPanel.superclass.initEvents.apply(this, arguments); this.on('rwiki:pageLoaded', this.onPageLoaded); }, onPageLoaded: function(data) { this.editor.setPagePath(data.path); this.editor.setContent(data.rawContent); }, getPagePath: function() { return this.editor.getPagePath(); }, getRawContent: function() { return this.editor.getContent(); } });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rwiki-0.2.3 | public/javascripts/Rwiki/EditorPanel.js |
rwiki-0.2.2 | public/javascripts/Rwiki/EditorPanel.js |
rwiki-0.2.1 | public/javascripts/Rwiki/EditorPanel.js |