DND with custom elements #1823
Unanswered
thiagoterleski
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone 👋🏼
I am trying to replicate the example using dnd , but I can't get it working with custom elements; for example, I created a plugin to replace the current heading element (I want to have just one block type called heading with the level attr adjustable).
I tried also adding the new element key
heading
towithStyledDraggables
function but it didn't solve the issue.Is there anything I am missing? I will have to create other custom elements using react components to render different UI blocks in the application (Maps, Charts, etc...); I thought I only needed to add the new block keys to the
withDraggables
function, but apparently I am missing some steps.Thanks for any help,
Beta Was this translation helpful? Give feedback.
All reactions