Hello,
I’m currently working on a confluence macro plugin and got stuck on a (simple) task.
My Java Macro class implements the „EditorImagePlaceholder“ Interface which returns the image placeholder via the „getImagePlaceholder()“ method. My image placeholder for a macro change dynamic and get updated via REST as page attachment.
The next step is to resize the placeholder in the editor view AND the actual image in the view page.
So my macro needs the same functionality as the default image-macro.
To achieve this I extended the property-panel with 3 extra buttons which call a JS function
„resize(macroNode, width)“ to set to small, medium and original size.
But I don’t have an idea how to actual resize the my image.
The default macro for showing images can resize in both views, the edit mode and in the view mode, without even touching the attachments.
You have any idea how to solve this?
p.s.
How can I remove the „edit“ Button from the property panel?