Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Editor is not rendered #12

Open
mamoot64 opened this issue Nov 15, 2017 · 2 comments
Open

Editor is not rendered #12

mamoot64 opened this issue Nov 15, 2017 · 2 comments
Labels

Comments

@mamoot64
Copy link

Hi,

I encountered a problem with this Component.

I use the RichTextInput with HydraAdmin from "Les Tilleuls".

The code below throw an error :

 <RichTextInput {...props} source="description" addLabel={true} />
uncaught at handleFetch TypeError: Cannot read property 'value' of undefined
    at RichTextInput.componentDidMount 

If a add the input props with arbitrary value, it's working.

 <RichTextInput {...props} source="description" addLabel={true} input={{"value":"<b>Test</b>"}} />

I'm really lost ! Thank's for your help.

Nico (Noob on ReactJS)

@djhi
Copy link
Contributor

djhi commented Nov 15, 2017

If you are able to illustrate the bug or feature request with an example, please provide a sample application via one of the following means:

@mamoot64
Copy link
Author

Hi @djhi ,

The bug is present on the sandbox.
RichTextInput is not rendered on edit Blog Post.
On create, RichTextInput is not defined.

It's hard to give you a sample application because HydraAdmin is based on ApiPlatform docs.jsonld (Hydra).

I have write a ticket on Hydra Admin with sample code here.

Thank's for your time.

Nicoals

@djhi djhi added the bug label Nov 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants