some slightly better examples

This commit is contained in:
2023-10-05 01:38:24 +02:00
parent 8cbd38bd09
commit f1525a45a3
2 changed files with 40 additions and 27 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] = "bpm(120);\n" + code;
application.api.codeExamples[codeId] = code;
return `
<details ${open ? "open" : ""}>