Commit 4c49282
Fix Try it button to dispatch play event and load editor on demand
Remove data-example attribute from the Try it button since the code is
already in the terminal body. In setupDocMode, remove the toolbar and
buttons that were visible even when the tiny-editor was hidden. Instead,
create a hidden container and listen for a "play" custom event on the
tiny-editor element to trigger game creation. The API page dispatches
this event when the Try it button is clicked.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6b7cb87 commit 4c49282
File tree
3 files changed
+15
-39
lines changed- tiny-doc/src/docs/templates
- pages
- partials
- tiny-web-editor/src/jsMain/kotlin
3 files changed
+15
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 86 | + | |
99 | 87 | | |
| 88 | + | |
100 | 89 | | |
101 | | - | |
| 90 | + | |
102 | 91 | | |
103 | 92 | | |
104 | 93 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
111 | 100 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 101 | + | |
128 | 102 | | |
129 | 103 | | |
130 | 104 | | |
131 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
132 | 108 | | |
133 | 109 | | |
134 | 110 | | |
| |||
0 commit comments