2.0.0-develop-rc.13 • Published 2 months ago

@edifice.io/editor v2.0.0-develop-rc.13

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
2 months ago

Editor

React Component for the wisemapping editor.

Usage

This is a work in progress and for now mindplot needs to be instantiated using the initCallback prop. Check test/playground/map-render for some usage examples.

import Editor from `@edifice.io/editor`;

ReactDOM.render(
    <Editor
        mapId={1}
        readOnlyMode={false}
        locale="en"
        onAction={(action) => console.log('action called:', action)}
        initCallback={initialization}
    />,
    document.getElementById('root'),
);

i18n

Messages are translated in the lang folder, and then compiled to src/compiled-lang using the following command:

yarn compile lang/de.json --ast --out-file src/compiled-lang/de.json