I tried tweaking here and there and it works now. I think I had written “instance.data.contentRef=content” twice by mistake.
Or maybe because the plugin element was hidden in page, which did not allow the code to work properly.
Idk what exactly caused it, but it works fine now
1 Like