aor-rich-text-input icon indicating copy to clipboard operation
aor-rich-text-input copied to clipboard

Editor is not rendered

Open mamoot64 opened this issue 7 years ago • 2 comments

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)

mamoot64 avatar Nov 15 '17 08:11 mamoot64

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:

  • CodeSandbox (https://codesandbox.io/s/ElxGNxBY0)
  • A sample application via GitHub

djhi avatar Nov 15 '17 08:11 djhi

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

mamoot64 avatar Nov 15 '17 09:11 mamoot64