wagtail-deprecated / wagtail-condensedinlinepanel

Fast, drop-in replacement for Wagtail's inline panel with drag and drop
BSD 3-Clause "New" or "Revised" License
85 stars 22 forks source link

RichTextField not working? #51

Closed rafaponieman closed 5 years ago

rafaponieman commented 6 years ago

Hello!

When adding a new RichTextField instance (Wagtail 2.0 or 2.1), I get a JS error and the Draftail editor doesn't show up.

VM743:1 Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Object.b [as initEditor] (draftail.js:1)
    at eval (eval at FormContainer.componentDidMount (condensedinlinepanel.bundle.js:15), <anonymous>:1:17)
    at FormContainer.componentDidMount (condensedinlinepanel.bundle.js:15)
    at e.notifyAll (condensedinlinepanel.bundle.js:15)
    at r.close (condensedinlinepanel.bundle.js:15)
    at r.closeAll (condensedinlinepanel.bundle.js:1)
    at r.perform (condensedinlinepanel.bundle.js:1)
    at o.perform (condensedinlinepanel.bundle.js:1)
    at o.perform (condensedinlinepanel.bundle.js:1)

Tried it on both versions, I may be doing something wrong but it looks like this is the case.

Thank you

unexceptable commented 6 years ago

related to #48

Is indeed broken, likely do to the new editor added in wagtail 2.0

NickdeDycker commented 6 years ago

Any update on this? I'll try to fix this if I have the time.

kaedroho commented 5 years ago

This issue should now be fixed by https://github.com/wagtail/wagtail-condensedinlinepanel/pull/56