You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, we did not want to duplicate integrations from toggleBlock, so toggleBlock on nested utils levarage from default behaviour of richUtilsToggleBlock, example
clicking toggle on to move from UL to OL converts UL > LI > H1
to OL > LI > unstyled
RichUtils.toggleBlock will then OL > LI > H1
but place cursor selection on the 'unstyped' and uses the blockType 'header-one' to be passed back to the rich utils so that it toggle it back to 'header-one'
This sort of behaviour is a bit of temporary measure so that we don't duplicate code. Maybe nested utils should extend richUtils to avoid this sort of things
What is the goal of
NestedUtils.toggleBlocktype
compared toRichUtils.toggleBlocktype
?I've tried it integrate it into a test application but it doesn't change the block type (editorState stays the same).
The text was updated successfully, but these errors were encountered: