Skip to content

Commit

Permalink
Merge pull request #5433 from dodona-edu/fix/papyros-button
Browse files Browse the repository at this point in the history
Fix copy to submission box button in the sandbox
  • Loading branch information
jorg-vr authored Mar 13, 2024
2 parents 4d2f623 + 54abaa8 commit 5878155
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/assets/javascripts/coding_scratchpad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export async function initPapyros(programmingLanguage: ProgrammingLanguage): Pro
},
darkMode: themeState.theme === "dark"
});

await papyros.launch();

editor ||= window.dodona.editor;
if (editor) {
// Shortcut to copy code to editor
Expand All @@ -89,7 +92,6 @@ export async function initPapyros(programmingLanguage: ProgrammingLanguage): Pro
}
);
}
await papyros.launch();

papyros.codeRunner.editor.reconfigure([CodeEditor.STYLE, syntaxHighlighting(rougeStyle, {
fallback: true
Expand Down

0 comments on commit 5878155

Please sign in to comment.