Skip to content
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

Example code not working #58

Open
tilvan opened this issue May 13, 2022 · 1 comment
Open

Example code not working #58

tilvan opened this issue May 13, 2022 · 1 comment

Comments

@tilvan
Copy link

tilvan commented May 13, 2022

Hi! I'm trying to add an editor component to my app.
But it's not working.

https://codesandbox.io/s/react-trix-rte-example-sd416v

@tilvan
Copy link
Author

tilvan commented May 13, 2022

Also I'm trying to use isRailsDirectUpload with railsDirectUploadUrl or/and railsBlobUrl or without them.
Result is one - it's not working. File doesn't sent to backend.

import 'trix/dist/trix';
import { ReactTrixRTEInput } from 'react-trix-rte';

<Fragment>
      <ReactTrixRTEInput
        name={name}
        defaultValue={value}
        className={styles.editor}
        isRailsDirectUpload={true}
        railsDirectUploadUrl={`${HOST}/rails/active_storage/direct_uploads'`}
        railsBlobUrl={`${HOST}/rails/active_storage/blobs/:signed_id/:filename`}
      />
</Fragment>      

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

No branches or pull requests

1 participant