( parent: HTMLElement, initialCode: string, onChange?: (code: string) => void, )
| 537 | } |
| 538 | |
| 539 | export function createJsEditor( |
| 540 | parent: HTMLElement, |
| 541 | initialCode: string, |
| 542 | onChange?: (code: string) => void, |
| 543 | ): WatEditor { |
| 544 | return buildEditor( |
| 545 | parent, |
| 546 | initialCode, |
| 547 | [javascript(), keymap.of(baseKeymap), closeBrackets(), autocompletion()], |
| 548 | onChange, |
| 549 | ); |
| 550 | } |
| 551 | |
| 552 | export async function createEditor( |
| 553 | parent: HTMLElement, |
nothing calls this directly
no test coverage detected