Classes
AbstractEditorAnnotationCommandCommandComponentConfiguratorContainerSelectionDOMImporterDocumentDocumentNodeEditAnnotationCommandEditingEventEmitterInsertInlineNodeCommandNodeIndexPropertyAnnotationPropertySelectionProseEditorScrollPaneSelectionSpellCheckCommandSurfaceTextNodeTransactionDocumentVirtualElement
Components
Modules
InsertInlineNodeCommand
Class defined in packages/inline-node/InsertInlineNodeCommand.js#32 inherits from
Reusable command implementation for inserting inline nodes.
Example
Define a custom command.
class AddXRefCommand extends InsertInlineNodeCommand {
createNodeData() {
return {
attributes: {'ref-type': 'bibr'},
targets: [],
label: '???',
type: 'xref'
}
}
}
Register it in your app using the configurator.
config.addCommand('add-xref', AddXRefCommand, {nodeType: 'xref'})
new InsertInlineNodeCommand()
Constructor defined in packages/inline-node/InsertInlineNodeCommand.js#36
this.getCommandState()
Method defined in packages/inline-node/InsertInlineNodeCommand.js#48
Determine command state for inline node insertion. Command is enabled if selection is a property selection.
this.execute()
Method defined in packages/inline-node/InsertInlineNodeCommand.js#60
Insert new inline node at the current selection