Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Shared Whiteboard Tool defaults

Avatar

Level 1

Hi there,

I am trying to figure out how to set the tool in the shared wb to default to the highlighter pen and not the selection tool.

Any advice would be greatly appreciated. I've spent a ton of time looking at all the classes and descriptors, but can't quite hone in on the exact String or even setter to call.

My guess would be something like   mySharedWB.model......... can't quite get there.

Thank you,

dq

1 Reply

Avatar

Former Community Member

Hi DQ,

Yuck, this one's tougher than I'd like. Unfortunately, the WB is pretty

difficult to extend - it's more of a mini-application than a component. That

said, it is possible. I can't take you step by step, but the approach I'd

take is to

A) subclass WBShapesToolBar to set the default selection to whatever you

want

B) subclass SharedWhiteBoard to use your new WBShapesToolBar subclass rather

than the default - you'll need to override WhiteBoard.createChildren and

SharedWhiteBoard.createChildren, which create the toolbar.

hope that helps - good luck!

nigel