Skip to content

How to make draggable blocks and custom elements/nodes without react? #5435

Answered by yf-yang
Rusinas asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately some plugins are part of the playground package, not the Lexical package, so I am afraid they are React only. The only way to do so is converting the React logic into vue (on your own). Some plugins are easier (for example, the drag and drop is a React wrapper that handles vanilla JavaScript, you only need to convert the wrapper), some are more like a pure React component (for example, the menu UI). Other plugins are functional (if you see a plugin that returns null, then it is only a React wrapper. Those plugins only create some commands and register some listener hooks when editor updates.)

In a word, you have to do some conversion (and it needs some fundamental knowledge …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Rusinas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants