Skip to content
New issue

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

feat: add support for inserting external media resources to the default editor #4126

Merged

Conversation

ruibaby
Copy link
Member

@ruibaby ruibaby commented Jun 27, 2023

What type of PR is this?

/kind feature
/area console
/area editor
/milestone 2.7.x

What this PR does / why we need it:

默认编辑器支持直接插入图片、视频、音频,提供除了附件库的媒体插入入口。

image

通过链接插入图片需要 halo-sigs/richtext-editor#17 的支持。

Which issue(s) this PR fixes:

Fixes #3882
Fixes #3994

Special notes for your reviewer:

测试编辑器通过链接插入图片、视频、音频的功能是否正常。

Does this PR introduce a user-facing change?

默认编辑器支持不通过附件库直接插入图片、视频、音频。

…lt editor

Signed-off-by: Ryan Wang <i@ryanc.cc>
@f2c-ci-robot f2c-ci-robot bot added kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Jun 27, 2023
@f2c-ci-robot f2c-ci-robot bot added this to the 2.7.x milestone Jun 27, 2023
@f2c-ci-robot f2c-ci-robot bot requested a review from QuentinHsu June 27, 2023 06:11
@f2c-ci-robot f2c-ci-robot bot added the area/console Issues or PRs related to the Halo Console label Jun 27, 2023
@f2c-ci-robot f2c-ci-robot bot requested a review from wzrove June 27, 2023 06:11
@f2c-ci-robot f2c-ci-robot bot added the area/editor Issues or PRs related to the Editor label Jun 27, 2023
@codecov
Copy link

codecov bot commented Jun 27, 2023

Codecov Report

Merging #4126 (88f8dab) into main (02e7068) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #4126   +/-   ##
=========================================
  Coverage     60.04%   60.04%           
  Complexity     2399     2399           
=========================================
  Files           365      365           
  Lines         12498    12498           
  Branches        901      901           
=========================================
  Hits           7504     7504           
  Misses         4556     4556           
  Partials        438      438           

Copy link
Member

@guqing guqing left a comment

Choose a reason for hiding this comment

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

/approve

@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 Jun 28, 2023
Copy link
Member

@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.

/lgtm

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Jun 28, 2023
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Jun 28, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: guqing, 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 merged commit 8db4cec into halo-dev:main Jun 28, 2023
4 checks passed
@ruibaby ruibaby deleted the feat/default-editor-image-from-external branch June 28, 2023 09:55
@ruibaby ruibaby modified the milestones: 2.7.x, 2.7.0 Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/console Issues or PRs related to the Halo Console area/editor Issues or PRs related to the Editor kind/feature Categorizes issue or PR as related to a new feature. 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.

默认的编辑器支持输入链接来插入外链图片 编辑器支持通过链接插入图片
3 participants