mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-24 15:37:55 +01:00
f11028e26e
Editor with mui * hide keyboard help in mobile * fix translation * docs * translations * duplicated dependency * keep selected node while note/link editor is focused * code reorganization * fix * fix * fix node focus is lost when note/link editors are open througth shortcuts |
||
---|---|---|
.. | ||
assets/images | ||
cypress | ||
images | ||
lang | ||
src | ||
test | ||
.babelrc | ||
.gitignore | ||
cypress.json | ||
package.json | ||
README.md | ||
tsconfig.json | ||
webpack.common.js | ||
webpack.playground.js | ||
webpack.prod.js | ||
yarn.lock |
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