1.0.2 • Published 9 months ago

grapesjs-geogebra-plugin v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Grapesjs Geogebra Plugin

DEMO

Summary

  • Plugin name: grapesjs-geogebra-plugin
  • Components
    • geogebra
    • ...
  • Blocks

    • geogebra-block

    • ...

Download

  • CDN
    • https://unpkg.com/grapesjs-geogebra-plugin
  • NPM
    • npm i grapesjs-geogebra-plugin
  • GIT
    • git clone https://github.com/pfaffmann/grapesjs-geogebra-plugin.git

Usage

Directly in the browser

<link
  href="https://unpkg.com/grapesjs/dist/css/grapes.min.css"
  rel="stylesheet"
/>
<script src="https://unpkg.com/grapesjs"></script>
<script src="path/to/grapesjs-geogebra-plugin.min.js"></script>

<div id="gjs"></div>

<script type="text/javascript">
  var editor = grapesjs.init({
    container: '#gjs',
    // ...
    plugins: ['grapesjs-geogebra-plugin'],
    pluginsOpts: {
      'grapesjs-geogebra-plugin': {
        /* options */
      },
    },
  });
</script>

Modern javascript

import grapesjs from 'grapesjs';
import plugin from 'grapesjs-geogebra-plugin';
import 'grapesjs/dist/css/grapes.min.css';

const editor = grapesjs.init({
  container : '#gjs',
  // ...
  plugins: [plugin],
  pluginsOpts: {
    [plugin]: { /* options */ }
  }
  // or
  plugins: [
    editor => plugin(editor, { /* options */ }),
  ],
});

Development

Clone the repository

$ git clone https://github.com/pfaffmann/grapesjs-geogebra-plugin.git
$ cd grapesjs-geogebra-plugin

Install dependencies

$ npm i

Start the dev server

$ npm start

Build the source

$ npm run build

License

MIT

1.0.2

9 months ago

1.0.1

9 months ago