FixIt JavaScript API
    Preparing search index...

    Class CodeModule

    Implements

    Index
    • Exit fullscreen on the currently active code block.

      Returns void

    • Attach toggle behaviour to the code expand/collapse button.

      Parameters

      • codeBlock: HTMLElement

        The .code-block container element.

      Returns void

    • Attach copy-to-clipboard behaviour to a code block.

      Parameters

      • codeBlock: HTMLElement

        The .code-block container element.

      • codePreEl: HTMLElement

        The <pre> element containing the code text.

      Returns void

    • Attach download behaviour to a code block's download button.

      Parameters

      • codeBlock: HTMLElement

        The .code-block container element.

      • codePreEl: HTMLElement

        The <pre> element containing the code text.

      Returns void

    • Attach fullscreen toggle and Escape-key handler to a code block.

      Parameters

      • codeBlock: HTMLElement

        The .code-block container element.

      Returns void