CoreMedia CKEditor 5 Plugins
    Preparing search index...

    Command to insert Content from the ClipboardService into the document at the actual selection.

    The command is enabled if the ClipboardService contains Contents and all Contents are insertable.

    Hierarchy

    • Command
      • PasteContentCommand
    Index

    Constructors

    Methods

    • Executes the command.

      A command may accept parameters. They will be passed from module:core/editor/editor~Editor#execute editor.execute() to the command.

      The execute() method will automatically abort when the command is disabled (#isEnabled is false). This behavior is implemented by a high priority listener to the #event:execute event.

      In order to see how to disable a command from "outside" see the #isEnabled documentation.

      This method may return a value, which would be forwarded all the way down to the module:core/editor/editor~Editor#execute editor.execute().

      Returns void

      execute