InsertInlineNodeCommand
Class defined in packages/inline-node/InsertInlineNodeCommand.js#33 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#37
this.getCommandState()
Method defined in packages/inline-node/InsertInlineNodeCommand.js#49

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#61

Insert new inline node at the current selection