smartblock
smartblock copied to clipboard
extensions にタグ単体の extension(Paragraph など) が CustomBlock より前に追加されていると、html props の値を解析時にタグ単体の extension として解析され、CustomBlock で指定したクラス属性が消えてしまう問題の修正
以下のように記述すると、リロード時に CustomBlock で指定したクラス名が消える
Extension.push(new CustomBlock({
tagName: 'p',
className: 'hogehoge',
icon: <SomeIconComponent />
});
Paragraph などタグ単体の extension と CustomBlock を区別するための仕組みが必要。