asciidoctor/asciidoctor-intellij-plugin

Extend image toolbar button to browse for file

开放

#848 创建于 2021年8月30日

 (1 条评论) (1 个反应) (0 位负责人)Java (155 个派生)auto 404
enhancementhelp wanted

仓库指标

星标
 (392 个星标)
PR 合并指标
 (平均合并 4天 11小时) (30 天内合并 3 个 PR)

描述

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.

贡献者指南