niuware / mui-rte

Material-UI Rich Text Editor and Viewer
MIT License
432 stars 168 forks source link

Add `type: "block"` (ordered/unordered lists) to inline toolbar #302

Open Raskovan opened 2 years ago

Raskovan commented 2 years ago

Checklist

Description

Expected behavior

Adding type: "block" style should render the style control.

Actual behavior

The style is ignored.


I'm trying to add ordered/unordered lists option to the inline toolbar.

Stumbled on this code: https://github.com/niuware/mui-rte/blob/aacd718237b542096cc30a91c4b4011701287443/src/components/Toolbar.tsx#L231-L234

Was wondering why all types except for inline returning null from the inline toolbar menu. Is there any specific reason and can we lift this limitation.