We have introduced html macros to confluence (cloud version). I inserted the html macro into the page and wrote the following script statement there. This gets the value from the <meta name="ajs-remote-user-key" content="xxxxxxx"> statement, but it doesn't work. Note that this <meta name="ajs-remote-user-key" content="xxxxxxx"> is not written in the html macro. What could be the cause?
<script>
const key = document.getElementsByName('ajs-remote-user-key')[0].content;
alert(key);
</script>
HI @青山 明 ,
Are you using a marketplace add-on? As far as I'm aware there isn't a HTML Macro built in Confluence Cloud. Depending which vendor you are using, you probably want to reach out to the vendor. Not all scripts scenarios are compatible.
Yes, I am using the app.
Previously, in the server version of Confluence
The HTML macro existed by default.
Can't you expect any functions you've done before?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No. There's a lot of apps that don't have the same exact function. Simply because the Cloud platform has a different design.
Would recommend checking the app marketplace listing and see if they have a cloud parity which list to explain the differences. Otherwise, it probably best to reach out to the vendor to get that list of which functionality continues to be supported in the cloud. Also, they might have info on possibly having what you are looking for in the roadmap.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.