Fixing annoying little bugs

This commit is contained in:
2023-10-03 22:34:54 +02:00
parent 2b4cfd3ac5
commit 3f9dd5fe6b
4 changed files with 146 additions and 145 deletions

View File

@ -28,7 +28,7 @@ export const makeExampleFactory = (application: Editor): Function => {
) => {
const codeId = `codeExample${application.exampleCounter++}`;
// Store the code snippet in the data structure
application.api.codeExamples[codeId] = code;
application.api.codeExamples[codeId] = "bpm(120);\n" + code;
return `
<details ${open ? "open" : ""}>