Gonzalo Martinez c6f04742d8 Merged in editor-actions-by-mode (pull request #63)
Editor actions by mode

* Toolbar configuration for all EditorRenderMode and locked maps

* fix unlock
2022-10-07 01:58:24 +00:00
..
2022-01-25 18:10:40 +00:00
2022-01-25 18:10:40 +00:00
2022-10-05 17:41:55 -07:00
2022-03-23 23:33:44 -03:00
2022-07-12 18:58:11 -07:00
2022-07-12 18:58:11 -07:00

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 `@wisemapping/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