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

extensions にタグ単体の extension(Paragraph など) が CustomBlock より前に追加されていると、html props の値を解析時にタグ単体の extension として解析され、CustomBlock で指定したクラス属性が消えてしまう問題の修正 #17

Open
uidev1116 opened this issue Mar 13, 2023 · 0 comments · May be fixed by #20
Assignees
Labels
bug Something isn't working

Comments

@uidev1116
Copy link

uidev1116 commented Mar 13, 2023

以下のように記述すると、リロード時に CustomBlock で指定したクラス名が消える

Extension.push(new CustomBlock({  
  tagName: 'p',
  className: 'hogehoge',
  icon: <SomeIconComponent />
});

Paragraph などタグ単体の extension と CustomBlock を区別するための仕組みが必要。

@uidev1116 uidev1116 added the bug Something isn't working label Mar 13, 2023
@1000-x-t30 1000-x-t30 self-assigned this Jun 19, 2023
@1000-x-t30 1000-x-t30 linked a pull request Jul 7, 2023 that will close this issue
@1000-x-t30 1000-x-t30 linked a pull request Sep 21, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants