HTML マクロを使用すると、Confluence ページに HTML コードを追加できます。

HTML マクロは既定では無効になっています

The HTML macro will only be available if it has been enabled by an administrator. Enabling these macros can make your Confluence site vulnerable to cross-site scripting attacks.

HTML マクロを使用する

ページに HTML マクロを追加する方法

  1. In the Confluence editor, choose Insert > Other Macros.
  2. Find and select the required macro.

オートコンプリートでマクロを素早く入力する方法

Type { and the beginning of the macro name, to see a list of suggested macros. Details are in Using Autocomplete.

既存のマクロを編集する方法: マクロのプレースホルダをクリックして、[編集] を選択します。マクロのパラメータが編集可能な場合、マクロのダイアログ ウィンドウが開きます。

このマクロにはパラメーターはありません。

マクロ プレースホルダーの本文に HTML コードを入力します。

HTML マクロを有効化する

HTML マクロは既定では無効になっています。このマクロを有効化するには、Confluence 管理者権限またはシステム管理者権限が必要です。

(warning) Enabling these macros can make your Confluence site vulnerable to cross-site scripting attacks. You should only turn on these macros if you trust all your users not to attempt to exploit them. We strongly recommend leaving this macro disabled if you allow self-signed up or anonymous users to create content.

HTML マクロを有効化する方法

  1. Go to > Add-ons.
  2. ドロップダウンからシステム を選択し、Confluence HTML マクロ アドオンを検索します。
  3. Expand the add-on and enable the html (html-xhtml) module.

コー​​ドの例

次の例は、Confluence ページの基本的なマークアップを調べたり、編集したりする上級ユーザー向けに提供されています。 

マクロ名: html

マクロ本文: HTML コードで構成されるテキスト

パラメーター: なし

保存形式の例

<ac:structured-macro ac:name="html">
  <ac:plain-text-body><![CDATA[<a href="http://www.atlassian.com">Click here</a> to see the <b>Atlassian</b> website.]]></ac:plain-text-body>
</ac:structured-macro>

Wiki マークアップ例

{html}<a href="http://www.atlassian.com">Click here</a> to see the <b>Atlassian</b> website.{html}
  • ラベルなし