smartblock icon indicating copy to clipboard operation
smartblock copied to clipboard

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

Open uidev1116 opened this issue 1 year ago • 0 comments

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

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

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

uidev1116 avatar Mar 13 '23 12:03 uidev1116