Suppress file picker when double clicking empty image tag?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Frank Ralf
Posts: 474
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Suppress file picker when double clicking empty image tag?

Post 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
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 9154
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 474
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

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

Post by Frank Ralf »

Hi Radu,

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

Best regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 9154
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 474
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

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

Post by Frank Ralf »

Thanks for the kind offer. It is not urgent, just asking :-)
Frank Ralf
parson AG
www.parson-europe.com
DirkGGT
Posts: 2
Joined: Fri Mar 15, 2024 1:52 pm

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

Post 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
Radu
Posts: 9154
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
DirkGGT
Posts: 2
Joined: Fri Mar 15, 2024 1:52 pm

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

Post 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
Last edited by DirkGGT on Thu Jul 11, 2024 3:08 pm, edited 1 time in total.
Radu
Posts: 9154
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply