asciidoctor/asciidoctor-intellij-plugin

Extend image toolbar button to browse for file

Open

#848 opened on Aug 30, 2021

View on GitHub
 (1 comment) (1 reaction) (0 assignees)Java (155 forks)auto 404
enhancementhelp wanted

Repository metrics

Stars
 (392 stars)
PR merge metrics
 (PR metrics pending)

Description

Why the new feature should be added

The Paste Image toolbar button currently expects image data on the clipboard, such as image data from a graphics app, or an image file copied from a file manager.

If the clipboard does not contain an image, it throws an error:

IntelliJ IDEA_AsciiDoc-plugin-no-image-on-clipboard

How the new feature should work

While this error clearly explains that an image should be copied beforehand, instead of asking the user to start over, it might be better to allow them to continue by providing an option to browse for an image file if the clipboard does not contain image data.

Contributor guide