Bind to keyup events if editor is present
This commit is contained in:
@@ -7,6 +7,7 @@ $(document).ready(function() {
|
||||
init($);
|
||||
});
|
||||
|
||||
if (common.editor.getValue) {
|
||||
const code$ = common.editorKeyUp$
|
||||
.debounce(750)
|
||||
.map(() => common.editor.getValue())
|
||||
@@ -43,6 +44,7 @@ $(document).ready(function() {
|
||||
},
|
||||
err => console.error(err)
|
||||
);
|
||||
}
|
||||
|
||||
common.resetBtn$
|
||||
.doOnNext(() => {
|
||||
|
Reference in New Issue
Block a user