We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当前项目中的块编辑器 drag handle 只起到了拖动的作用,现需要拓展其能力以支持点击弹出出现下拉菜单进行更进一步的操作:
呈现效果大致如下图:
drag handle 的代码在 src/shared/components/control/block-editor/DragHandle.js,「删除当前块」和「在当前块下方插入新的块」的逻辑已经实现(注释掉的代码),只需:
src/shared/components/control/block-editor/DragHandle.js
⚠️ BlockEditor-dragHandle 是自定义 drag handle 的标识,不能去掉。
BlockEditor-dragHandle
调试功能需在本地启动服务后访问 http://localhost:3000/demo,测试数据是存在 session storage 里的,需要自己先操作加一些块。
http://localhost:3000/demo
The text was updated successfully, but these errors were encountered:
申请,本周完成
Sorry, something went wrong.
Debbl
Successfully merging a pull request may close this issue.
需求
当前项目中的块编辑器 drag handle 只起到了拖动的作用,现需要拓展其能力以支持点击弹出出现下拉菜单进行更进一步的操作:
呈现效果大致如下图:

开发说明
drag handle 的代码在
src/shared/components/control/block-editor/DragHandle.js
,「删除当前块」和「在当前块下方插入新的块」的逻辑已经实现(注释掉的代码),只需:BlockEditor-dragHandle
是自定义 drag handle 的标识,不能去掉。调试功能需在本地启动服务后访问
http://localhost:3000/demo
,测试数据是存在 session storage 里的,需要自己先操作加一些块。The text was updated successfully, but these errors were encountered: