List editor

Hello everyone, I am new to prose mirror. I want to create a editor which accept only list and also want to specify the depth and range that user can input. but i have no idea about it.