@witchcraft/editor
Github
Issues
npm
Preparing search index...
pm/features/DocumentApi/composables/useTestDocumentApi
useTestDocumentApi
Function useTestDocumentApi
useTestDocumentApi
(
editorOptions
:
Partial
<
EditorOptions
>
,
embeds
:
Record
<
string
,
{
content
:
any
;
title
?:
string
}
>
,
__namedParameters
?:
{
loadDelay
?:
number
}
,
)
:
{
cache
:
Ref
<
Cache
>
;
documentApi
:
DocumentApiInterface
;
embeds
:
Record
<
string
,
{
content
:
any
;
title
?:
string
}
>
;
}
Creates a simple instance of the DocumentApi for testing purposes.
Parameters
editorOptions
:
Partial
<
EditorOptions
>
embeds
:
Record
<
string
,
{
content
:
any
;
title
?:
string
}
>
__namedParameters
:
{
loadDelay
?:
number
}
= {}
Returns
{
cache
:
Ref
<
Cache
>
;
documentApi
:
DocumentApiInterface
;
embeds
:
Record
<
string
,
{
content
:
any
;
title
?:
string
}
>
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Github
Issues
npm
@witchcraft/editor
Loading...
Creates a simple instance of the DocumentApi for testing purposes.