(
id: number,
source: string,
options: ParseFiltersAndOutputOptions,
langId: string,
)
| 203 | |
| 204 | /** Get an editor component with the given configuration. */ |
| 205 | export function getEditorWith( |
| 206 | id: number, |
| 207 | source: string, |
| 208 | options: ParseFiltersAndOutputOptions, |
| 209 | langId: string, |
| 210 | ): ComponentConfig<typeof EDITOR_COMPONENT_NAME> { |
| 211 | return { |
| 212 | type: 'component', |
| 213 | componentName: EDITOR_COMPONENT_NAME, |
| 214 | componentState: { |
| 215 | id, |
| 216 | source, |
| 217 | options, |
| 218 | lang: langId, |
| 219 | }, |
| 220 | }; |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Get an empty tree component. |
nothing calls this directly
no outgoing calls
no test coverage detected