MCPcopy Create free account
hub / github.com/ckeditor/ckeditor5-react / createEditorElement

Function createEditorElement

tests/ckeditor.test.tsx:1540–1562  ·  view source on GitHub ↗
( props: Partial<Props<any>> = {} )

Source from the content-addressed store, hash-verified

1538
1539 const MockSlowEditor = SlowEditor as any;
1540 const createEditorElement = ( props: Partial<Props<any>> = {} ) => (
1541 <CKEditor
1542 editor={MockSlowEditor}
1543 config={{
1544 initialData: '1',
1545 key: 1,
1546 abc: 123
1547 } as any}
1548 onReady={resolvedEditor => {
1549 initializerLog.push( {
1550 status: 'ready',
1551 id: resolvedEditor.config.key
1552 } );
1553 }}
1554 onAfterDestroy={destroyedEditor => {
1555 initializerLog.push( {
1556 status: 'destroy',
1557 id: destroyedEditor.config.key
1558 } );
1559 }}
1560 {...props}
1561 />
1562 );
1563
1564 const component = render( createEditorElement() );
1565

Callers 1

testSemaphoreForWatchdogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…