diff --git a/cypress/platform/click_security_loose.html b/cypress/platform/click_security_loose.html
index 765a5b446..79c0ac2f2 100644
--- a/cypress/platform/click_security_loose.html
+++ b/cypress/platform/click_security_loose.html
@@ -16,26 +16,26 @@
graph TB
Function-->URL
- click Function call clickByFlow() "Add a div"
- click URL href "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+ click Function clickByFlow "Add a div"
+ click URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
graph TB
1Function--->2URL
- click 1Function call clickByFlow() "Add a div"
- click 2URL href "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+ click 1Function clickByFlow "Add a div"
+ click 2URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
flowchart TB
Function-->URL
- click Function call clickByFlow() "Add a div"
- click URL href "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" _self
+ click Function clickByFlow "Add a div"
+ click URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" _self
flowchart TB
1Function--->2URL
- click 1Function call clickByFlow() "Add a div"
- click 2URL href "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" _self
+ click 1Function clickByFlow "Add a div"
+ click 2URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs" _self
diff --git a/cypress/platform/click_security_other.html b/cypress/platform/click_security_other.html
index b68713dbf..97e3a90df 100644
--- a/cypress/platform/click_security_other.html
+++ b/cypress/platform/click_security_other.html
@@ -10,14 +10,14 @@
graph TB
Function-->URL
- click Function call clickByFlow() "Add a div"
- click URL href "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+ click Function clickByFlow "Add a div"
+ click URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
graph TB
1Function-->2URL
- click 1Function call clickByFlow() "Add a div"
- click 2URL href "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+ click 1Function clickByFlow "Add a div"
+ click 2URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
diff --git a/cypress/platform/click_security_strict.html b/cypress/platform/click_security_strict.html
index fe2734840..bba792d95 100644
--- a/cypress/platform/click_security_strict.html
+++ b/cypress/platform/click_security_strict.html
@@ -10,8 +10,8 @@
graph TB
Function-->URL
- click Function call clickByFlow() "Add a div"
- click URL href "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+ click Function clickByFlow "Add a div"
+ click URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
graph TB
diff --git a/cypress/platform/interaction.html b/cypress/platform/interaction.html
index a61277760..76150c93a 100644
--- a/cypress/platform/interaction.html
+++ b/cypress/platform/interaction.html
@@ -16,14 +16,14 @@
graph TB
Function-->URL
- click Function call clickByFlow() "Add a div"
- click URL href "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+ click Function clickByFlow "Add a div"
+ click URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
graph TB
1Function-->2URL
- click 1Function call clickByFlow() "Add a div"
- click 2URL href "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
+ click 1Function clickByFlow "Add a div"
+ click 2URL "http://localhost:9000/webpackUsage.html" "Visit mermaid docs"
diff --git a/docs/diagrams-and-syntax-and-examples/flowchart.md b/docs/diagrams-and-syntax-and-examples/flowchart.md
index a5e53b330..a52284daa 100644
--- a/docs/diagrams-and-syntax-and-examples/flowchart.md
+++ b/docs/diagrams-and-syntax-and-examples/flowchart.md
@@ -139,7 +139,7 @@ graph LR
id1((This is the text in the circle))
```
-### A node in an asymetric shape
+### A node in an asymmetric shape
```
graph LR
@@ -493,7 +493,7 @@ graph LR
### Entity codes to escape characters
-It is possible to escape characters using the syntax examplified here.
+It is possible to escape characters using the syntax exemplified here.
```
graph LR
@@ -541,7 +541,7 @@ graph TB
end
```
- You can also set an excplicit id for the subgraph.
+ You can also set an explicit id for the subgraph.
```
graph TB
@@ -601,6 +601,7 @@ flowchart TB
It is possible to bind a click event to a node, the click can lead to either a javascript callback or to a link which will be opened in a new browser tab. **Note**: This functionality is disabled when using `securityLevel='strict'` and enabled when using `securityLevel='loose'`.
```
+click nodeId callback
click nodeId call callback()
```
@@ -620,6 +621,10 @@ Examples of tooltip usage below:
```
graph LR;
A-->B;
+ B-->C;
+ C-->D;
+ click A callback "Tooltip for a callback"
+ click B "http://www.github.com" "This is a tooltip for a link"
click A call callback() "Tooltip for a callback"
click B href "http://www.github.com" "This is a tooltip for a link"
```
@@ -629,8 +634,12 @@ The tooltip text is surrounded in double quotes. The styles of the tooltip are s
```mermaid
graph LR
A-->B;
- click A call callback() "Tooltip"
- click B href "http://www.github.com" "This is a link"
+ B-->C;
+ C-->D;
+ click A callback "Tooltip"
+ click B "http://www.github.com" "This is a link"
+ click C call callback() "Tooltip"
+ click D href "http://www.github.com" "This is a link"
```
> **Success** The tooltip functionality and the ability to link to urls are available from version 0.5.2.
@@ -641,16 +650,24 @@ Links are opened in the same browser tab/window by default. It is possible to ch
graph LR;
A-->B;
B-->C;
- click A href "http://www.github.com" _blank
- click B href "http://www.github.com" "Open this in a new tab" _blank
+ C-->D;
+ D-->E;
+ click A "http://www.github.com" _blank
+ click B "http://www.github.com" "Open this in a new tab" _blank
+ click C href "http://www.github.com" _blank
+ click D href "http://www.github.com" "Open this in a new tab" _blank
```
```mermaid
graph LR;
A-->B;
B-->C;
- click A href "http://www.github.com" _blank
- click B href "http://www.github.com" "Open this in a new tab" _blank
+ C-->D;
+ D-->E;
+ click A "http://www.github.com" _blank
+ click B "http://www.github.com" "Open this in a new tab" _blank
+ click C href "http://www.github.com" _blank
+ click D href "http://www.github.com" "Open this in a new tab" _blank
```
Beginners tip, a full example using interactive links in a html context:
@@ -659,8 +676,12 @@ Beginners tip, a full example using interactive links in a html context:
graph LR;
A-->B;
- click A call callback() "Tooltip"
- click B href "http://www.github.com" "This is a link"
+ B-->C;
+ C-->D;
+ click A callback "Tooltip"
+ click B "http://www.github.com" "This is a link"
+ click C call callback() "Tooltip"
+ click D href "http://www.github.com" "This is a link"