Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

refactor: editor bubble menu and its extensions #38

Merged
merged 11 commits into from
Sep 7, 2023

Conversation

LIlGG
Copy link
Member

@LIlGG LIlGG commented Sep 1, 2023

What type of PR is this?

/kind improvement

What this PR does / why we need it:

此 PR 重构了编辑器冒泡菜单,之后冒泡菜单的声明及创建可与组件 DOM 分离,并且本 PR 优化了菜单的样式及表现。
现在冒泡菜单不再响应移向目标组件的事件而改为点击某个组件出现,这更加符合编辑操作和体验,也不会出现类似于 halo-dev/halo#3208 的无法选中的问题。且此次修改向下兼容,若插件使用旧版本的冒泡菜单则不会受到影响。

before:
image

after:
image

todo:

  • 代码编写
  • 更新旧冒泡菜单
  • 优化调整
  • 扩展文档

How to test it?

查看编辑器各块元素的冒泡菜单功能是否正常。

Does this PR introduce a user-facing change?

重构编辑器冒泡菜单

@f2c-ci-robot f2c-ci-robot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/improvement Categorizes issue or PR as related to a improvement. labels Sep 1, 2023
@vercel
Copy link

vercel bot commented Sep 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
richtext-editor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 4, 2023 3:54am

@LIlGG
Copy link
Member Author

LIlGG commented Sep 4, 2023

/retitle refactor: editor bubble menu and its extensions

@f2c-ci-robot f2c-ci-robot bot changed the title WIP: refactor: editor bubble menu and its extensions refactor: editor bubble menu and its extensions Sep 4, 2023
@f2c-ci-robot f2c-ci-robot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 4, 2023
Copy link
Contributor

@JohnNiang JohnNiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works very well.

image

@JohnNiang
Copy link
Contributor

/approve

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Sep 5, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JohnNiang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 5, 2023
@LIlGG LIlGG mentioned this pull request Sep 7, 2023
2 tasks
@JohnNiang
Copy link
Contributor

/lgtm

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Sep 7, 2023
@f2c-ci-robot f2c-ci-robot bot merged commit 352ddac into halo-sigs:main Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/improvement Categorizes issue or PR as related to a improvement. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants