10000 React test by jfhenon · Pull Request #700 · SVG-Edit/svgedit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

React test #700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 8, 2022
Merged

React test #700

merged 4 commits into from
Jan 8, 2022

Conversation

jfhenon
Copy link
Collaborator
@jfhenon jfhenon commented Jan 8, 2022

This PR allow to demonstrate of a React component to build a svgedit extensions.
To facilitate this, I added the ability to integrate through a custom event.
To activate the react test:

  • "npm run build" from the extension folder "src/editor/react-extensions/react-test" in order to create the bundle for the extension.
  • modify "index.html" to activate the extension as a userExtensions
svgEditor.setConfig({
          allowInitialUserOverride: true,
          extensions: [],
          noDefaultExtensions: false,
          userExtensions: ['./react-extensions/react-test/dist/react-test.js']
        })

@jfhenon jfhenon merged commit 02feff8 into master Jan 8, 2022
@jfhenon jfhenon deleted the react-test branch January 8, 2022 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0