]> BookStack Code Mirror - bookstack/blobdiff - dev/docs/javascript-code.md
Updated code view block line highlighting to only show on focus
[bookstack] / dev / docs / javascript-code.md
index a1092ce92569ffad21aec73471fbde7b8b621b93..9820839a45d1c094e72908dd7e9e2a6ef6c03a0e 100644 (file)
@@ -115,6 +115,7 @@ There are various global helper libraries in BookStack which can be accessed via
 
 ```js
 // HTTP service
+// Relative URLs will be resolved against the instance BASE_URL
 window.$http.get(url, params);
 window.$http.post(url, data);
 window.$http.put(url, data);
@@ -153,4 +154,10 @@ window.$components.get(name);
 // Get the first active component of the given name that's been
 // created on the given element.
 window.$components.firstOnElement(element, name);
-```
\ No newline at end of file
+```
+
+## Public Events
+
+There are a range of available events that are emitted as part of a public & supported API for accessing or extending JavaScript libraries & components used in the system.
+
+Details on these events can be found in the [JavaScript Public Events file](javascript-public-events.md).
\ No newline at end of file