wisemapping-frontend/packages/editor
Paulo Gustavo Veiga cf8c7eb336 Migrate messages
2022-10-23 00:15:44 -07:00
..
assets/images Merged in features/move_menu (pull request #47) 2022-03-05 20:09:25 +00:00
cypress Merged in integration-test-fix (pull request #58) 2022-09-06 19:02:47 +00:00
images Merged in ray-develop (pull request #51) 2022-07-09 01:34:52 +00:00
lang Migrate messages 2022-10-23 00:15:44 -07:00
src Migrate messages 2022-10-23 00:15:44 -07:00
test Fix do and redo. 2022-10-22 19:04:51 -07:00
.gitignore Integrate editor as part of webapp. 2022-01-25 18:10:40 +00:00
babel.config.json Add app bar tests. 2022-10-11 21:09:02 -07:00
cypress.json Merged in integration-test-fix (pull request #58) 2022-09-06 19:02:47 +00:00
jest.config.js Add app bar tests. 2022-10-11 21:09:02 -07:00
package.json Message migration WIP 2022-10-22 18:29:18 -07:00
README.md Simplify map lock support. 2022-03-23 23:33:44 -03:00
tsconfig.json Merged in features/move_menu (pull request #47) 2022-03-05 20:09:25 +00:00
webpack.common.js Format JS files. 2022-07-12 18:58:11 -07:00
webpack.playground.js Merged in editor-actions-by-mode (pull request #63) 2022-10-07 01:58:24 +00:00
webpack.prod.js Format JS files. 2022-07-12 18:58:11 -07:00
yarn.lock refactor: support lerna, include @wisemapping/login into webapp 2020-12-05 02:47:02 -05: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