clipboardContentChanged
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.
.clipboardContentChanged(/* Boolean */ canPaste)
Parameters
canPaste
Boolean
Indicates whether the content of the clipboard can be pasted into the editor.
Example
editor = new window.__editor(undefined, document.getElementById('editor-node'));
editor.startup(...);
...
// Inform the editor that the content on the clipboard has changed and the new content can be pasted.
editor.clipboardContentChanged(true);