]>
Commit | Line | Data |
---|---|---|
24c7594d BB |
1 | getEditorElement = (callback) -> |
2 | textEditor = null | |
3 | ||
4 | waitsForPromise -> | |
5 | atom.project.open().then (e) -> | |
6 | textEditor = e | |
7 | ||
8 | runs -> | |
9 | element = document.createElement("atom-text-editor") | |
10 | element.setModel(textEditor) | |
11 | callback(element) | |
12 | ||
13 | module.exports = { getEditorElement } |