halo-sigs / plugin-bytemd

为 Halo 2.0 集成 ByteMD 编辑器
https://halo.run/store/apps/app-HTyhC
GNU General Public License v3.0
13 stars 6 forks source link

refactor: inject styles to resolve style conflicts #26

Closed ruibaby closed 1 year ago

ruibaby commented 1 year ago

手动在 head 标签中注入编辑器的样式,以解决样式冲突的问题。可以实现仅在编辑器加载的时候才加载样式,并且不会影响到其他编辑器的样式。

/kind improvement

None
f2c-ci-robot[bot] commented 1 year ago

[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: - ~~[OWNERS](https://github.com/halo-sigs/plugin-bytemd/blob/main/OWNERS)~~ [JohnNiang] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment