Skip to content

Latest commit

 

History

History
78 lines (55 loc) · 1.95 KB

testdocument.adoc

File metadata and controls

78 lines (55 loc) · 1.95 KB

Test Copy-to-Clipboard

This Asciidoc document is for testing purposes: how do I include copy-to-clipboard icons (plus functionality) in my asciidoc html-output files?

1. Main Chapter

Bla bla

1.1. Sub-Chapter: some code blocks

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"

1.2. Problems

Here are some screenshots of my IntelliJ IDEA development environment and of Firefox.

1.2.1. Usecase 1: View the *.adoc in the preview-window.

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.

ProblemDescription001]

1.2.2. Usecase 2: View the *.adoc-preview in an external browser

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? )

Firefox started from IntelliJ external browser bar

1.2.3. Usecase 3: Convert *.adoc first, then open *.html on filesystem

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?

Firefox open HTML on filesystem