Brightspace API to check if a page is in Edit mode
Hi there,
I was just wondering if one can leverage the Brightspace API or some other way to check if a page (content page) is in edit mode. If so I can use some JavaScript to add a class to the <body> which temporarily disables SAL animations.
I use SAL (Scroll Animation Library) and elements that bear data-sal attributes are not visible when the page is in Edit mode. This is caused by the start opacity which is set to zero. I can of course set the start opacity to a different value, like 0.25, but then the animations do not look that smooth.
Kind regards,
Arman
Answers
-
I am not sure if I fully understood your question. But if you question is whether there is an API call to check if a user has a content topic currently open in an edit state, then no, there is no such API call.
You can review all API calls and their functionality here:
-
not sure i understand the problem either. have you tried just using a [contenteditable=true] .class selector through css or vanilla js?