Methods
buildMenuItems(schema) → {Object}
Build a menu for nodes and marks supported in the markdown schema.
Parameters:
Name | Type | Description |
---|---|---|
schema |
Schema | the markdown schema |
- Source:
Returns:
the generated menu and all its items
- Type
- Object
uploadModal(successCallbackopt, errorCallbackopt)
Creates an overlay modal dialog which lets the user upload a single file via the upload API.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
successCallback |
function |
<optional> |
Callback to run after a successful upload. |
errorCallback |
function |
<optional> |
Callback to run after a failed upload (does not run if modal is closed). |
- Source:
Type Definitions
LookupResult
Lookup adapters return a limited set of data that's displayed to the user. Lookup results take the following form. Note that strings are stored only in one language; the backend adapter performs the full lookup of all available translations.
Type:
- Object
Properties:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Object | data for this result Properties
|
||||||||||||||||||||
sourceID |
String | canonical source that identifies this adapter |