clipboardContentChanged Method

Description

If you chose to implement an external clipboard manager, this method should be called anytime the clipboard content has been changed by actions outside the diagram editor.

The Editor Events topic describes clipboard events you should handle to manage clipboard requests and clipboard changes that occur within the editor.

Syntax

.clipboardContentChanged(/* Boolean */ canPaste)

Parameters

canPaste: Boolean

Indicated whether or not the clipboard's content can be pasted into the editor.

Example

editor.startup(...);

...

// Inform the editor that the content on the clipboard has changed and the new content can be pasted.
editor.clipboardContentChanged(true);