Open TatsuUkraine opened 1 month ago
Using tab to indent should work.
If you want to extend more blocks to support indent, you can add the types into this array.
final indentableBlockTypes = {
BulletedListBlockKeys.type,
NumberedListBlockKeys.type,
TodoListBlockKeys.type,
ParagraphBlockKeys.type,
};
I was searching for an easy way to programmatically increase/decrease indentation for a selection in the mobile app, using custom toolbar actions
I build own logic to update delta in the editor on button click since I didn't find sort of like a command, where you can pass selection, so it could update list items indentation for me, similar to toggleAttribute
or formatNode
You can execute the command directly, but it relies on the selection. You must set a selection before executing this command.
indentCommand.execute(editorState);
Description
Ability to update indentation
Impact
Update text indentation, create nested lists
Additional Context
No response