I have tried using 2 contexts namely "page" and "editor" for confluence 5.7 in my plugin
As per my observation, the resources like js or css files are affecting the confluence editors css in v5.7.
In the previous versions of confluence, the edit page was populated with a Iframe of wysing editor and so i guess my JS and CSS files didn't have an effect on them.
But the edit page is changed in v5.7 and the plugin CSS resources in page context also now have effect in edit page section.
Is there a way through which i can just include my JS or CSS resources in only view page mode in confluence.
Community moderators have prevented the ability to post new answers.
Hi Neeraj,
Write a little javascript which identifies your environment (view or edit) and add a class on the body element.
Then you can work with this wrapping class in your css.
In js it should be no problem to handle this limitation.
Regards
Steve
Does a AJS variable of identifying the editing mode exist? can be useful. Not the ideal solution but maybe i can see if it is completely applicable in case of my problem here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neeraj, one option is AJS.params.browsePageTreeMode
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Stephen. In case if you come across any solution regarding the context itself in future, then do post.
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.