(langId: LanguageKey, id?: number)
| 191 | * TODO: main.js calls this with no arguments. |
| 192 | */ |
| 193 | export function getEditor(langId: LanguageKey, id?: number): ComponentConfig<typeof EDITOR_COMPONENT_NAME> { |
| 194 | return { |
| 195 | type: 'component', |
| 196 | componentName: EDITOR_COMPONENT_NAME, |
| 197 | componentState: { |
| 198 | id, |
| 199 | lang: langId, |
| 200 | }, |
| 201 | }; |
| 202 | } |
| 203 | |
| 204 | /** Get an editor component with the given configuration. */ |
| 205 | export function getEditorWith( |
nothing calls this directly
no outgoing calls
no test coverage detected