niuware / mui-rte

Material-UI Rich Text Editor and Viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Raskovan opened this issue · comments

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:

if (props.inlineMode &&
(style.type !== "inline" && (style.name !== "link" && style.name !== "clear"))) {
return null
}

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.