Table of Contents

GeoGebrEmbed

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

plugin Embed GeoGebra applets into DokuWiki

Last updated on
2021-10-19
Provides
Syntax
Repository
Source
Conflicts with
ggb

Similar to geogebra, ggb

Tagged with geogebra, math

Description

This plugin allows for quick, easy and HTML5 compatible embedding of GeoGebra applets in DokuWiki pages.

Examples/Usage

In its most basic form, you can just include some activity from GeoGebra.org (formerly known as GeoGebraTube):

<ggb>17499</ggb>

The plugin will use the pre-configured default values (see below).

In reality, you will most certainly want to set at least a few options. Or you might prefer to directly use an existing GGB file rather than upload it to GeoGebra.org:

<ggb 450x300>17499</ggb>
<ggb>{{:path:to:your:file.ggb}}</ggb>
<ggb appName="geometry" pb></ggb>
Screenshot

Screenshot

Syntax

General syntax

All parameters are optional. If you make use of the size parameter, it MUST come first. Other than that, parameters can appear in any order.

<ggb size htmlparams ggbparams>source</ggb>
< ggb size htmlparams ggbparams>source</ggb>
Please note

Short forms

Some common parameters can be set using short forms:

short form replaced by
border / bc borderColor
sb / nosb allowStyleBar=true / false
ld / nold enableLabelDrags=true / false
rc / norc enableRightClick=true / false
sdz / nosdz enableShiftDragZoom=true / false
pb / nopb playButton=true / false
ai / noai showAlgebraInput=true / false
ab / noab showAnimationButton=true / false
fsb / nofsb showFullscreenButton=true / false
mb / nomb showMenuBar=true / false
ri / nori showResetIcon=true / false
tb / notb showToolBar=true / false
zb / nozb showZoomButtons=true / false
Examples

If you feel a parameter would deserve a short form, please open an issue on the bug tracker.

Full list of supported parameters

Please see the GeoGebra reference page for a complete list of parameters.

The plugin will forward any parameter to GeoGebra without further treatment, except for

Configuration and Settings

You can specify a set of default options that will be used for applets where you did not locally set the corresponding parameters. Also, the first two parameters allow you to change default settings of the plugin.

option explanation
config_url Path to GeoGebra's deployggb.js script. This script is needed in order to inject the applet(s) you want to include. It is generally fine to leave this option as is, but you might want to use your own copy of that script, e.g. for privacy reasons or for testing purposes.
config_threshold As explained above, the plugin will try to guess whether you supplied a GeoGebra material ID or base64 encoded data. All alphanumeric input not longer than this threshold will be treated as material ID. You normally do not have to change this value, but these IDs could suddenly become much longer in the future.
default_width This will be used if you do not specify a width for your applet.
default_height This will be used if you do not specify a width and height for your applet. If you specify a width, but no height, this parameter is not used, because the plugin will ask GeoGebra to calculate the height accordingly.
default_appName If you know that your wiki will use a certain GeoGebra app most of the time, you can use this option to save some typing. Remember that you can specify the app to be used for any given applet.
default_borderColor Default border color to be used if you do not specify a color for your applet.
default_enableRightClick Whether the right click functionality should be activated for applets where you do not specify this option.
default_enableLabelDrags Whether the dragging of labels should be possible for applets where you do not specify this option.
default_enableShiftDragZoom Whether zooming and dragging should be possible using the mouse for applets where you do not specify this option.
default_showZoomButtons Whether zoom buttons should be shown in applets where you do not specify this option.
default_showMenuBar Whether the menubar should be shown in applets where you do not specify this option.
default_showToolBar Whether the toolbar should be shown in applets where you do not specify this option.
default_showAlgebraInput Whether the input bar should be shown in applets where you do not specify this option.
default_showResetIcon Whether the applet should contain a reset icon in cases where you do not specify this option.
default_playButton Whether the applet should show just a preview image and a play button instead of the full content. You can always override this for any given applet.
default_showAnimationButton Whether the animation button (play/pause) should be shown in applets where you do not specify this option. If the applet does not contain animations, the button will not be shown regardless of this option.
default_showFullscreenButton Whether the applet should contain a button that allows switching to full-screen mode. You can always override this for any given applet.

Development

Change Log

FAQ

What method does this plugin use?

The plugin embeds GeoGebra apps using JavaScript and HTML5 as suggested by the relevant GeoGebra support page.