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