Is there a way to call some Discourse URI to get topic content in printable format whiteout printing dialog open.
If you call Discourse url with print param eg: https://meta.discourse.org/t/get-topic-in-print-format-without-print-dialog/123059/print Discourse return nicely html formatted for print. But this page automatically opening print dialog.
I am trying to put simply formatted html content of topic in iframe on my page but without opening print dialog.
「いいね!」 1
An iframe-specific workaround is to use the iframe sandbox attribute, specifically:
allow-modals: Lets the resource open modal windows
Do not include the above in your sandbox attribute (or leave it empty altogether) should stop the print dialog.
「いいね!」 3
@Admir Hodzic 役立つ情報です。今すぐ試してみたいです。