|
|
@ -9,11 +9,10 @@ class GetEditorValue extends EventEmitter { |
|
|
|
|
|
|
|
|
|
|
|
return elem.currentContent() |
|
|
|
return elem.currentContent() |
|
|
|
}, [], (result) => { |
|
|
|
}, [], (result) => { |
|
|
|
done() |
|
|
|
|
|
|
|
const value = typeof result.value === 'string' ? result.value : null |
|
|
|
const value = typeof result.value === 'string' ? result.value : null |
|
|
|
|
|
|
|
|
|
|
|
callback(value) |
|
|
|
callback(value) |
|
|
|
this.emit('complete') |
|
|
|
this.emit('complete') |
|
|
|
|
|
|
|
done() |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
return this |
|
|
|
return this |
|
|
|