Hi @NamHo,
Thank you very much for your explanations! They help me a lot! Also as a confirmation that this is the intended way to program with the JS API. It makes this difference between assuming and knowing (like the difference between the lightning bug and the lightning) and it feels a lot better now.
Meanwhile I was searching a couple of hours in the browser’s downloaded JS code and in the Confluence sources (the confluence-editor/init
was actually not defined) and was able to find a handful of dependency candidates I desperately added and it fixed the problem. I will now check if I can replace all my findings with com.atlassian.confluence.plugins:confluence-editor-plugin
. But I am unsure if I should do it since your recommendation is to use confluence/meta
instead of confluence.web.resources:ajs
to access AJS.Meta
.
define('com/mycorp/mymodule',
['ajs', 'tinymce'],
function (AJS, tinymce) {
"use strict";
...
AJS.Meta.get('base-url') ...
I’ll figure that out …
Thank you again for your great support! It feels like I am out of the swamp and back on track.