This Asciidoc document is for testing purposes: how do I include copy-to-clipboard icons (plus functionality) in my asciidoc html-output files?
Bla bla
Here comes some code blocks with (hopefully) copy-to-clipboard icons attached to the top right corner of the code-blocks:
$ echo "hello console"
$ echo "hello bash"
test:
line: "hello yaml"
Here are some screenshots of my IntelliJ IDEA development environment and of Firefox.
The copy-to-clipboard icon does not appear in the preview-window (provided by the asciidoctor-plugin) on the right hand side of my IntelliJ-IDEA.
The copy-to-clipboard icon does neither appear, when firefox is started from the IntelliJ-IDEA build-in external browser button-bar.
(Is this, because the external browser accesses the IntelliJ-internal http-server via http instead of https? )
But copy-to-clipboard works, if I convert the *.adoc first and then open it in a browser (which happens in one step, if I press the "HTML" Button in the menu bar of my IntelliJ’s asciidoc-plugin-Editor)
I guess the reason is, that clipboard-functionality is (for security reasons) only available when the resulting HTML-output document is served via https or opened directly on a local filesystem, right?