Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Gojs bug or I miss something

$
0
0

@Mickey wrote:

I'm using latest GoJS 1.7.3 version of library. To prevent users to have ability to copy, cut, paste in diagram I used this
in diagram declaration:

"commandHandler.canCopySelection": false,
"commandHandler.canCutSelection": false,
"commandHandler.canPasteSelection": false,

and copy, cut, paste was disabled. Now I changed this to

"commandHandler.canCopySelection": false,
"commandHandler.canCutSelection": true,
"commandHandler.canPasteSelection": true,

and now I got error when use CMD+C or CXM+X like this

Error message: Uncaught TypeError: this.canCopySelection is not a function
URL: http://localhost:63342/MP-BlockDesigner/lib/go.js
Line Number: 437

What is wrong here?

Obviously I found somewhere this bad code and while it worked for disabling (at least it won't throw error) it was totally wrong.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles