Fixed bonfire auto-execute on html challenges
This commit is contained in:
@ -564,5 +564,12 @@ $('#submitButton').on('click', function() {
|
|||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
editorValue = (codeStorage.isAlive())? codeStorage.getEditorValue() : allSeeds;
|
editorValue = (codeStorage.isAlive())? codeStorage.getEditorValue() : allSeeds;
|
||||||
myCodeMirror.setValue(editorValue.replace(/fccss/gi, '<script>').replace(/fcces/gi, "</script>"));
|
myCodeMirror.setValue(editorValue.replace(/fccss/gi, '<script>').replace(/fcces/gi, "</script>"));
|
||||||
|
if(typeof $('#preview').html !== 'undefined'){
|
||||||
|
$('#preview').load(function(){
|
||||||
bonfireExecute();
|
bonfireExecute();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
bonfireExecute();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Reference in New Issue
Block a user