Skip to content

pfaffmann/grapesjs-geogebra-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published