Skip to content

Disable Features

cvasseng edited this page Oct 27, 2016 · 6 revisions

General Features

Editor features can be turned off by passing various options into the highed.Editor constructors. highed.SimpleEditor has a fixed feature set.

Example

highed.Editor(document.body, {
    features: 'import export customize'
});


highed.ModalEditor(document.body, {
    features: 'import export customize'
}, ...);

The above example will effectively disable the welcome screen and the template selector.

The available features for the editor are:

  • import - the import UI
  • export - the export UI
  • customize - the chart customizer
  • welcome - the welcome screen
  • templates - the template picker
  • done - the done step which displays a "confirm and close" button

By default, they're all enabled.

Import Features

The available tabs on the import screen can also be disabled as needed:

highed.Editor(document.body, {
    importer: {
        options: 'plugins'
    }
});


highed.ModalEditor(document.body, {
    importer: {
        options: 'plugins'
    }
}, ...);

Available options for the importer are:

  • csv: csv import support
  • json: basic json import support
  • samples: basic sample data
  • plugins: plugin support

By default, all options are enabled.

Exporter Features

The available tabs on the export screen can also be disabled as needed:

highed.Editor(document.body, {
    exporter: {
        options: 'plugins csv'
    }
});


highed.ModalEditor(document.body, {
    exporter: {
        options: 'plugins csv'
    }
}, ...);

Available options for the exporter are:

  • svg: svg export support
  • json: basic json export support
  • html: html injection export support
  • plugins: plugin support

By default, all options are enabled.