PlimDriver
Defined in: driver.ts:14
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PlimDriver(config?): PlimDriver;Defined in: driver.ts:23
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
config | PlimDriverConfig |
Returns
Section titled “Returns”PlimDriver
Properties
Section titled “Properties”| Property | Modifier | Type | Defined in |
|---|---|---|---|
actions | readonly | ActionDescriptor[] | driver.ts:18 |
blockFactories | readonly | (editor) => BlockDescriptor[] | driver.ts:17 |
extensions | readonly | ExtensionFactory[] | driver.ts:19 |
markFactories | readonly | (editor) => MarkDescriptor[] | driver.ts:16 |
theme | readonly | Theme | driver.ts:15 |
Methods
Section titled “Methods”getHistory()
Section titled “getHistory()”getHistory(): { canRedo: boolean; canUndo: boolean; onChange: (cb) => () => void; redo: () => void; undo: () => void;};Defined in: driver.ts:39
Returns
Section titled “Returns”{ canRedo: boolean; canUndo: boolean; onChange: (cb) => () => void; redo: () => void; undo: () => void;}canRedo
Section titled “canRedo”canRedo: boolean;canUndo
Section titled “canUndo”canUndo: boolean;onChange
Section titled “onChange”onChange: (cb) => () => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
cb | (s) => void |
Returns
Section titled “Returns”() => void
redo: () => void;Returns
Section titled “Returns”void
undo: () => void;Returns
Section titled “Returns”void
resolveBlocks()
Section titled “resolveBlocks()”resolveBlocks(editor): BlockDescriptor[];Defined in: driver.ts:31
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
editor | EditorHandle |
Returns
Section titled “Returns”resolveMarks()
Section titled “resolveMarks()”resolveMarks(editor): MarkDescriptor[];Defined in: driver.ts:35
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
editor | EditorHandle |