Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to add the license (Read 174 times)
jay youngblood
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Location: Germany
Joined: Mar 11th, 2026
How to add the license
Jul 27th, 2026 at 2:35pm
Print Post  
Hello,
we have bought a new license key but we still get the "MindFusion.Diagramming for JavaScript, trial version" watermark. We have added a mindfusion/Lincese.txt file. In the angular.json file we have under assets:
Code
Select All
{
    "glob": "License.txt",
    "input": "mindfusion",
    "output": "/mindfusion/"
} 

and in the HTML:
Code (HTML)
Select All
<diagram-view #view
              [id]="'diagram'"
              [diagram]="diagram"
              [licenseLocation]="'mindfusion/License.txt'"
              [backBrush]="'#fcfcfc'"
              [allowInplaceEdit]="false"
              [showAnchors]="showAnchors"
              [behavior]="behavior">
</diagram-view> 

. The weird thing is the watermark doesn't appear from the start but only after randomly clicken around a couple of times. We use: "@mindfusion/diagramming-angular": "~2.6.0".
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3510
Joined: Oct 19th, 2005
Re: How to add the license
Reply #1 - Jul 27th, 2026 at 3:33pm
Print Post  
Hi,

Thank you for choosing our product!

I have verified that assigning key string from your company's order today directly to DiagramView.licenseKey shows licensed message in console:

Code
Select All
MindFusion.Diagramming licensed to **** SOFTWARE OHG. 



If you prefer loading from a text file, please check the network tab of your browser's developer tools and see if the GET request for that license location returns an OK result. You might also have to clear browser cache for new value to take effect, or click e.g. Disable Cache checkbox in firefox network tab.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
jay youngblood
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Location: Germany
Joined: Mar 11th, 2026
Re: How to add the license
Reply #2 - Jul 28th, 2026 at 7:35am
Print Post  
Directly setting the key in code worked

Code (Javascript)
Select All
override ngOnInit(): void {

    super.ngOnInit();

    Diagramming.DiagramView.licenseKey = "ABCDE...";

    this.diagram = new Diagramming.Diagram();
} 

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint