Page 1 of 1

Suppress file picker when double clicking empty image tag?

Posted: Tue Jul 09, 2024 11:42 am
by Frank Ralf
Hi,

When double clicking on an empty <image> tag in Author mode, the file picker opens. Where is this behavior defined? And how can I change or suppress this?

Best regards,
Frank

Re: Suppress file picker when double clicking empty image tag?

Posted: Tue Jul 09, 2024 1:27 pm
by Radu
Hi Frank,
Looking on our side, this behavior seems to be controlled by code and right now I do not see a way to take control over it from a framework customization or custom CSS.
Regards,
Radu

Re: Suppress file picker when double clicking empty image tag?

Posted: Tue Jul 09, 2024 1:58 pm
by Frank Ralf
Hi Radu,

Thanks for the quick reply. Could a custom Author mode action override this behavior?

Best regards,
Frank

Re: Suppress file picker when double clicking empty image tag?

Posted: Tue Jul 09, 2024 2:25 pm
by Radu
Hi Frank,
For now I do not have a solution for you. If you tell me your use case I can consider to add an internal issue to somehow inhibit this behavior.
Regards,
Radu

Re: Suppress file picker when double clicking empty image tag?

Posted: Tue Jul 09, 2024 3:51 pm
by Frank Ralf
Thanks for the kind offer. It is not urgent, just asking :-)

Re: Suppress file picker when double clicking empty image tag?

Posted: Thu Jul 11, 2024 9:17 am
by DirkGGT
Radu wrote: Tue Jul 09, 2024 1:27 pm Hi Frank,
Looking on our side, this behavior seems to be controlled by code and right now I do not see a way to take control over it from a framework customization or custom CSS.
Regards,
Radu
Hello Radu,
is it maybe possible to change the behavior in a plugin extension? The "best" workaround I found so far is using an InputURLChooserCustomizer to remove all existing actions and add a custom one just displaying an information message saying that users should not use that feature...
Regards,
Dirk

Re: Suppress file picker when double clicking empty image tag?

Posted: Thu Jul 11, 2024 11:21 am
by Radu
Hi Dirk,
Oxygen has lots of places (dialogs to insert links, conrefs, image refs, etc) where the InputURLChooserCustomizer changes will take effect, so this might negatively impact the end user.
Can you possibly give me the use case for your needs? In this way I can add an internal issue and consider maybe adding more API to control the current behavior.
Regards,
Radu

Re: Suppress file picker when double clicking empty image tag?

Posted: Thu Jul 11, 2024 3:07 pm
by DirkGGT
Hello Radu,
we're using Oxygen Author as a DITA editor for documents from our CCMS. Images are also managed in the CCMS and are inserted into topics using D'n'D or custom dialogs or menu commands. Any manual manipulation of image hrefs would actually break the topic. Though we could probably implement a custom browse action for images (or any other content) with the InputURLChooserCustomizer, the best for now would be do completely block that file picker dialog.
Best regards,
Dirk

Re: Suppress file picker when double clicking empty image tag?

Posted: Thu Jul 11, 2024 4:07 pm
by Radu
Hi Dirk,
The main purpose for which we implemented the InputURLChooserCustomizer is to allow CCMSs to contribute their own CMS specific browse actions in a number of places throughout Oxygen.
Regards,
Radu